From 393087e8a5c73542192d0e06c92f8dd5ea1eb4ba Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 5 Aug 2016 01:48:13 +0200 Subject: Add rofi configuration --- rofi/usr/bin/hlwm-switch-to-window | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 rofi/usr/bin/hlwm-switch-to-window (limited to 'rofi/usr') diff --git a/rofi/usr/bin/hlwm-switch-to-window b/rofi/usr/bin/hlwm-switch-to-window new file mode 100755 index 0000000..4a722db --- /dev/null +++ b/rofi/usr/bin/hlwm-switch-to-window @@ -0,0 +1,8 @@ +#!/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 -- cgit v1.2.3-54-g00ecf