summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-02-22 18:30:20 +0100
committerAdam Stück <adam@adast.xyz>2023-02-22 18:30:20 +0100
commit7464e8fc26a762b213348ad1b050e21fa2be64ce (patch)
treef0ffb7c8d1b3f2579502491c457ea81a37ebc24f
parentf5a8605de8b202ad656caee6ba072a98b5c53953 (diff)
replace betterlockscreen -> slock
-rwxr-xr-x.config/X11/xinitrc4
-rw-r--r--.config/betterlockscreenrc37
-rwxr-xr-x.local/bin/dock2
-rwxr-xr-x.local/bin/lock (renamed from .local/bin/idle)5
4 files changed, 6 insertions, 42 deletions
diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc
index a840c00..2434e05 100755
--- a/.config/X11/xinitrc
+++ b/.config/X11/xinitrc
@@ -38,8 +38,8 @@ playerctld daemon &
redshift -l 55.7:12.6 -t 5700:4000 -g 0.9 -m randr -v &
unclutter -b &
xwallpaper --center ~/.local/share/bg &
-betterlockscreen -u ~/.local/share/lock &
-~/.local/bin/idle &
+xidlehook --detect-sleep --not-when-audio --not-when-fullscreen \
+ --timer 300 '~/.local/bin/lock' '' &
~/.local/bin/comptoggle &
~/.local/bin/rate &
exec i3
diff --git a/.config/betterlockscreenrc b/.config/betterlockscreenrc
deleted file mode 100644
index 9ec0fb9..0000000
--- a/.config/betterlockscreenrc
+++ /dev/null
@@ -1,37 +0,0 @@
-# ~/.config/betterlockscreenrc
-
-# default options
-display_on=0
-span_image=false
-lock_timeout=10
-fx_list=(dim blur dimblur pixel dimpixel color)
-dim_level=40
-blur_level=1
-pixel_scale=10,1000
-solid_color=333333
-wallpaper_cmd="feh --bg-fill"
-# i3lockcolor_bin="i3lock-color" # Manually set command for i3lock-color
-
-# default theme
-loginbox=09080966
-loginshadow=00000000
-locktext="Type password to unlock..."
-font="sans-serif"
-ringcolor=ffffffff
-insidecolor=00000000
-separatorcolor=00000000
-ringvercolor=ffffffff
-insidevercolor=00000000
-ringwrongcolor=ffffffff
-insidewrongcolor=d23c3dff
-timecolor=ffffffff
-time_format="%H:%M"
-greetercolor=ffffffff
-layoutcolor=ffffffff
-keyhlcolor=d23c3dff
-bshlcolor=d23c3dff
-verifcolor=ffffffff
-wrongcolor=d23c3dff
-modifcolor=d23c3dff
-bgcolor=000000ff
-
diff --git a/.local/bin/dock b/.local/bin/dock
index 2f9ec22..5f8ec04 100755
--- a/.local/bin/dock
+++ b/.local/bin/dock
@@ -21,7 +21,6 @@ dock () {
xrandr --output HDMI-1 --mode 2560x1440 --rate 70 --primary
xrandr --output eDP-1 --off
xwallpaper --center ~/.local/share/bg
- betterlockscreen -u ~/.local/share/lock >/dev/null 2>&1 &
}
undock () {
@@ -30,7 +29,6 @@ undock () {
xrandr --output eDP-1 --mode 1920x1080 --primary
xrandr --output HDMI-1 --off
xwallpaper --center ~/.local/share/bg
- betterlockscreen -u ~/.local/share/lock >/dev/null 2>&1 &
}
main "$@"
diff --git a/.local/bin/idle b/.local/bin/lock
index ae40ff3..191c876 100755
--- a/.local/bin/idle
+++ b/.local/bin/lock
@@ -1,6 +1,9 @@
#!/bin/sh
+xset dpms 5
xidlehook \
--detect-sleep --not-when-audio --not-when-fullscreen \
- --timer 300 'betterlockscreen -l' '' \
--timer 60 'systemctl suspend' '' &
+slock
+kill $!
+xset dpms 300