diff options
author | xyz <gky44px1999@gmail.com> | 2021-05-23 18:32:27 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-05-23 18:32:27 -0700 |
commit | f8b801b9b73fde21dd708960798b53dc1b684ab8 (patch) | |
tree | e9694e28b29ad42f96d53753a2cd8959b56c2101 /programs/my_scripts | |
parent | 65143e631f37954a7c3fc6aedabd1e30f56518b0 (diff) |
add desktop user dir, while loop time sleep in .xinitrc
Diffstat (limited to 'programs/my_scripts')
-rwxr-xr-x | programs/my_scripts/set_dwm_status_bar.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/programs/my_scripts/set_dwm_status_bar.sh b/programs/my_scripts/set_dwm_status_bar.sh index a3845d20..035adff4 100755 --- a/programs/my_scripts/set_dwm_status_bar.sh +++ b/programs/my_scripts/set_dwm_status_bar.sh @@ -1,9 +1,6 @@ -while true; do - xsetroot -name "$(date "+%a %m/%d %H:%M") \ +xsetroot -name "$(date "+%a %m/%d %H:%M") \ | $(if xset q | grep -q "Caps Lock: *on"; then echo A; else echo a; fi) \ | $(cat /sys/class/net/wlp6s0/operstate) \ | $(free -h | awk '(NR==2){ print $4 }') \ | $(sed 's/000$/°C/' /sys/class/thermal/thermal_zone0/temp) \ | $(cat /sys/class/power_supply/BAT1/capacity)%" - sleep 1 -done |