New backup 2026-02-18 21:21:05

This commit is contained in:
Penelope Gwen 2026-02-18 21:21:05 -08:00
parent 6d11f1d651
commit 897e9621ac
4 changed files with 12 additions and 57 deletions

View file

@ -1,50 +0,0 @@
(deflisten activeWorkspace :initial '1'
'scripts/bar/active-workspace')
(deflisten workspacesArray :initial '[{"name": "placeholder","focused":true,"num":0}]'
'scripts/bar/workspaces')
(defvar wsreveal false)
(defwidget workspaces [array]
(eventbox
:onhover "${EWW_CMD} update wsreveal=true"
:onhoverlost "${EWW_CMD} update wsreveal=false"
(box :class "workspaces ${((activeWorkspace > '30') ? 'profile-work' : ((activeWorkspace > '20') ? 'profile-school' : ((activeWorkspace > '10') ? 'profile-development' : ((activeWorkspace > '0') ? 'profile-personal' : ''))))}"
:orientation "h"
:space-evenly false
:halign "start"
(revealer
:class "ws-left"
:reveal wsreveal
:transition "slideleft"
:duration "500ms"
(box
(for entry in array
(literal
:visible {((entry.num <= activeWorkspace) && !entry.focused) ? true : false}
:content {((entry.num <= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"}))))
(box
:class "ws-center ${wsreveal}"
(for entry in array
(literal
:visible {entry.focused ? true : false}
:content {entry.focused ? "(workspace :ws entry :side 'center' :lastws ${jq(array,'.[-1].num')})" : "(box :visible false)"})))
(revealer
:class "ws-right"
:reveal wsreveal
:transition "slideright"
:duration "500ms"
(box
(for entry in array
(literal
:visible {((entry.num >= activeWorkspace) && !entry.focused) ? true : false}
:content {((entry.num >= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'right')" : "(box :visible false)"})))))))
(defwidget workspace [ws side ?lastws ?firstws]
(button :onclick `swaymsg workspace "${ws.name}"`
:class '${side} ${ws.num == lastws ? "last-workspace" : (ws.num == firstws ? "first-workspace" : "middle-workspace")} ${((ws.num > '30') ? 'profile-work' : ((ws.num > '20') ? 'profile-school' : ((ws.num > '10') ? 'profile-development' : ((ws.num > '0') ? 'profile-personal' : ''))))}'
(box
'${replace(ws.name,".*:","")}'
(label
:class "workspace-number"
:text {jq(captures(ws.num, '[0-9]$'),'.[].[]','r')}))))

View file

@ -24,7 +24,7 @@ Show Inline Previews=true
Show Preview=false Show Preview=false
Show Speedbar=true Show Speedbar=true
Show hidden files=false Show hidden files=false
Sort by=Name Sort by=Date
Sort directories first=true Sort directories first=true
Sort hidden files last=false Sort hidden files last=false
Sort reversed=false Sort reversed=false

View file

@ -19,18 +19,13 @@ Name=Penelope
IsRelative=1 IsRelative=1
Path=penelope Path=penelope
Default=1 Default=1
StoreID=0585997e StoreID=a61d59be
ShowSelector=0 ShowSelector=0
[General] [General]
StartWithLastProfile=1 StartWithLastProfile=1
Version=2 Version=2
[Profile4]
Name=testing
IsRelative=1
Path=4z689ygf.testing
[Install6C4726F70D182CF7] [Install6C4726F70D182CF7]
Default=penelope Default=penelope
Locked=1 Locked=1
@ -40,3 +35,8 @@ Name=School
IsRelative=1 IsRelative=1
Path=school Path=school
[Profile4]
Name=testing
IsRelative=1
Path=4z689ygf.testing

View file

@ -1,5 +1,10 @@
#!/bin/bash #!/bin/bash
if [[ -z ${ZELLIJ} ]]; then
zellij
exit
fi
hyfetch 2>/dev/null || true hyfetch 2>/dev/null || true
# Quality of Life # Quality of Life