New backup 2026-01-22 12:42:59
This commit is contained in:
parent
f62f862891
commit
1bff2a3344
12 changed files with 198 additions and 165 deletions
|
|
@ -72,8 +72,7 @@
|
|||
|
||||
;leftgroup
|
||||
(include "modules/bar/powermenu.yuck")
|
||||
;(include "modules/bar/profile.yuck")
|
||||
(include "modules/bar/profile1.yuck")
|
||||
(include "modules/bar/profile.yuck")
|
||||
(include "modules/bar/workspaces.yuck")
|
||||
(include "modules/bar/window_name.yuck")
|
||||
(include "modules/bar/scratchpad.yuck")
|
||||
|
|
|
|||
|
|
@ -6,13 +6,9 @@
|
|||
:revealvar-name "reveal_battery"
|
||||
(label
|
||||
:class "revealer-preview ${(EWW_BATTERY == '' || jq(EWW_BATTERY,'.[].status?','r') == 'Charging') ? 'active' : '' }"
|
||||
; :class "revealer-preview ${(EWW_BATTERY == '' || jq(EWW_BATTERY,'.[].status?','r') == 'Charging') ? 'active' : 'inactive' }"
|
||||
; :tooltip "${jq(EWW_BATTERY,'.[].capacity?')}%"
|
||||
; {(EWW_BATTERY == "") ? "" : `${(jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " ${jq(EWW_BATTERY,'.[].capacity?')}%" : " ${jq(EWW_BATTERY,'.[].capacity?')}%"}`})
|
||||
:tooltip `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? "Charging" : "Discharging"}, ${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'.total_avg?'),1)}% of total average"}`
|
||||
:text `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " " : " "}${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'.[].capacity?'),0)}%"}`)
|
||||
(battery_children)))
|
||||
; ${jq(EWW_BATTERY,'.[].capacity?')}%"}
|
||||
(defwidget battery_children []
|
||||
(box :class "reveal-children"
|
||||
:orientation "h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
;; (deflisten music :initial ""
|
||||
;; "playerctl --follow metadata --format '{{ title }}' || true")
|
||||
|
||||
(defwidget music []
|
||||
(box :visible {nowplaying != ""}
|
||||
:class {nowplaying != "" ? "music" : "hidden"}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
(deflisten active_profile "scripts/bar/profile")
|
||||
(deflisten active_profile_name "scripts/bar/profile-name")
|
||||
(defwidget profile []
|
||||
(button :onclick "sp-profiles next"
|
||||
:tooltip "${active_profile_name}"
|
||||
:class "profile ${((active_profile_name == 'Work') ? 'profile-work' : ((active_profile_name == 'Housing') ? 'profile-school' : ((active_profile_name == 'Development') ? 'profile-development' : ((active_profile_name == 'Personal') ? 'profile-personal' : ''))))}"
|
||||
{active_profile}))
|
||||
(button :onclick "sdu profile switch next"
|
||||
:tooltip {jq(profile_info,'.name','r')}
|
||||
:class "profile profile-${(jq(profile_info,'.name','r'))}"
|
||||
{jq(profile_info,'.icon','r')}))
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
;(deflisten active_profile "scripts/bar/profile")
|
||||
;(deflisten active_profile_name "scripts/bar/profile-name")
|
||||
(defwidget profile []
|
||||
(button :onclick "sdu profile switch next"
|
||||
:tooltip {jq(profile_info,'.name','r')}
|
||||
:class "profile profile-${(jq(profile_info,'.name','r'))}"
|
||||
{jq(profile_info,'.icon','r')}))
|
||||
|
|
@ -4,11 +4,8 @@
|
|||
:orientation "h"
|
||||
:space-evenly false
|
||||
(eventbox
|
||||
; :onhover "${EWW_CMD} update ${revealvar-name}=true"
|
||||
:onscroll "if test '{}' = 'down';then ${EWW_CMD} update ${revealvar-name}=true;else ${EWW_CMD} update ${revealvar-name}=false;fi"
|
||||
; :onscroll "/usr/bin/env bash 'if [[]] ${EWW_CMD} update ${revealvar-name}=true'"
|
||||
:onhoverlost "${EWW_CMD} update ${revealvar-name}=false"
|
||||
; :onhoverlost "${EWW_CMD} update ${revealvar-name}=false"
|
||||
(box
|
||||
:space-evenly false
|
||||
(children :nth 0)
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
:text " ${jq(sway_info,'.scratchpad_info | length')} ${reveal_scratchpad ? '' : ''}")
|
||||
(scratchpad_children :array {jq(sway_info,'.scratchpad_info','r')})))
|
||||
|
||||
;(deflisten scratchpadArray :initial "${[{"icon": "/usr/share/icons/breeze-dark/mimetypes/32/unknown.svg", "name": "placeholder", "title": "placeholder", "win_id": "0", "visible": "false"}]}"
|
||||
; 'scripts/bar/scratchpad')
|
||||
(defwidget scratchpad_children [array]
|
||||
(box :orientation "h"
|
||||
:class "reveal-children"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
;(deflisten active_window_name :initial ""
|
||||
; :interval "60s"
|
||||
; "scripts/bar/activewindow")
|
||||
(defwidget windowtitle []
|
||||
(label :class {jq(sway_info,'.window_info.title','r') != "" ? "active_window" : ""}
|
||||
:text {jq(sway_info,'.window_info.title','r')}))
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
;(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]
|
||||
|
|
@ -43,7 +39,6 @@
|
|||
(defwidget workspace [ws side ?lastws ?firstws]
|
||||
(button :onclick `swaymsg workspace "${ws.name}"`
|
||||
:tooltip "${ws.profile_name} ( ${jq(captures(ws.num, '[0-9]$'),'.[].[]','r')} )"
|
||||
; :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' : ''))))}'
|
||||
:class '${side} ${ws.num == lastws ? "last-workspace" : (ws.num == firstws ? "first-workspace" : "middle-workspace")} profile-${jq(ws,'.profile_name','r')}'
|
||||
(box
|
||||
'${replace(ws.name,".*:","")}'
|
||||
|
|
|
|||
|
|
@ -13,144 +13,51 @@
|
|||
(box
|
||||
:class "shortcuts"
|
||||
:orientation "v"
|
||||
:space-evenly true
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:width 300
|
||||
:height 75
|
||||
(box
|
||||
; :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 10}
|
||||
:visible (arraylength(sway_info.workspace_profile.scripts) > 0)
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "hass-cli -a services -I area_id -i left_bedroom -d light -s toggle"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Turn on bedroom lights"))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "librewolf-profile Penelope 'https://hass.pogmom.me'"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Home Assistant")))
|
||||
(for script in {jq(sway_info,'[.workspace_profile.scripts[0,1,2]]','r')}
|
||||
(button
|
||||
:visible "${script?.name!='null'}"
|
||||
:onclick "${script?.command}"
|
||||
:tooltip "${script?.name}"
|
||||
(label
|
||||
:width 60
|
||||
:height 60
|
||||
:justify "center"
|
||||
:text "${script?.icon}"))
|
||||
)
|
||||
; (button
|
||||
; :width 60
|
||||
; :height 60
|
||||
; :onclick "hass-cli -a services -I area_id -i left_bedroom -d light -s toggle"
|
||||
; (label
|
||||
; :justify "center"
|
||||
; :text ""
|
||||
; :tooltip "Turn on bedroom lights"))
|
||||
)
|
||||
(box
|
||||
; :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 10}
|
||||
:visible (arraylength(sway_info.workspace_profile.scripts) > 3)
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "librewolf-profile Penelope 'https://cloud.pogmom.me'"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Nextcloud"))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "librewolf-profile Penelope 'https://masto.pogmom.me'"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Mastodon"))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "librewolf-profile Penelope 'https://watch.pogmom.me'"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Jellyfin")))
|
||||
(box
|
||||
; :visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 20) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 11)}
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "dolphin 'smb://server-hp-y2z63av'"
|
||||
:tooltip "smb://server-hp-y2z63av"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Media Server SMB"))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/development/router-netgear-r8000"
|
||||
:tooltip "router-netgear-r8000"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/development/bridge-netgear-r6700"
|
||||
:tooltip "bridge-netgear-r6700"
|
||||
(label
|
||||
:justify "center"
|
||||
:text "")))
|
||||
(box
|
||||
; :visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 20) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 11)}
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/development/server-asus-n705fd-debian"
|
||||
:tooltip "server-asus-n705fd-debian"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""))
|
||||
;; (button
|
||||
;; :width 60
|
||||
;; :height 60
|
||||
;; :onclick "scripts/home/shortcuts/development/server-nintendo-rvl101"
|
||||
;; :tooltip "server-nintendo-wii-rvl101"
|
||||
;; (label
|
||||
;; :justify "center"
|
||||
;; :text ""))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/development/server-hp-y2z63av"
|
||||
:tooltip "server-hp-y2z63av"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/development/server-dell-7050sff-debian"
|
||||
:tooltip "server-dell-7050sff-debian"
|
||||
(label
|
||||
:justify "center"
|
||||
:text "")))
|
||||
(box
|
||||
; :visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 40) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 31)}
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/work/lanecc_links"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/work/2nd_monitor"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
)))))
|
||||
(for script in {jq(sway_info, '[.workspace_profile.scripts[3,4,5]]','r')}
|
||||
(button
|
||||
:visible "${script?.name!='null'}"
|
||||
:onclick "${script?.command}"
|
||||
:tooltip "${script?.name}"
|
||||
(label
|
||||
:width 60
|
||||
:height 60
|
||||
:justify "center"
|
||||
:text {script?.icon}))
|
||||
))
|
||||
|
||||
))
|
||||
|
|
|
|||
156
de/home/.config/eww/modules/home/shortcuts.yuck.bak
Normal file
156
de/home/.config/eww/modules/home/shortcuts.yuck.bak
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
(defvar reveal_shortcuts true)
|
||||
(defwidget shortcuts_revealer []
|
||||
(revealer-on-press
|
||||
:revealvar reveal_shortcuts
|
||||
:revealvar-name "reveal_shortcuts"
|
||||
(button
|
||||
:width 300
|
||||
:class "revealer-title"
|
||||
"Shortcuts ${reveal_shortcuts ? '' : ''}")
|
||||
(shortcuts)))
|
||||
|
||||
(defwidget shortcuts []
|
||||
(box
|
||||
:class "shortcuts"
|
||||
:orientation "v"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
:width 300
|
||||
:height 75
|
||||
(box
|
||||
; :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 10}
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "hass-cli -a services -I area_id -i left_bedroom -d light -s toggle"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Turn on bedroom lights"))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "librewolf-profile Penelope 'https://hass.pogmom.me'"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Home Assistant")))
|
||||
(box
|
||||
; :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 10}
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "librewolf-profile Penelope 'https://cloud.pogmom.me'"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Nextcloud"))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "librewolf-profile Penelope 'https://masto.pogmom.me'"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Mastodon"))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "librewolf-profile Penelope 'https://watch.pogmom.me'"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Jellyfin")))
|
||||
(box
|
||||
; :visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 20) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 11)}
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "dolphin 'smb://server-hp-y2z63av'"
|
||||
:tooltip "smb://server-hp-y2z63av"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
:tooltip "Media Server SMB"))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/development/router-netgear-r8000"
|
||||
:tooltip "router-netgear-r8000"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/development/bridge-netgear-r6700"
|
||||
:tooltip "bridge-netgear-r6700"
|
||||
(label
|
||||
:justify "center"
|
||||
:text "")))
|
||||
(box
|
||||
; :visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 20) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 11)}
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/development/server-asus-n705fd-debian"
|
||||
:tooltip "server-asus-n705fd-debian"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""))
|
||||
;; (button
|
||||
;; :width 60
|
||||
;; :height 60
|
||||
;; :onclick "scripts/home/shortcuts/development/server-nintendo-rvl101"
|
||||
;; :tooltip "server-nintendo-wii-rvl101"
|
||||
;; (label
|
||||
;; :justify "center"
|
||||
;; :text ""))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/development/server-hp-y2z63av"
|
||||
:tooltip "server-hp-y2z63av"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/development/server-dell-7050sff-debian"
|
||||
:tooltip "server-dell-7050sff-debian"
|
||||
(label
|
||||
:justify "center"
|
||||
:text "")))
|
||||
(box
|
||||
; :visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 40) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 31)}
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/work/lanecc_links"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""))
|
||||
(button
|
||||
:width 60
|
||||
:height 60
|
||||
:onclick "scripts/home/shortcuts/work/2nd_monitor"
|
||||
(label
|
||||
:justify "center"
|
||||
:text ""
|
||||
)))))
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
(deflisten sway_info :initial '{"window_info":{"title":"","window_count":0},"workspace_info":[]}'
|
||||
(deflisten sway_info :initial '{"window_info":{"title":"","window_count":0},"workspace_info":[],"workspace_profile":{"icon":"","name":"","scripts":[]}}'
|
||||
"sdu sway get -m")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue