diff --git a/eww.css b/eww.css index 8c8b34f..b431a6b 100644 --- a/eww.css +++ b/eww.css @@ -145,3 +145,16 @@ tooltip { .panel_mini_widg.panel_ico.panel_weather_ico { font-size: 22px; } + +/* Command prompt widget */ +.executioner { + border-radius: 5px; + background-color: rgba(128, 128, 128, 0.5); +} + +.cmd_input_field { + border-radius: 5px; + background-color: rgba(128, 128, 128, 0.5); + padding: 5px; + margin: 10px; +} diff --git a/eww.yuck b/eww.yuck index 7dc962d..6d70125 100644 --- a/eww.yuck +++ b/eww.yuck @@ -2,4 +2,5 @@ (include "yuck/test/test-window.yuck") (include "yuck/osd/osd_window.yuck") (include "yuck/dock/dock_window.yuck") -(include "yuck/panel/panel_window.yuck") \ No newline at end of file +(include "yuck/panel/panel_window.yuck") +(include "yuck/exec_cmd/executioner.yuck") \ No newline at end of file diff --git a/scss/cmd/_cmd.scss b/scss/cmd/_cmd.scss new file mode 100644 index 0000000..94661ce --- /dev/null +++ b/scss/cmd/_cmd.scss @@ -0,0 +1,14 @@ +@use "../colors/_glassy.scss" as *; +/* Command prompt widget */ + +.executioner { + border-radius: 5px; + background-color: $dock_bg_col; +} + +.cmd_input_field { + border-radius: 5px; + background-color: $dock_bg_col; + padding: 5px; + margin: 10px; +} \ No newline at end of file diff --git a/scss/eww.scss b/scss/eww.scss index 539b9ef..6bfff6a 100644 --- a/scss/eww.scss +++ b/scss/eww.scss @@ -3,6 +3,7 @@ @use "osd/_osd.scss"; @use "dock/_dock.scss"; @use "panel/_panel.scss"; +@use "cmd/cmd"; //@use "colors/_glassy.scss"; \ No newline at end of file diff --git a/sh/values/vol/volume_mono.sh b/sh/values/vol/volume_mono.sh index c1d1af6..3a4e41e 100755 --- a/sh/values/vol/volume_mono.sh +++ b/sh/values/vol/volume_mono.sh @@ -1,8 +1,8 @@ #!/bin/bash vol=$(amixer get Master | grep "Mono: Playback" | sed -n 's/.*Mono: Playback [0-9]* \[\([0-9]*\)%\].*\[\(.*\)\]/\1 \2/p') -v=${vol%% *} # Volume percentage (18%) -s=${vol#* } # Mute status (on/off) +v=${vol%% *} # Volume percentage +s=${vol#* } # Volume status (on/off) if [[ $v == '0' ]]; then s="empty"; diff --git a/yuck/exec_cmd/executioner.yuck b/yuck/exec_cmd/executioner.yuck new file mode 100644 index 0000000..1879211 --- /dev/null +++ b/yuck/exec_cmd/executioner.yuck @@ -0,0 +1,33 @@ +; Command prompt +(defwindow executioner [] + :geometry ( + geometry + :x "0%" + :y "0%" + :height "70px" + :width "300px" + :anchor "center center" + ) + :monitor 0 + :stacking "fg" + :windowtype "dock" + :wm-ignore true + :active true + :focusable true + :class "cmd_window" + + (cmd_input) +) + +(defwidget cmd_input [] + (input + :class "cmd_input_field" + :active true + :halign "fill" + :height "70px" + :width "300px" + :value "cmd:" + :password false + :onaccept "fish {}" + ) +) \ No newline at end of file