New backup 2026-02-18 21:21:05
This commit is contained in:
parent
6d11f1d651
commit
897e9621ac
4 changed files with 12 additions and 57 deletions
|
|
@ -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')}))))
|
||||
|
|
@ -24,7 +24,7 @@ Show Inline Previews=true
|
|||
Show Preview=false
|
||||
Show Speedbar=true
|
||||
Show hidden files=false
|
||||
Sort by=Name
|
||||
Sort by=Date
|
||||
Sort directories first=true
|
||||
Sort hidden files last=false
|
||||
Sort reversed=false
|
||||
|
|
|
|||
|
|
@ -19,18 +19,13 @@ Name=Penelope
|
|||
IsRelative=1
|
||||
Path=penelope
|
||||
Default=1
|
||||
StoreID=0585997e
|
||||
StoreID=a61d59be
|
||||
ShowSelector=0
|
||||
|
||||
[General]
|
||||
StartWithLastProfile=1
|
||||
Version=2
|
||||
|
||||
[Profile4]
|
||||
Name=testing
|
||||
IsRelative=1
|
||||
Path=4z689ygf.testing
|
||||
|
||||
[Install6C4726F70D182CF7]
|
||||
Default=penelope
|
||||
Locked=1
|
||||
|
|
@ -40,3 +35,8 @@ Name=School
|
|||
IsRelative=1
|
||||
Path=school
|
||||
|
||||
[Profile4]
|
||||
Name=testing
|
||||
IsRelative=1
|
||||
Path=4z689ygf.testing
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ZELLIJ} ]]; then
|
||||
zellij
|
||||
exit
|
||||
fi
|
||||
|
||||
hyfetch 2>/dev/null || true
|
||||
|
||||
# Quality of Life
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue