dotfiles

config files and scripts
git clone git://git.hanetzok.net/dotfiles
Log | Files | Refs

commit 13d7a4fee569373e040879386c51417ad3cce4fe
parent dea49d996f62d94e1dec8e4c107d00b75b6d32fd
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Sun, 12 Jan 2025 23:22:03 +0100

update some scripts

Diffstat:
M.local/bin/remaps.sh | 2+-
M.local/bin/setbg.sh | 2+-
M.local/bin/status.sh | 4+++-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.local/bin/remaps.sh b/.local/bin/remaps.sh @@ -9,4 +9,4 @@ setxkbmap -option caps:super,altwin:menu_win killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' # Turn off caps lock if on since there is no longer a key for it. xset -q | grep -q "Caps Lock:\s*on" && xdotool key Caps_Lock -setxkbmap ei +setxkbmap eu diff --git a/.local/bin/setbg.sh b/.local/bin/setbg.sh @@ -1,3 +1,3 @@ #!/bin/sh -xwallpaper --maximize "$XDG_DATA_HOME"/wallpaper.png +xwallpaper --maximize "$XDG_DATA_HOME"/wallpaper diff --git a/.local/bin/status.sh b/.local/bin/status.sh @@ -19,7 +19,9 @@ while true; do cpu="$(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}')" song="$(mpc current)" mpc="$(mpc_state)" + temp="$(sensors | grep CPU | awk '{print $2}')" + fan="$(cat /proc/acpi/ibm/fan | grep 'speed:' | awk '{print $2}')" - xsetroot -name "$time | $date | BAT: $bat%; [$mpc] $song ;RAM: $ram | CPU: $cpu" + xsetroot -name "$time | $date | BAT: $bat%; [$mpc] $song ;TEMP: $temp | FAN: $fan " sleep 1 done