mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2025-02-05 08:50:01 +00:00
[update] rc, custom lockscreen text
This commit is contained in:
parent
08440bab90
commit
364848eec6
2 changed files with 5 additions and 5 deletions
|
@ -6,8 +6,6 @@
|
||||||
|
|
||||||
# find your resolution so images can be resized to match your screen resolution
|
# find your resolution so images can be resized to match your screen resolution
|
||||||
res=$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')
|
res=$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')
|
||||||
locktext='Type password to unlock...'
|
|
||||||
|
|
||||||
|
|
||||||
init_filenames() {
|
init_filenames() {
|
||||||
#$1 resolution
|
#$1 resolution
|
||||||
|
@ -32,6 +30,7 @@ init_filenames() {
|
||||||
datecolor=ffffffff
|
datecolor=ffffffff
|
||||||
loginbox=00000066
|
loginbox=00000066
|
||||||
font="sans-serif"
|
font="sans-serif"
|
||||||
|
locktext='Type password to unlock...'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create folder in ~/.cache/i3lock directory
|
# create folder in ~/.cache/i3lock directory
|
||||||
|
@ -141,7 +140,7 @@ lockselect() {
|
||||||
logical_px() {
|
logical_px() {
|
||||||
# get dpi value from xrdb
|
# get dpi value from xrdb
|
||||||
local DPI=$(xrdb -query | awk '/Xft.dpi/ {print $2}')
|
local DPI=$(xrdb -query | awk '/Xft.dpi/ {print $2}')
|
||||||
|
|
||||||
# return the default value if no DPI is set
|
# return the default value if no DPI is set
|
||||||
if [ -z "$DPI" ]; then
|
if [ -z "$DPI" ]; then
|
||||||
echo $1
|
echo $1
|
||||||
|
@ -158,7 +157,7 @@ logical_px() {
|
||||||
}
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
# use
|
# use
|
||||||
background="$1"
|
background="$1"
|
||||||
|
|
||||||
# default blur level; fallback to 1
|
# default blur level; fallback to 1
|
||||||
|
|
|
@ -13,4 +13,5 @@ verifcolor=ffffffff
|
||||||
timecolor=ffffffff
|
timecolor=ffffffff
|
||||||
datecolor=ffffffff
|
datecolor=ffffffff
|
||||||
loginbox=00000066
|
loginbox=00000066
|
||||||
font="sans-serif"
|
font="sans-serif"
|
||||||
|
locktext='Type password to unlock...'
|
||||||
|
|
Loading…
Reference in a new issue