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)
|
(defvar reveal_volume false)
|
||||||
(defwidget volume []
|
(defwidget volume []
|
||||||
(revealer-on-hover
|
(revealer-on-hover :class "volume ${reveal_volume}"
|
||||||
:class "volume ${reveal_volume}"
|
|
||||||
:revealvar reveal_volume
|
:revealvar reveal_volume
|
||||||
:revealvar-name "reveal_volume"
|
:revealvar-name "reveal_volume"
|
||||||
(button :onclick 'pavucontrol-qt --tab 3'
|
(button :onclick 'pavucontrol-qt --tab 3'
|
||||||
|
|
@ -13,8 +12,7 @@
|
||||||
(deflisten volume :initial "50"
|
(deflisten volume :initial "50"
|
||||||
"scripts/bar/volume")
|
"scripts/bar/volume")
|
||||||
(defwidget volume_children []
|
(defwidget volume_children []
|
||||||
(box :class "reveal-children"
|
(box :class "reveal-children" :orientation "h"
|
||||||
:orientation "h"
|
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "center"
|
:halign "center"
|
||||||
(scale
|
(scale
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,4 @@
|
||||||
( vpn.name == 'SCA' ?
|
( vpn.name == 'SCA' ?
|
||||||
'' :
|
'' :
|
||||||
'') )
|
'') )
|
||||||
)} ${( vpn.active == 'yes' ? '' : '' )}"
|
)} ${( vpn.active == 'yes' ? '' : '' )}"))))
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
(deflisten active_window_name :initial ""
|
(deflisten active_window_name :initial ""
|
||||||
:interval "60s"
|
:interval "60s"
|
||||||
"scripts/bar/activewindow")
|
"scripts/bar/activewindow")
|
||||||
|
|
||||||
(defwidget windowtitle []
|
(defwidget windowtitle []
|
||||||
(label :class {active_window_name != "" ? "active_window" : ""}
|
(label :class {active_window_name != "" ? "active_window" : ""}
|
||||||
:text {active_window_name}))
|
:text {active_window_name}))
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,12 @@
|
||||||
(defvar wsreveal false)
|
(defvar wsreveal false)
|
||||||
|
|
||||||
(defwidget workspaces [array]
|
(defwidget workspaces [array]
|
||||||
(eventbox
|
(eventbox :onhover "${EWW_CMD} update wsreveal=true"
|
||||||
:onhover "${EWW_CMD} update wsreveal=true"
|
|
||||||
:onhoverlost "${EWW_CMD} update wsreveal=false"
|
: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' : ''))))}"
|
(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"
|
:orientation "h"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "start"
|
:halign "start"
|
||||||
|
|
||||||
(revealer
|
(revealer
|
||||||
:class "ws-left"
|
:class "ws-left"
|
||||||
:reveal wsreveal
|
:reveal wsreveal
|
||||||
|
|
@ -16,24 +14,19 @@
|
||||||
:duration "500ms"
|
:duration "500ms"
|
||||||
(box
|
(box
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(literal
|
(literal :visible {((entry.position == 'l') && !entry.is_focused) ? true : false}
|
||||||
:visible {((entry.position == 'l') && !entry.is_focused) ? true : false}
|
|
||||||
:content {((entry.position == 'l') && !entry.is_focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"}))))
|
:content {((entry.position == 'l') && !entry.is_focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"}))))
|
||||||
(box
|
(box :class "ws-center ${wsreveal}"
|
||||||
:class "ws-center ${wsreveal}"
|
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(literal
|
(literal :visible {entry.is_focused ? true : false}
|
||||||
:visible {entry.is_focused ? true : false}
|
|
||||||
:content {entry.is_focused ? "(workspace :ws entry :side 'center' :lastws ${jq(array,'.[-1].num')})" : "(box :visible false)"})))
|
:content {entry.is_focused ? "(workspace :ws entry :side 'center' :lastws ${jq(array,'.[-1].num')})" : "(box :visible false)"})))
|
||||||
(revealer
|
(revealer :class "ws-right"
|
||||||
:class "ws-right"
|
|
||||||
:reveal wsreveal
|
:reveal wsreveal
|
||||||
:transition "slideright"
|
:transition "slideright"
|
||||||
:duration "500ms"
|
:duration "500ms"
|
||||||
(box
|
(box
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(literal
|
(literal :visible {((entry.position == 'r') && !entry.is_focused) ? true : false}
|
||||||
:visible {((entry.position == 'r') && !entry.is_focused) ? true : false}
|
|
||||||
:content {((entry.position == 'r') && !entry.is_focused) ? "(workspace :ws entry :side 'right')" : "(box :visible false)"})))))))
|
:content {((entry.position == 'r') && !entry.is_focused) ? "(workspace :ws entry :side 'right')" : "(box :visible false)"})))))))
|
||||||
|
|
||||||
(defwidget workspace [ws side ?lastws ?firstws]
|
(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')}'
|
:class '${side} ${ws.num == lastws ? "last-workspace" : (ws.num == firstws ? "first-workspace" : "middle-workspace")} profile-${jq(ws,'.profile_name','r')}'
|
||||||
(box
|
(box
|
||||||
'${replace(ws.name,".*:","")}'
|
'${replace(ws.name,".*:","")}'
|
||||||
(label
|
(label :class "workspace-number"
|
||||||
:class "workspace-number"
|
|
||||||
:text {jq(captures(ws.num, '[0-9]$'),'.[].[]','r')}))))
|
:text {jq(captures(ws.num, '[0-9]$'),'.[].[]','r')}))))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue