config

My configuration files and custom scripts.
git clone https://git.tronto.net/config
Download | Log | Files | Refs

.xinitrc (745B)


      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 xkfix # From scripts
     22 brightnessctl set 30%
     23 xset s off -dpms
     24 xrdb -merge ~/.Xresources
     25 
     26 # Background and time
     27 sleep 0.05
     28 xwallpaper --zoom ~/box/pictures/wallpapers/marmolada.jpg
     29 sleep 0.01
     30 event list past | sed -E 's/....-..-.. .{1,2}:..[[:space:]]*//g' | \
     31 while read text; do
     32 	notify push "$text"
     33 done &
     34 
     35 xbanish &
     36 Telegram &
     37 #exec dwm
     38 exec dbus-launch --exit-with-session dwm