From d26cef6d9ac6b4882753c9385ec08202bb3e358a Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 5 Nov 2020 10:03:41 +0530 Subject: moved sleep notifier module to right, made workspace buttons clickable, made the script a bit more easier to understand --- lemonbar/button-actions | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 lemonbar/button-actions (limited to 'lemonbar/button-actions') diff --git a/lemonbar/button-actions b/lemonbar/button-actions new file mode 100755 index 00000000..bebf6635 --- /dev/null +++ b/lemonbar/button-actions @@ -0,0 +1,14 @@ +#!/bin/python + +# this script is a somewhat hacky way to switch workspaces +# by clicking the workspaces on the lemonbar +# written by Vidhu Kant Sharma for his herbstluftwm lemonbar +# the output from the launch script should be piped into this + +import os + +print('scripts launched') +while True: + action = input() + + os.system('herbstclient use_index ' + action) -- cgit v1.2.3