New backup 2026-01-03 14:30:02

This commit is contained in:
Penelope Gwen 2026-01-03 14:30:02 -08:00
parent 84513a7cc8
commit 3a35ef2bbf
2 changed files with 5 additions and 4 deletions

View file

@ -15,9 +15,9 @@
:space-evenly false
:halign "center"
(for interface in array
(button :onclick ""
{( interface.type == "wifi" ? "" : "eth" )}
(button :onclick "nmcli device ${( interface.state == 'connected' ? 'down' : 'up' )} ${interface.device}"
:tooltip "${interface.connection} (${interface.device})"
{( interface.type == "wifi" ? "" : ( interface.type == "ethernet" ? "󰈀" : "" ))}
)
)
)

View file

@ -19,7 +19,8 @@
(for entry in array
(button :onclick 'swaymsg [con_id=${entry.win_id}] scratchpad show'
:class "${(entry.visible == 'true') ? 'active' : 'inactive'}"
:tooltip "${entry.name}\n${entry.title}"
:tooltip "${entry.title}
${entry.name}"
(image :path {entry.icon}
:image-width 20
:image-height 20)