diff options
Diffstat (limited to '.xinitrc')
| -rw-r--r-- | .xinitrc | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..3be0323 --- /dev/null +++ b/.xinitrc | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | # Check every minute | ||
| 2 | while true; do | ||
| 3 | battery-checknow & | ||
| 4 | sleep 0.01 | ||
| 5 | event list now | sed -E 's/....-..-.. .{1,2}:..[[:space:]]*//g' | \ | ||
| 6 | while read text; do | ||
| 7 | notify push "$text" | ||
| 8 | done & | ||
| 9 | sleep 0.01 & | ||
| 10 | |||
| 11 | if [ "$(cat /sys/class/net/eth0/carrier)" = 1 ]; then | ||
| 12 | iwctl station wlan0 disconnect | ||
| 13 | fi | ||
| 14 | |||
| 15 | xroot-update | ||
| 16 | |||
| 17 | sleep $((60 - $(date +%-S))) | ||
| 18 | done & | ||
| 19 | |||
| 20 | # Extra settings | ||
| 21 | xsetroot -cursor_name left_ptr & | ||
| 22 | setxkbmap -option compose:ralt | ||
| 23 | setxkbmap -option caps:swapescape | ||
| 24 | xbacklight -set 30 | ||
| 25 | xset s off -dpms | ||
| 26 | xrdb -merge .Xresources | ||
| 27 | |||
| 28 | # Background and time | ||
| 29 | sleep 0.05 | ||
| 30 | xwallpaper --zoom ~/box/pictures/wallpapers/marmolada.jpg | ||
| 31 | sleep 0.01 | ||
| 32 | event list past | sed -E 's/....-..-.. .{1,2}:..[[:space:]]*//g' | \ | ||
| 33 | while read text; do | ||
| 34 | notify push "$text" | ||
| 35 | done & | ||
| 36 | |||
| 37 | xbanish & | ||
| 38 | telegram-desktop & | ||
| 39 | exec dwm | ||
