aboutsummaryrefslogtreecommitdiff
path: root/lemonbar/button-actions
blob: bebf6635eeee35ed6c941dffc3512b74b1476ae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)