2018-03-10 04:04:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
query_color() {
|
|
|
|
xrdb -query | grep -m 1 "color.$1" | sed -E 's/^.+:\s*#?//g'
|
|
|
|
}
|
|
|
|
|
|
|
|
query_prop() {
|
|
|
|
xrdb -query | grep -m 1 "lock.$1" | sed -E 's/^.+:\s*//g'
|
|
|
|
}
|
|
|
|
|
|
|
|
# flush gpg-agent cache
|
|
|
|
echo RELOADAGENT | gpg-connect-agent
|
|
|
|
|
|
|
|
exec i3lock --image="$HOME/Pictures/wallpaper" --indicator --force-clock \
|
2018-04-12 02:50:08 +00:00
|
|
|
--veriftext="" --wrongtext="" --noinputtext="" --layoutcolor="00000000" --insidevercolor="00000000" --insidewrongcolor="00000000" --insidecolor="00000000" \
|
2018-03-10 04:04:29 +00:00
|
|
|
--ringvercolor="$(query_color primary)FF" --ringwrongcolor="$(query_color error)FF" --ringcolor="$(query_color fg-enabled)FF" \
|
|
|
|
--keyhlcolor="$(query_color primary)FF" --bshlcolor="$(query_color secondary)FF" \
|
2018-04-12 02:50:08 +00:00
|
|
|
--modifpos="w:h" \
|
2018-03-10 04:04:29 +00:00
|
|
|
--separatorcolor="00000000" --line-uses-inside \
|
|
|
|
--radius=50 --indpos="x+100:h-150" \
|
2018-04-12 02:50:08 +00:00
|
|
|
--timecolor="00000000" --time-font="$(query_prop font)" --timecolor="$(query_color fg-enabled)FF" --timesize=72 \
|
|
|
|
--time-align=1 --timepos="ix+r+20:iy+50" --timestr="%H:%M" \
|
|
|
|
--date-font="$(query_prop font)" --datecolor="$(query_color fg-enabled)FF" --datesize=48 \
|
2018-03-10 04:04:29 +00:00
|
|
|
--date-align=1 --datepos="tx:ty-70" --datestr="%A, %b %e"
|
|
|
|
|