Improved wifi script & partly functional cmd widg

This commit is contained in:
Candifloss 2025-01-09 21:01:40 +05:30
parent 5fd5fc094b
commit df1cfe737b
4 changed files with 10 additions and 9 deletions

View File

@ -154,7 +154,7 @@ tooltip {
.cmd_input_field {
border-radius: 5px;
background-color: rgba(128, 128, 128, 0.5);
background-color: #232323;
padding: 5px;
margin: 10px;
}

View File

@ -8,7 +8,7 @@
.cmd_input_field {
border-radius: 5px;
background-color: $dock_bg_col;
background-color: #232323;
padding: 5px;
margin: 10px;
}

View File

@ -1,4 +1,4 @@
res=$(nmcli device wifi list | sed 's/\ \ \ */|/g' | grep "*" | cut -d"|" -f 3,6,8)
res=$(nmcli device wifi list | sed 's/\ \ \ */|/g' | grep -E "^\*" | cut -d"|" -f 3,6,8)
name=${res%%|*}
bars=${res##*|}

View File

@ -5,12 +5,12 @@
:x "0%"
:y "0%"
:height "70px"
:width "300px"
:width "450px"
:anchor "center center"
)
:monitor 0
:stacking "fg"
:windowtype "dock"
:windowtype "dialog"
:wm-ignore true
:active true
:focusable true
@ -24,10 +24,11 @@
:class "cmd_input_field"
:active true
:halign "fill"
:height "70px"
:width "300px"
:value "cmd:"
:height "70"
:width "450"
;:value "cmd:"
:password false
:onaccept "fish {}"
:onaccept "eww close executioner && {}"
:timeout "1s"
)
)