first i3lock pywal colors
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source "$HOME/.cache/wal/colors.sh"
|
||||
|
||||
PICTURE=/tmp/i3lock.png
|
||||
SCREENSHOT="scrot -z $PICTURE"
|
||||
|
||||
@@ -7,5 +9,34 @@ BLUR="5x4"
|
||||
|
||||
$SCREENSHOT
|
||||
convert $PICTURE -blur $BLUR $PICTURE
|
||||
i3lock -i $PICTURE
|
||||
|
||||
ring_color_wrong="$color4"
|
||||
ring_color="$color2"
|
||||
color_transparent="$color1"
|
||||
ring_color_highlight="$color5"
|
||||
ring_color_remove="$color6"
|
||||
|
||||
ring_color="$ring_color"
|
||||
inside_color="$color_transparent"
|
||||
line_color="$color_transparent"
|
||||
keyhl_color_color="$ring_color_highlight"
|
||||
bshl_color_color="$ring_color_remove"
|
||||
|
||||
ringver_color="$ring_color_highlight"
|
||||
insidever_color="$ring_color_highlight"
|
||||
|
||||
wrong_color="$ring_color_wrong"
|
||||
ringwrong_color="$ring_color_wrong"
|
||||
insidewrong_color="$ring_color_wrong"
|
||||
|
||||
i3lock -i $PICTURE -f \
|
||||
--ring-color="$ring_color" \
|
||||
--inside-color="$inside_color" \
|
||||
--wrong-color="$wrong_color" \
|
||||
--insidewrong-color="$wrong_color" \
|
||||
--ringwrong-color="$ringwrong_color" \
|
||||
--line-color="$line_color" \
|
||||
--keyhl-color="$keyhl_color_color" \
|
||||
--bshl-color="$bshl_color_color" \
|
||||
--ring-width="12"
|
||||
rm $PICTURE
|
||||
|
||||
20
config/wal/templates/colors.i3lock
Normal file
20
config/wal/templates/colors.i3lock
Normal file
@@ -0,0 +1,20 @@
|
||||
[colors]
|
||||
foreground = {foreground.strip}
|
||||
background = {background.strip}
|
||||
cursor = {cursor.strip}
|
||||
color0 = {color0.strip}
|
||||
color1 = {color1.strip}
|
||||
color2 = {color2.strip}
|
||||
color3 = {color3.strip}
|
||||
color4 = {color4.strip}
|
||||
color5 = {color5.strip}
|
||||
color6 = {color6.strip}
|
||||
color7 = {color7.strip}
|
||||
color8 = {color8.strip}
|
||||
color9 = {color9.strip}
|
||||
color10 = {color10.strip}
|
||||
color11 = {color11.strip}
|
||||
color12 = {color12.strip}
|
||||
color13 = {color13.strip}
|
||||
color14 = {color14.strip}
|
||||
color15 = {color15.strip}
|
||||
Reference in New Issue
Block a user