dotfiles/rofi/usr/bin/hlwm-switch-to-window
Tom Willemse cd9f77887e Raise the window when switching to it
In floating mode jumping to a window doesn’t actually raise it.
2018-09-13 21:54:12 -07:00

9 lines
283 B
Bash
Executable file

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