dotfiles/de/home/.config/eww/modules/home/shortcuts.yuck
2025-07-11 12:00:06 -07:00

157 lines
4.9 KiB
Text

(defwidget shortcuts []
(box
:class "shortcuts"
:orientation "v"
:space-evenly true
:halign "center"
:width 300
:height 75
(box
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
: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"
"󱣝")
;; (image
;; :image-width 20
;; :path "icons/home/shortcuts/personal/ceiling-light-multiple.svg"
;; ))
(button
:width 60
:height 60
:onclick "librewolf-profile Penelope 'https://hass.pogmom.me'"
"󰟐"))
;; (image
;; :image-width 20
;; :path "icons/home/shortcuts/personal/home-assistant.svg"
;; )))
(box
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
:orientation "h"
:space-evenly true
:halign "center"
(button
:width 60
:height 60
:onclick "librewolf-profile Penelope 'https://cloud.pogmom.me'"
"")
;; (image
;; :image-width 20
;; :path "icons/home/shortcuts/personal/nextcloud.svg"
;; ))
(button
:width 60
:height 60
:onclick "librewolf-profile Penelope 'https://masto.pogmom.me'"
"󰫑")
;; (image
;; :image-width 20
;; :path "icons/home/shortcuts/personal/mastodon.svg"
;; ))
(button
:width 60
:height 60
:onclick "librewolf-profile Penelope 'https://watch.pogmom.me'"
""))
;; (image
;; :image-width 20
;; :path "icons/home/shortcuts/personal/jellyfin.svg"
;; )))
(box
:visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 19) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 10)}
:orientation "h"
:space-evenly true
:halign "center"
(button
:width 60
:height 60
:onclick "dolphin 'smb://server-hp-y2z63av'"
:tooltip "smb://server-hp-y2z63av"
(image
:image-width 20
:path "icons/home/shortcuts/development/cloud.svg"
))
(button
:width 60
:height 60
:onclick "scripts/home/shortcuts/development/router-netgear-r8000"
:tooltip "router-netgear-r8000"
(image
:image-width 20
:path "icons/home/shortcuts/development/router-network.svg"
))
(button
:width 60
:height 60
:onclick "scripts/home/shortcuts/development/bridge-netgear-r6700"
:tooltip "bridge-netgear-r6700"
(image
:image-width 20
:path "icons/home/shortcuts/development/router-network-wireless.svg"
)))
(box
:visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 19) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 10)}
: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"
(image
:image-width 20
:path "icons/home/shortcuts/development/network-pos.svg"
))
(button
:width 60
:height 60
:onclick "scripts/home/shortcuts/development/server-nintendo-rvl101"
:tooltip "server-nintendo-wii-rvl101"
(image
:image-width 20
:path "icons/home/shortcuts/development/nintendo-wii.svg"
))
(button
:width 60
:height 60
:onclick "scripts/home/shortcuts/development/server-hp-y2z63av"
:tooltip "server-hp-y2z63av"
(image
:image-width 20
:path "icons/home/shortcuts/development/play-network.svg"
))
(button
:width 60
:height 60
:onclick "scripts/home/shortcuts/development/server-dell-7050sff-debian"
:tooltip "server-dell-7050sff-debian"
(image
:image-width 20
:path "icons/home/shortcuts/development/folder-network.svg"
)))
(box
:visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 39) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 30)}
:orientation "h"
:space-evenly true
:halign "center"
(button
:width 60
:height 60
:onclick "scripts/home/shortcuts/work/lanecc_links"
(image
:image-width 20
:path "icons/home/shortcuts/work/briefcase.svg"
))
(button
:width 60
:height 60
:onclick "scripts/home/shortcuts/work/2nd_monitor"
(image
:image-width 20
:path "icons/home/shortcuts/work/monitor-multiple.svg"
)))))