]> Sergey Matveev's repositories - dotfiles.git/blob - x/.xinitrc
Show if FDM flag is present
[dotfiles.git] / x / .xinitrc
1 #!/bin/zsh
2
3 xsetroot -solid \#222222 &
4 xset b off
5 # xrdb ~/.Xresources
6 xmodmap ~/.Xmodmap
7 while :; do
8     life=$(apm -l)
9     [ -e /tmp/do-fdm ] && fdm_state="FM" || fdm_state=""
10     xsetroot -name "$fdm_state $life% $(date "+%Y-%m-%dT%H:%M:%S")"
11     sleep 20
12 done &
13 rm -f ~/.ssh/agent ; ssh-agent -a ~/.ssh/agent
14 ~/bin/cleanup.sh
15 exec $HOME/src/suckless/dwm/dwm