From: Amin Bandali Date: Fri, 20 May 2022 03:26:06 +0000 (-0400) Subject: Improve usability of rofi-light and rofi-pamixer wrappers X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/7f1bcaabd892f49c6799fd4c06e774f5538666a0?ds=inline Improve usability of rofi-light and rofi-pamixer wrappers --- diff --git a/.local/bin/rofi-light b/.local/bin/rofi-light index f43543b..4dedc31 100755 --- a/.local/bin/rofi-light +++ b/.local/bin/rofi-light @@ -1,4 +1,4 @@ #!/bin/sh cur=$(light -G) -val=$(rofi -dmenu -mesg "light $cur" -p "light -S " -l 0 -width 12) +val=$(rofi -dmenu -mesg "brightness: $cur" -p "" -l 0 -width 12) [ -n "$val" ] && light -S "$val" diff --git a/.local/bin/rofi-pamixer b/.local/bin/rofi-pamixer index da06a6d..19377dc 100755 --- a/.local/bin/rofi-pamixer +++ b/.local/bin/rofi-pamixer @@ -1,4 +1,4 @@ #!/bin/sh cur=$(pamixer --get-volume) -val=$(rofi -dmenu -mesg "pamixer --get-volume $cur" -p "pamixer --set-volume " -l 0 -width 12) +val=$(rofi -dmenu -mesg "volume: $cur" -p "" -l 0 -width 8) [ -n "$val" ] && pamixer --set-volume "$val"