dotfiles/de/home/.config/eww/modules/home/shortcuts.yuck
2025-04-22 15:45:02 -07:00

143 lines
4.5 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 -e light.penny_room_all_lights -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-r6250"
:tooltip "bridge-netgear-r6250"
(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-dell-p95g001-debian"
:tooltip "server-dell-p95g001-debian"
(image
:image-width 20
:path "icons/home/shortcuts/development/server-network.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"
)))))