#!/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)
|