From 67deafe0245a234016a1b5f997ca66e2f37dcc2d Mon Sep 17 00:00:00 2001 From: Tovi Jaeschke-Rogers Date: Sun, 13 Jun 2021 10:09:03 +0930 Subject: [PATCH] Update dwm status bar --- .dwm/autostart.sh | 8 ++------ .dwm/dwm-sss | 9 ++------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.dwm/autostart.sh b/.dwm/autostart.sh index 0f6e117..c62f008 100644 --- a/.dwm/autostart.sh +++ b/.dwm/autostart.sh @@ -1,14 +1,10 @@ #!/bin/bash -xmodmap -e 'clear Lock' & -xmodmap -e 'keycode 135 = Super_R' & -xmodmap -e 'keycode 66 = Escape' & -xmodmap -e 'keycode 9 = Caps_Lock' & - +~/.local/bin/remap-keys #pulseaudio --start & dunst & xautolock -time 10 -locker slock & -feh --bg-fill ~/Pictures/Wallpapers/nature/$(ls ~/Pictures/Wallpapers/nature/ | shuf -n 1) +feh --bg-fill ~/Pictures/wp/$(ls ~/Pictures/wp/ | shuf -n 1) #compton -b --backend xrender --config ~/.config/compton/compton.conf & unclutter & #transmission-daemon & diff --git a/.dwm/dwm-sss b/.dwm/dwm-sss index 7942b43..820cd18 100644 --- a/.dwm/dwm-sss +++ b/.dwm/dwm-sss @@ -3,15 +3,10 @@ while true; do f=$(cat /sys/class/thermal/thermal_zone0/temp) + b=$(cat /sys/class/power_supply/BAT1/capacity) t=$(echo $f | cut -b -2).$(echo $f | cut -b 3-)°C d=$(date '+%a %b %d, %H:%M:%S') p=$(pacman -Qu | grep -v "\[ignored\]" | wc -l) - s=$(mpc status | grep -Eo 'playing|paused' || echo "stopped") - S=$(mpc current| cut -c 1-30) - td=$(transmission-remote --list | grep "Downloading" | uniq -c | awk '{print $1}') - [ -z $td ] && td=0 - ts=$(transmission-remote --list | grep "Seeding" | uniq -c | awk '{print $1}') - [ -z $ts ] && ts=0 - xsetroot -name "Torrents Down: $td Seed: $ts | Mpc $s $S | Pkgs: $p | $d | $t" + xsetroot -name " Pkgs: ${p} | ${d} | ${t} | Bat: ${b}% " sleep 0.5; done;