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

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