updated gitignore to ignore eww util binaries

This commit is contained in:
Valerie Wolfe 2023-06-20 13:18:50 -04:00
parent b47d9b3856
commit eaa42528d1
3 changed files with 2 additions and 24 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/eww/bin/

Binary file not shown.

View file

@ -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()