diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f567cc --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/eww/bin/ + diff --git a/eww/bin/i3-ws b/eww/bin/i3-ws deleted file mode 100755 index 1c80bfa..0000000 Binary files a/eww/bin/i3-ws and /dev/null differ diff --git a/eww/bin/i3-ws.py b/eww/bin/i3-ws.py deleted file mode 100755 index b7895b8..0000000 --- a/eww/bin/i3-ws.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/python -from i3ipc import Connection, Event - -i3 = Connection() - -base = '(box :class "workspace" :orientation "h" :spacing 8 :space-evenly false' - -def get_workspaces(_0, _1): - response = i3.get_workspaces() - output = base - for ws in response: - classes = "ws-btn" - scale = "" - if(ws.focused): - scale = '(scale :class "wsbar" :max 100 :min 100)' - if(ws.urgent): - classes += " urgent" - element = f'(box :orientation "v" :space-evenly false (button :vexpand true :class "{classes}" :onclick "i3-msg workspace {ws.num}" "{ws.num}"){scale})' - output += f' {element}' - print(f"{output})") - -get_workspaces(None, None) -i3.on(Event.WORKSPACE_FOCUS, get_workspaces) -i3.main()