Browse Source

xinitrc

master
Ivan Polyakov 3 years ago
parent
commit
4620528e2f
  1. 20
      .xinitrc

20
.xinitrc

@ -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…
Cancel
Save