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