From 7819771a61f577360c2401d9232cadc25a969e15 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 15 Feb 2019 22:50:37 +0100 Subject: Add uictrl dependencies --- gui/pkgs/bin/uictrl.sh | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 gui/pkgs/bin/uictrl.sh (limited to 'gui/pkgs/bin') diff --git a/gui/pkgs/bin/uictrl.sh b/gui/pkgs/bin/uictrl.sh deleted file mode 100755 index 46c7219..0000000 --- a/gui/pkgs/bin/uictrl.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env fish - -function cycle - set nsp_ws (wmctrl -d | awk '{if ($9 == "NSP") {print $1}}') - set current_ws (wmctrl -d | awk '{if ($2 == "*") {print $1}}') - - wmctrl -l | awk -v current_ws=$current_ws -v nsp_ws=$nsp_ws '{if ($2 > current_ws && $2 != nsp_ws) {print $2}}' | uniq - wmctrl -l | awk -v current_ws=$current_ws -v nsp_ws=$nsp_ws '{if ($2 < current_ws && $2 != nsp_ws) {print $2}}' | uniq -end - -switch $argv[1] - case next - wmctrl -s (cycle)[1] - case prev - wmctrl -s (cycle | tac)[1] -end -- cgit v1.2.3