dots/.xinitrc
2021-04-09 11:12:55 -04:00

20 lines
679 B
Bash
Executable File

#!/bin/sh
setxkbmap -layout us,ca -variant multi -option 'grp:win_space_toggle, caps:swapescape'
xset r rate 300 50
mon-on
picom --experimental-backends --backend glx --vsync &
xwallpaper --center .config/wall.png
wal --theme sexy-phrak1 -b 080808
xautolock -time 12 -locker "systemctl suspend" -detectsleep -notify 5 -notifier "notify-send Locking" &
xss-lock -- slock &
#dunst crashes X for some reason on my device so I put it in screen to prevent that
screen -dm dunst notifs
while true; do
xsetroot -name "$(mpc -f %title% | head -n 1) $(mpc status | awk '/^\[playing\]/ { sub(/\/.+/,"",$4); print $3 }') | $(date) | $(acpi | cut -d',' -f2)"
sleep 2
done &
startdwm