New backup 2025-03-04 16:00:03

This commit is contained in:
Penelope Gwen 2025-03-04 16:00:03 -08:00
parent 25d60fe6f6
commit 87f3f9ebcb
4 changed files with 15 additions and 5 deletions

View file

@ -58,6 +58,7 @@ circular-progress {
.rightgroup>label,
.rightgroup>button,
.music,
.profile,
.active_window {
background-color: $color9;
border: 2px solid $color1;

View file

@ -7,6 +7,7 @@
(defwidget leftgroup []
(box :class "leftgroup" :orientation "h" :space-evenly false :halign "start"
(powermenu)
(profile)
(workspaces :array workspacesArray)
(windowtitle)))
@ -36,7 +37,15 @@
:class {entry.focused ? "focused" : ""}
`${replace(entry.name,".*:","")}`))))
(deflisten active_window_name :initial false
(defpoll active_profile :initial false
:interval "1s"
"sp-profile-icon")
(defwidget profile []
(button :onclick "sp-profiles next"
:class "profile"
{active_profile}))
(deflisten active_window_name :initial ""
:interval "1s"
"scripts/activewindow")
(defwidget windowtitle []
@ -122,10 +131,10 @@
:orientation "h"
:space-evenly false
:halign "center"
(button :onclick 'notify-send test'
(button :onclick {wireless_active ? 'scripts/network-updown wifi down' : 'scripts/network-updown wifi up'}
:class {wireless_active ? "active" : ""}
"")
(button :onclick 'notify-send test'
(button :onclick {wired_active ? 'scripts/network-updown ethernet down' : 'scripts/network-updown ethernet up'}
:class {wired_active ? "active" : ""}
"🖧")))

View file

@ -1,7 +1,7 @@
#!/bin/bash
function get_workspaces_info() {
output=$(swaymsg -t get_workspaces | jq 'sort_by(.name)')
output=$(swaymsg -t get_workspaces | jq 'sort_by(.num)')
echo $output
}

View file

@ -6,6 +6,6 @@ devices=$(nmcli -g DEVICE device)
for d in ${devices};do
if [ "$(nmcli -g GENERAL.TYPE device show ${d})" = "${type}" ];then
printf 'device: %s\n' "${d}"
nmcli device "${action}" "${d}"
fi
done