From c3f73a7863226f966b3b07b52bfcf37e31dade22 Mon Sep 17 00:00:00 2001 From: simonkellet Date: Tue, 26 Jul 2022 13:33:57 +0100 Subject: [PATCH] added i3lock-color --- i3/config | 5 +++-- i3lock/lock.sh | 35 +++++++++++++++++++++++++++++++++++ i3lock/lock_bar.sh | 31 +++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100755 i3lock/lock.sh create mode 100755 i3lock/lock_bar.sh diff --git a/i3/config b/i3/config index 4ec23c6..dadf1e9 100644 --- a/i3/config +++ b/i3/config @@ -204,7 +204,7 @@ bindsym $mod+shift+BackSpace gaps inner all set 0; gaps outer all set 0 bindsym $mod+Return exec kitty bindsym $mod+Shift+Return exec alacritty -e ~/.scripts/web bindsym $mod+Ctrl+Return exec alacritty - +bindsym $mod+x exec xinput-gui bindsym $mod+c exec gnome-calendar bindsym $mod+Shift+b exec blueman-manager bindsym $mod+p exec bwmenu @@ -332,7 +332,8 @@ mode "resize" { #bindsym $mod+r mode "resize" #not used! -set $Locker i3lock --color=000000 && sleep 1 +#set $Locker i3lock --color=000000 && sleep 1 +set $Locker sh ~/.config/i3lock/lock.sh set $mode_system (l)lock (e)logout (s)suspend (h)hibernate (r)reboot (Shift+s)shutdown mode "$mode_system" { diff --git a/i3lock/lock.sh b/i3lock/lock.sh new file mode 100755 index 0000000..7f19cca --- /dev/null +++ b/i3lock/lock.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +BLANK='#282a36' +CLEAR='#282a36' +DEFAULT='#bd93f9' +TEXT='#bd93f9' +WRONG='#ff5555' +VERIFYING='#50fa7b' + +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 5 \ +--clock \ +--indicator \ +--time-str="%H:%M:%S" \ +--date-str="%A %d/%m/%Y" \ diff --git a/i3lock/lock_bar.sh b/i3lock/lock_bar.sh new file mode 100755 index 0000000..f80a5eb --- /dev/null +++ b/i3lock/lock_bar.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +i3lock \ +--blur 5 \ +--bar-indicator \ +--bar-pos y+h \ +--bar-direction 1 \ +--bar-max-height 50 \ +--bar-base-width 50 \ +--bar-color 000000cc \ +--keyhl-color 880088cc \ +--bar-periodic-step 50 \ +--bar-step 50 \ +--redraw-thread \ +\ +--clock \ +--force-clock \ +--time-pos x+5:y+h-80 \ +--time-color 880088ff \ +--date-pos tx:ty+15 \ +--date-color 990099ff \ +--date-align 1 \ +--time-align 1 \ +--ringver-color 8800ff88 \ +--ringwrong-color ff008888 \ +--status-pos x+5:y+h-16 \ +--verif-align 1 \ +--wrong-align 1 \ +--verif-color ffffffff \ +--wrong-color ffffffff \ +--modif-pos -50:-50