merge: desktop
This commit is contained in:
commit
8338405aa9
32
.xinitrc
32
.xinitrc
@ -1,14 +1,27 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# keyboard
|
# keyboard
|
||||||
numlockx
|
numlockx &
|
||||||
|
|
||||||
# display
|
# display
|
||||||
xrandr \
|
xrandr \
|
||||||
--output eDP-1 --auto --primary \
|
--output eDP-1 --auto --primary &
|
||||||
--output DisplayPort-1-1 --auto --pos 1920x0 \
|
feh --bg-fill "$XDG_CONFIG_HOME/wallpapers/monerochan.png" --no-fehbg &
|
||||||
--output DisplayPort-1-2 --auto --pos 3840x0
|
(
|
||||||
feh --bg-fill "$XDG_CONFIG_HOME/wallpapers/monerochan.png" --no-fehbg
|
lockimg="$XDG_CONFIG_HOME/wallpapers/lock.png"
|
||||||
|
|
||||||
|
# desktop
|
||||||
|
stimeout=1800
|
||||||
|
# laptop
|
||||||
|
ls -d /sys/class/power_supply/BAT*/ > /dev/null 2>&1 && stimeout=300
|
||||||
|
|
||||||
|
cycle=15 # lock 15 sec after stimeout
|
||||||
|
dpms="$((stimeout + cycle + 1))" # turn off screen 1 sec after lock
|
||||||
|
|
||||||
|
xss-lock -n "feh --fullscreen $lockimg" -- "i3lock -ftni $lockimg"
|
||||||
|
xset s "$stimeout" "$cycle"
|
||||||
|
xset dpms "$dpms" "$dpms" "$dpms"
|
||||||
|
) &
|
||||||
|
|
||||||
# startup
|
# startup
|
||||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & # arch
|
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & # arch
|
||||||
@ -19,13 +32,4 @@ redshift &
|
|||||||
dunst &
|
dunst &
|
||||||
sbar &
|
sbar &
|
||||||
|
|
||||||
xss-lock -- lock &
|
|
||||||
if ls -d /sys/class/power_supply/BAT*/ > /dev/null 2>&1; then
|
|
||||||
xset dpms 300 300 300 # Turn of the screen after 5 min
|
|
||||||
xset s 315 # Lock Screen after 15 secs later
|
|
||||||
else
|
|
||||||
xset dpms 1800 1800 1800 # Turn of the screen after 30 min
|
|
||||||
xset s 1815 # Lock Screen 15 sec later
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec dbus-launch dwm
|
exec dbus-launch dwm
|
||||||
|
BIN
bin/crypto
BIN
bin/crypto
Binary file not shown.
Loading…
Reference in New Issue
Block a user