Use scratchpad + more workspace icons
This commit is contained in:
@@ -9,16 +9,7 @@ from i3ipc.aio import Connection
|
||||
async def main():
|
||||
sway = await Connection().connect()
|
||||
|
||||
def on(event, handler=None):
|
||||
def on_wrapped(handler):
|
||||
sway.on(event, handler)
|
||||
return handler
|
||||
if handler:
|
||||
return on_wrapped(handler)
|
||||
else:
|
||||
return on_wrapped
|
||||
|
||||
@on(Event.WINDOW_FOCUS)
|
||||
@sway.on(Event.WINDOW_FOCUS)
|
||||
async def on_window_focus(sway, e):
|
||||
focused_window = (await sway.get_tree()).find_focused()
|
||||
focused_workspace = focused_window.workspace()
|
||||
@@ -42,6 +33,10 @@ async def main():
|
||||
new_name += ''
|
||||
elif app_name in ['GEMOC Studio', 'code-oss']:
|
||||
new_name += ''
|
||||
elif 'okular' in app_name:
|
||||
new_name += '<span font=\'FontAwesome 5 Free Solid\'></span>'
|
||||
elif app_name == 'pavucontrol':
|
||||
new_name += ''
|
||||
elif app_name:
|
||||
new_name += app_name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user