New backup 2026-02-17 21:15:02
This commit is contained in:
parent
44e239cfa7
commit
a0ddd01aa6
5 changed files with 64 additions and 77 deletions
|
|
@ -1,7 +1,6 @@
|
|||
(defvar reveal_volume false)
|
||||
(defwidget volume []
|
||||
(revealer-on-hover
|
||||
:class "volume ${reveal_volume}"
|
||||
(revealer-on-hover :class "volume ${reveal_volume}"
|
||||
:revealvar reveal_volume
|
||||
:revealvar-name "reveal_volume"
|
||||
(button :onclick 'pavucontrol-qt --tab 3'
|
||||
|
|
@ -13,8 +12,7 @@
|
|||
(deflisten volume :initial "50"
|
||||
"scripts/bar/volume")
|
||||
(defwidget volume_children []
|
||||
(box :class "reveal-children"
|
||||
:orientation "h"
|
||||
(box :class "reveal-children" :orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
(scale
|
||||
|
|
|
|||
|
|
@ -25,8 +25,4 @@
|
|||
( vpn.name == 'SCA' ?
|
||||
'' :
|
||||
'') )
|
||||
)} ${( vpn.active == 'yes' ? '' : '' )}"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)} ${( vpn.active == 'yes' ? '' : '' )}"))))
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
(deflisten active_window_name :initial ""
|
||||
:interval "60s"
|
||||
"scripts/bar/activewindow")
|
||||
|
||||
(defwidget windowtitle []
|
||||
(label :class {active_window_name != "" ? "active_window" : ""}
|
||||
:text {active_window_name}))
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
(defvar wsreveal false)
|
||||
|
||||
(defwidget workspaces [array]
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update wsreveal=true"
|
||||
(eventbox :onhover "${EWW_CMD} update wsreveal=true"
|
||||
:onhoverlost "${EWW_CMD} update wsreveal=false"
|
||||
(box :class "workspaces ${((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Work') ? 'profile-work' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == '20') ? 'profile-school' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == '10') ? 'profile-development' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == '0') ? 'profile-personal' : ''))))}"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
|
||||
(revealer
|
||||
:class "ws-left"
|
||||
:reveal wsreveal
|
||||
|
|
@ -16,24 +14,19 @@
|
|||
:duration "500ms"
|
||||
(box
|
||||
(for entry in array
|
||||
(literal
|
||||
:visible {((entry.position == 'l') && !entry.is_focused) ? true : false}
|
||||
(literal :visible {((entry.position == 'l') && !entry.is_focused) ? true : false}
|
||||
:content {((entry.position == 'l') && !entry.is_focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"}))))
|
||||
(box
|
||||
:class "ws-center ${wsreveal}"
|
||||
(box :class "ws-center ${wsreveal}"
|
||||
(for entry in array
|
||||
(literal
|
||||
:visible {entry.is_focused ? true : false}
|
||||
(literal :visible {entry.is_focused ? true : false}
|
||||
:content {entry.is_focused ? "(workspace :ws entry :side 'center' :lastws ${jq(array,'.[-1].num')})" : "(box :visible false)"})))
|
||||
(revealer
|
||||
:class "ws-right"
|
||||
(revealer :class "ws-right"
|
||||
:reveal wsreveal
|
||||
:transition "slideright"
|
||||
:duration "500ms"
|
||||
(box
|
||||
(for entry in array
|
||||
(literal
|
||||
:visible {((entry.position == 'r') && !entry.is_focused) ? true : false}
|
||||
(literal :visible {((entry.position == 'r') && !entry.is_focused) ? true : false}
|
||||
:content {((entry.position == 'r') && !entry.is_focused) ? "(workspace :ws entry :side 'right')" : "(box :visible false)"})))))))
|
||||
|
||||
(defwidget workspace [ws side ?lastws ?firstws]
|
||||
|
|
@ -42,6 +35,5 @@
|
|||
:class '${side} ${ws.num == lastws ? "last-workspace" : (ws.num == firstws ? "first-workspace" : "middle-workspace")} profile-${jq(ws,'.profile_name','r')}'
|
||||
(box
|
||||
'${replace(ws.name,".*:","")}'
|
||||
(label
|
||||
:class "workspace-number"
|
||||
(label :class "workspace-number"
|
||||
:text {jq(captures(ws.num, '[0-9]$'),'.[].[]','r')}))))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue