Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
459 B

#!/usr/bin/env sh
# Use wmctrl(1) to jump to a window selected from dmenu.
# I bind this to mod-shift-g in .xmonad/xmonad.hs, by analogy to the mod-g
# binding for GridSelect.
wmctrl -i -a `wmctrl -l | unsorted-unique | rofi -dmenu -i`
# -a is for, I think, activate
# -i says to expect a numeric id and not a title string
# wmenu -l lists windows
# rofi is a more-featureful dmenu replacement I'm using for a launcher
# (could also use dmenu_unique here)