config

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

.xinitrc (935B)


      1 # Bring up ethernet and keep checking if available
      2 doas ip link set eth1 up
      3 while true; do
      4 	if [ "$(cat /sys/class/net/eth1/carrier)" = 1 ]; then
      5 		if ! doas ip -4 addr show eth1 | grep inet; then
      6 			doas udhcpc -i eth1 -n && iwctl station wlan0 disconnect
      7 		fi
      8 	fi
      9 	sleep 3
     10 done &
     11 
     12 # Check every minute
     13 while true; do
     14 	battery-checknow &
     15 	sleep 0.01
     16 	event list now | sed -E 's/....-..-.. .{1,2}:..[[:space:]]*//g' | \
     17 	while read text; do
     18 		notify push "$text"
     19 	done &
     20 	sleep 0.01 &
     21 
     22 	xroot-update
     23 
     24 	sleep $((60 - $(date +%-S)))
     25 done &
     26 
     27 # Extra settings
     28 xkfix # From scripts
     29 brightnessctl set 30%
     30 xset s off -dpms
     31 xrdb -merge ~/.Xresources
     32 
     33 # Background and time
     34 sleep 0.05
     35 xwallpaper --zoom ~/box/pictures/wallpapers/marmolada.jpg
     36 sleep 0.01
     37 event list past | sed -E 's/....-..-.. .{1,2}:..[[:space:]]*//g' | \
     38 while read text; do
     39 	notify push "$text"
     40 done &
     41 
     42 xbanish &
     43 Telegram &
     44 #exec dwm
     45 exec dbus-launch --exit-with-session dwm