i3lock-custom 1.62 KB
Newer Older
1 2
#!/bin/sh

Franciszek Madej's avatar
Franciszek Madej committed
3 4
TRANSPARENT="DDDDDD00"
WHITE="DDDDDDFF"
Franciszek Madej's avatar
Franciszek Madej committed
5
BLACK="373B41FF"
Franciszek Madej's avatar
Franciszek Madej committed
6 7 8 9 10 11 12 13

YELLOW="F0C674FF"
GREEN="B5BD68FF"
RED="CC6666FF"
BLUE="81A2BEFF"
PURPLE="B294BBFF"
SEABLUE="8ABEB7FF"

Franciszek Madej's avatar
Franciszek Madej committed
14
LOCKPAPER="$HOME/.config/misc/wallpapers/wavy-dots.png"
15

Franciszek Madej's avatar
Franciszek Madej committed
16 17
# Enable compton's fade-in effect so that the lockscreen gets a nice fade-in
# effect.
Franciszek Madej's avatar
Franciszek Madej committed
18
dbus-send --print-reply --dest=com.github.chjj.compton.${DISPLAY/:/_} / com.github.chjj.compton.opts_set string:no_fading_openclose boolean:false;
Franciszek Madej's avatar
Franciszek Madej committed
19

Franciszek Madej's avatar
Franciszek Madej committed
20
# Don't show notifications on lock screen
Franciszek Madej's avatar
Franciszek Madej committed
21 22 23
pkill -u $USER -USR1 dunst

i3lock \
Franciszek Madej's avatar
Franciszek Madej committed
24 25 26 27
    -i $LOCKPAPER  -t \
    -S=0 --force-clock --redraw-thread \
    --time-font="Fira Sans Heavy" \
    --verif-font="Fira Sans Heavy" \
Franciszek Madej's avatar
Franciszek Madej committed
28
    --datestr="" \
Franciszek Madej's avatar
Franciszek Madej committed
29 30 31 32 33 34 35 36 37 38 39 40
    --veriftext="..." \
    --wrongtext="" \
    --timestr="%H:%M" \
    --timesize=36 \
    --time-align=1 \
    --timepos="20:h-20" \
    --indpos="w-40:h-40" \
    --statuspos="w/2:h/2" \
    --verifpos="w/2:h/2" \
    --wrongpos="w/2:h/2" \
    --radius=20 \
    --ring-width=3 \
Franciszek Madej's avatar
Franciszek Madej committed
41
    --verif-align=1 \
Franciszek Madej's avatar
Franciszek Madej committed
42
    --insidevercolor="$YELLOW" \
Franciszek Madej's avatar
Franciszek Madej committed
43
    --ringvercolor="$YELLOW" \
Franciszek Madej's avatar
Franciszek Madej committed
44
    --insidewrongcolor="$RED" \
Franciszek Madej's avatar
Franciszek Madej committed
45
    --ringwrongcolor="$RED" \
Franciszek Madej's avatar
Franciszek Madej committed
46
    --insidecolor="$BLUE" \
Franciszek Madej's avatar
Franciszek Madej committed
47
    --ringcolor="$BLUE" \
Franciszek Madej's avatar
Franciszek Madej committed
48
    --keyhlcolor="$SEABLUE" \
Franciszek Madej's avatar
Franciszek Madej committed
49
    --bshlcolor="$SEABLUE" \
Franciszek Madej's avatar
Franciszek Madej committed
50
    --line-uses-inside
Franciszek Madej's avatar
Franciszek Madej committed
51

Franciszek Madej's avatar
Franciszek Madej committed
52
# Restore notifications
Franciszek Madej's avatar
Franciszek Madej committed
53 54 55 56 57
pkill -u $USER -USR2 dunst


# Revert compton's config changes.
sleep 0.2
Franciszek Madej's avatar
Franciszek Madej committed
58 59
dbus-send --print-reply --dest=com.github.chjj.compton.${DISPLAY/:/_} / com.github.chjj.compton.opts_set string:no_fading_openclose boolean:true;
# dbus-send --print-reply --dest=com.github.chjj.compton.${DISPLAY/:/_} / com.github.chjj.compton.opts_set string:unredir_if_possible boolean:true