From 92f92f8e22cc77bb02a53c32d2aabbb83417eac2 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Thu, 7 May 2020 23:02:02 +0530 Subject: distrohopping --- bin/.local/bin/shut | 4 ++-- spectrwm/.config/spectrwm/spectrwm.conf | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/.local/bin/shut b/bin/.local/bin/shut index 801d5bf..76a7bd0 100755 --- a/bin/.local/bin/shut +++ b/bin/.local/bin/shut @@ -3,8 +3,8 @@ RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara" -nb "#000000" -nf "#bfbfbf" -sb "#84a0c6" -sf "#000000" -fn "Hermit:size=10") case $RET in - shutdown) sudo poweroff ;; - reboot) sudo reboot ;; + shutdown) doas poweroff ;; + reboot) doas reboot ;; sleep) xset s activate & sudo zzz ;; lock) xset s activate ;; *) ;; diff --git a/spectrwm/.config/spectrwm/spectrwm.conf b/spectrwm/.config/spectrwm/spectrwm.conf index 62709ad..3bff621 100644 --- a/spectrwm/.config/spectrwm/spectrwm.conf +++ b/spectrwm/.config/spectrwm/spectrwm.conf @@ -69,7 +69,7 @@ urgent_enabled = 1 autorun = ws[1]:urxvtd autorun = ws[1]:~/.fehbg autorun = ws[1]:picom -autorun = ws[2]:firefox +autorun = ws[2]:firefox-bin autorun = ws[1]:~/bin/xss autorun = ws[1]:~/.local/bin/bat_check.sh @@ -103,8 +103,8 @@ keyboard_mapping = ~/.config/spectrwm/keybindings.conf program[lock] = xset s activate program[term] = urxvtc program[menu] = ~/bin/menu -program[bup] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' -program[bdown] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done' +program[bup] = doas bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' +program[bdown] = doas bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done' program[soundinc] = pulsemixer --change-volume +5 program[sounddec] = pulsemixer --change-volume -5 program[soundmute] = pulsemixer --toggle-mute -- cgit v1.2.3