Skip to content

Commit

Permalink
[i3] Add custom lock-screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Cribac committed Dec 21, 2022
1 parent c05d4b7 commit 8199686
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@ bindsym $mod+Shift+e exec ~/.config/i3/scripts/cribac-nordic/powermenu

# Lock the system
# lock with a picture:
#bindsym $mod+l exec i3lock -i ~/.config/i3/i3-lock-screen.png -p default|win -t
bindsym $mod+l exec ~/.config/i3/scripts/cribac-nordic/lock-screen
# bindsym $mod+l exec i3lock -i ~/.config/i3/i3-lock-screen.png -p default|win -t
# lock by blurring the screen:
bindsym $mod+l exec ~/.config/i3/scripts/blur-lock
# bindsym $mod+l exec ~/.config/i3/scripts/blur-lock

# reload the configuration file
bindsym $mod+Shift+c reload
Expand Down
38 changes: 38 additions & 0 deletions .config/i3/scripts/cribac-nordic/lock-screen
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash

# i3lock-color lock-screen script for cribac-nordic theme
BLANK='#00000000'
CLEAR='#ffffff22'
DEFAULT='#81A1C1'
TEXT='#ECEff4'
WRONG='#BF616A'
VERIFYING='#B48EAD'

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 \
--image="${HOME}/.config/i3/scripts/cribac-nordic/lock-screen.png" \
--clock \
--indicator \
--time-str="%H:%M:%S" \
--date-str="%A, %Y-%m-%d" \
--keylayout 1 \

Binary file added .config/i3/scripts/cribac-nordic/lock-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8199686

Please sign in to comment.