dotfiles/rofi/usr/bin/hlwm-switch-to-window

10 lines
283 B
Text
Raw Permalink Normal View History

2016-08-05 01:48:13 +02:00
#!/usr/bin/env bash
winid="0x$(printf "%x\n" $1)"
tag=$(herbstclient attr clients.$winid.tag)
herbstclient chain \
, silent substitute M tags.by-name.$tag.my_monitor focus_monitor M \
, use $tag \
, jumpto $winid \
, raise $winid