From 0e74f8056d518f9d37a50dd9b5303b37a89cdf91 Mon Sep 17 00:00:00 2001 From: ION606 Date: Sat, 13 Dec 2025 11:39:55 -0500 Subject: [PATCH] updated timeout and lock screen --- i3/config | 6 +++++ i3/lock.sh | 66 +++++++++++++++++++++++++++++------------------------- 2 files changed, 41 insertions(+), 31 deletions(-) diff --git a/i3/config b/i3/config index e72218a..f43a37b 100644 --- a/i3/config +++ b/i3/config @@ -37,6 +37,12 @@ exec_always --no-startup-id bash /home/ion606/setupScreens.sh exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork exec_always --no-startup-id dunst +# no timeout after 600 seconds ffs +exec_always --no-startup-id xset s off +exec_always --no-startup-id xset s noblank +exec_always --no-startup-id xset -dpms + + # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet diff --git a/i3/lock.sh b/i3/lock.sh index 79c3482..e4f6ff6 100755 --- a/i3/lock.sh +++ b/i3/lock.sh @@ -1,8 +1,13 @@ #!/bin/bash +img="$(find /home/ion606/Pictures/astolfo/ -type f | shuf -n 1)"; +tmp="/tmp/i3lock-bg.png"; + +magick "$img" -strip "$tmp"; + if [[ "$1" == "--single" ]]; then - i3lock -i Pictures/ohnocringe.jpg -F - exit 0 + i3lock -i "$tmp" -F + exit 0 fi BLANK='#00000000' @@ -13,33 +18,32 @@ WRONG='#880000bb' VERIFYING='#00564dE6' i3lock \ ---insidever-color=$CLEAR \ ---ringver-color=$VERIFYING \ -\ ---insidewrong-color=$CLEAR \ ---ringwrong-color=$WRONG \ -\ ---inside-color=$BLANK \ ---ring-color=$DEFAULT \ ---line-color=$BLANK \ ---separator-color=$DEFAULT \ -\ ---verif-color=$TEXT \ ---wrong-color=$TEXT \ ---time-color=$TEXT \ ---date-color=$TEXT \ ---layout-color=$TEXT \ ---keyhl-color=$WRONG \ ---bshl-color=$WRONG \ -\ ---screen 1 \ ---blur 9 \ ---clock \ ---indicator \ ---time-str="%H:%M:%S" \ ---date-str="%A, %Y-%m-%d" \ ---keylayout 1 - + --insidever-color=$CLEAR \ + --ringver-color=$VERIFYING \ + \ + --insidewrong-color=$CLEAR \ + --ringwrong-color=$WRONG \ + \ + --inside-color=$BLANK \ + --ring-color=$DEFAULT \ + --line-color=$BLANK \ + --separator-color=$DEFAULT \ + \ + --verif-color=$TEXT \ + --wrong-color=$TEXT \ + --time-color=$TEXT \ + --date-color=$TEXT \ + --layout-color=$TEXT \ + --keyhl-color=$WRONG \ + --bshl-color=$WRONG \ + \ + --screen 1 \ + --blur 9 \ + --clock \ + --indicator \ + --time-str="%H:%M:%S" \ + --date-str="%A, %Y-%m-%d" \ + --keylayout 1 # # paths for temporary images # tmpbg='/tmp/lockscreen.png' @@ -72,11 +76,11 @@ i3lock \ # # while kill -0 "$lock_pid" 2>/dev/null; do # # # reset tmpbg to the original blurred image # # cp "$original_bg" "$tmpbg" - + # # # overlay the clock text on the reset image # # magick "$tmpbg" -gravity center -font Ubuntu-Bold -pointsize 50 -fill white \ # # -annotate +0+200 "$(date '+%I:%M %p')" "$tmpbg" - + # # # reload i3lock with the updated image # # i3lock -i "$tmpbg" --nofork & # # sleep 1