Ivan Polyakov
3 years ago
1 changed files with 20 additions and 0 deletions
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
# Set keyboard layout |
||||
setxkbmap -option 'grp:alt_shift_toggle' -option 'caps:swapescape' 'dvorak,ru' |
||||
|
||||
while true; do |
||||
XROOTNAME=$(cat <<-END |
||||
RAM: $(free -m | grep '^Mem' | awk '{print $3"MB"}') | |
||||
CPU: $(mpstat | awk '$12 ~ /[0-9.]+/ { print 100 - $12"%" }') | |
||||
$( date +"%F %R" ) |
||||
END |
||||
) |
||||
xsetroot -name "$XROOTNAME" |
||||
sleep 20s |
||||
done & |
||||
|
||||
# Set wallpaper |
||||
xsetroot -solid gray |
||||
feh --bg-scale ./.fehbg/wallpaper.png |
||||
|
||||
# Start window manager |
||||
exec dwm |
Loading…
Reference in new issue