feat: autorandr, wallpaper and screensaver
This commit is contained in:
parent
f8b873255e
commit
5e3b4b3637
9 changed files with 45 additions and 20 deletions
26
.xinitrc
26
.xinitrc
|
@ -1,30 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
# display
|
||||
## laptop
|
||||
if ls -d /sys/class/power_supply/BAT*/ > /dev/null 2>&1; then
|
||||
stimeout=300
|
||||
else # desktop
|
||||
stimeout=1800
|
||||
fi
|
||||
|
||||
cycle=15 # lock 15 sec after stimeout
|
||||
dpms="$((stimeout + cycle + 1))" # turn off screen 1 sec after lock
|
||||
|
||||
xset s "$stimeout" "$cycle" &
|
||||
xset dpms "$dpms" "$dpms" "$dpms" &
|
||||
feh --bg-fill "$XDG_CONFIG_HOME/wallpapers/mount_cook.jpg" --no-fehbg &
|
||||
xss-lock -n "feh --fullscreen $XDG_CONFIG_HOME/wallpapers/lock.png" -- lock &
|
||||
|
||||
# bar
|
||||
#(i3status | while read line; do xsetroot -name "$line"; done) &
|
||||
|
||||
# startup
|
||||
set-display &
|
||||
xss-lock -n screensaver -- lock &
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 || # arch
|
||||
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 || # debian
|
||||
/usr/libexec/polkit-gnome-authentication-agent-1 & # fedora
|
||||
picom &
|
||||
gammastep 2> /dev/null &
|
||||
sbar &
|
||||
/usr/libexec/polkit-gnome-authentication-agent-1 & # fedora
|
||||
picom &
|
||||
gammastep 2> /dev/null &
|
||||
sbar &
|
||||
|
||||
exec dbus-launch dwm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue