New backup 2025-03-04 16:00:03
This commit is contained in:
parent
25d60fe6f6
commit
87f3f9ebcb
4 changed files with 15 additions and 5 deletions
|
@ -58,6 +58,7 @@ circular-progress {
|
||||||
.rightgroup>label,
|
.rightgroup>label,
|
||||||
.rightgroup>button,
|
.rightgroup>button,
|
||||||
.music,
|
.music,
|
||||||
|
.profile,
|
||||||
.active_window {
|
.active_window {
|
||||||
background-color: $color9;
|
background-color: $color9;
|
||||||
border: 2px solid $color1;
|
border: 2px solid $color1;
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
(defwidget leftgroup []
|
(defwidget leftgroup []
|
||||||
(box :class "leftgroup" :orientation "h" :space-evenly false :halign "start"
|
(box :class "leftgroup" :orientation "h" :space-evenly false :halign "start"
|
||||||
(powermenu)
|
(powermenu)
|
||||||
|
(profile)
|
||||||
(workspaces :array workspacesArray)
|
(workspaces :array workspacesArray)
|
||||||
(windowtitle)))
|
(windowtitle)))
|
||||||
|
|
||||||
|
@ -36,7 +37,15 @@
|
||||||
:class {entry.focused ? "focused" : ""}
|
:class {entry.focused ? "focused" : ""}
|
||||||
`${replace(entry.name,".*:","")}`))))
|
`${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"
|
:interval "1s"
|
||||||
"scripts/activewindow")
|
"scripts/activewindow")
|
||||||
(defwidget windowtitle []
|
(defwidget windowtitle []
|
||||||
|
@ -122,10 +131,10 @@
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "center"
|
: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" : ""}
|
: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" : ""}
|
:class {wired_active ? "active" : ""}
|
||||||
"🖧")))
|
"🖧")))
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function get_workspaces_info() {
|
function get_workspaces_info() {
|
||||||
output=$(swaymsg -t get_workspaces | jq 'sort_by(.name)')
|
output=$(swaymsg -t get_workspaces | jq 'sort_by(.num)')
|
||||||
echo $output
|
echo $output
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,6 @@ devices=$(nmcli -g DEVICE device)
|
||||||
|
|
||||||
for d in ${devices};do
|
for d in ${devices};do
|
||||||
if [ "$(nmcli -g GENERAL.TYPE device show ${d})" = "${type}" ];then
|
if [ "$(nmcli -g GENERAL.TYPE device show ${d})" = "${type}" ];then
|
||||||
printf 'device: %s\n' "${d}"
|
nmcli device "${action}" "${d}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue