Merge branch 'dev' into mercury

scripts: fix displayselect layout selection
status: fix spaces in sb-cpu
mail [WIP]: fix filtering
This commit is contained in:
David JULIEN 2022-11-21 19:30:30 +01:00
commit f075333be0
Signed by: swytch
GPG Key ID: 498590A3AA82A06F
3 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ allposs=$(xrandr -q | grep -w "connected")
screens=$(echo "$allposs" | awk '{print $1}')
# Get user choice including multi-monitor and manual selection:
chosen=$(printf "default\\n\\nmulti-monitor\\n%s\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") &&
chosen=$(printf "default\\nmulti-monitor\\n%s\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") &&
case "$chosen" in
"default") default ;;
"manual selection") arandr ; exit ;;

View File

@ -12,7 +12,7 @@ cache=/tmp/cpubarscache
stats=$(awk '/cpu[0-9]+/ {printf "%d %d %d\n", substr($1,4), ($2 + $3 + $4 + $5), $5 }' /proc/stat)
[ ! -f $cache ] && echo "$stats" > "$cache"
old=$(cat "$cache")
printf " %s " " "
printf " %s " ""
echo "$stats" | while read -r row; do
id=${row%% *}
rest=${row#* }