From 7464e8fc26a762b213348ad1b050e21fa2be64ce Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Wed, 22 Feb 2023 18:30:20 +0100 Subject: replace betterlockscreen -> slock --- .config/X11/xinitrc | 4 ++-- .config/betterlockscreenrc | 37 ------------------------------------- .local/bin/dock | 2 -- .local/bin/idle | 6 ------ .local/bin/lock | 9 +++++++++ 5 files changed, 11 insertions(+), 47 deletions(-) delete mode 100644 .config/betterlockscreenrc delete mode 100755 .local/bin/idle create mode 100755 .local/bin/lock 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/idle deleted file mode 100755 index ae40ff3..0000000 --- a/.local/bin/idle +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -xidlehook \ - --detect-sleep --not-when-audio --not-when-fullscreen \ - --timer 300 'betterlockscreen -l' '' \ - --timer 60 'systemctl suspend' '' & diff --git a/.local/bin/lock b/.local/bin/lock new file mode 100755 index 0000000..191c876 --- /dev/null +++ b/.local/bin/lock @@ -0,0 +1,9 @@ +#!/bin/sh + +xset dpms 5 +xidlehook \ + --detect-sleep --not-when-audio --not-when-fullscreen \ + --timer 60 'systemctl suspend' '' & +slock +kill $! +xset dpms 300 -- cgit v1.2.3-70-g09d2