From df1cfe737b340d490cdede5172d4c6ead6b37c97 Mon Sep 17 00:00:00 2001 From: candifloss Date: Thu, 9 Jan 2025 21:01:40 +0530 Subject: [PATCH] Improved wifi script & partly functional cmd widg --- eww.css | 2 +- scss/cmd/_cmd.scss | 2 +- sh/values/network/wifi.sh | 2 +- yuck/exec_cmd/executioner.yuck | 13 +++++++------ 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/eww.css b/eww.css index b431a6b..3417144 100644 --- a/eww.css +++ b/eww.css @@ -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; } diff --git a/scss/cmd/_cmd.scss b/scss/cmd/_cmd.scss index 94661ce..5d7cd6b 100644 --- a/scss/cmd/_cmd.scss +++ b/scss/cmd/_cmd.scss @@ -8,7 +8,7 @@ .cmd_input_field { border-radius: 5px; - background-color: $dock_bg_col; + background-color: #232323; padding: 5px; margin: 10px; } \ No newline at end of file diff --git a/sh/values/network/wifi.sh b/sh/values/network/wifi.sh index 121ebfd..c2b42af 100755 --- a/sh/values/network/wifi.sh +++ b/sh/values/network/wifi.sh @@ -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##*|} diff --git a/yuck/exec_cmd/executioner.yuck b/yuck/exec_cmd/executioner.yuck index 1879211..9634619 100644 --- a/yuck/exec_cmd/executioner.yuck +++ b/yuck/exec_cmd/executioner.yuck @@ -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" ) ) \ No newline at end of file