diff --git a/user/.config/suckless/dmenu/scripts/dmenu_power b/user/.config/suckless/dmenu/scripts/dmenu_power index 06bdeeb62..96f70d477 100755 --- a/user/.config/suckless/dmenu/scripts/dmenu_power +++ b/user/.config/suckless/dmenu/scripts/dmenu_power @@ -19,7 +19,7 @@ options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6\n$option7" ## POWER PROFILE OPTIONS ## pwr1="πŸ”₯ Performance" pwr2="βš– Balanced" -pwr3="πŸ”‹ Power Saver" +pwr3="⏱ Power Saver" pwr4="❌Cancel" ## POWER PROFILES ARRAY ## diff --git a/user/.config/suckless/dwm/config.def.h b/user/.config/suckless/dwm/config.def.h index b19ca3f2d..ebd8aa2cb 100644 --- a/user/.config/suckless/dwm/config.def.h +++ b/user/.config/suckless/dwm/config.def.h @@ -95,7 +95,7 @@ static const Rule rules[] = { { "Carla2-Control", NULL, NULL, 1 << 4, 0, -1 }, { "QjackCtl", NULL, NULL, 1 << 5, 1, -1 }, { "lsp-plugins", NULL, NULL, 1 << 5, 1, -1 }, - { "qpwgraph", NULL, NULL, 1 << 5, 1, -1 }, + { "qpwgraph", NULL, NULL, 1 << 5, 0, -1 }, { "Gimp-2.10", NULL, NULL, 1 << 6, 0, -1 }, { "krita", NULL, NULL, 1 << 6, 0, -1 }, { "Inkscape", NULL, NULL, 1 << 6, 0, -1 }, diff --git a/user/.config/suckless/dwmblocks/scripts/battery b/user/.config/suckless/dwmblocks/scripts/battery index dc65a14ed..832898527 100755 --- a/user/.config/suckless/dwmblocks/scripts/battery +++ b/user/.config/suckless/dwmblocks/scripts/battery @@ -1,5 +1,13 @@ #!/bin/bash # Loop through all attached batteries and format the info +currntpwr=$(powerprofilesctl get) +if [ "${currntpwr}" = "performance" ]; then + pwr="| πŸ”₯ Performance" +elif [ "${currntpwr}" = "balanced" ]; then + pwr="| βš– Balanced" +elif [ "${currntpwr}" = "power-saver" ]; then + pwr="| ⏱ Power Saver" +fi for battery in /sys/class/power_supply/BAT?*; do # If non-first battery, print a space separator. [ -n "${capacity+x}" ] && printf " " @@ -16,5 +24,5 @@ for battery in /sys/class/power_supply/BAT?*; do # Will make a warn variable if discharging and low [ "$status" = "πŸ”‹" ] && [ "$capacity" -le 25 ] && warn="❗" # Prints the info - printf "%s%s%d%% " " $status" "$warn " "$capacity "; unset warn + printf "%s%s%d%%%s " " $status" "$warn " "$capacity " " $pwr"; unset warn done && printf "\\n"