fix: xss-lock blocking xset commands
This commit is contained in:
parent
a783a94b64
commit
40111ae592
@ -1 +1 @@
|
|||||||
Subproject commit 10fa01d553ce10646350461ac5ddc71f189e9d1a
|
Subproject commit 6fe69025b8825029ea9bf291ab3b1750f9bcb39e
|
@ -1 +1 @@
|
|||||||
Subproject commit a82501244a75b3d59cdc42496e5ad841f31e4d6d
|
Subproject commit ac4020c70722337c326bf65b645b162ee6e1796b
|
@ -1 +1 @@
|
|||||||
Subproject commit 4586808f86bf3bfdf97685380472b63597ce43c0
|
Subproject commit b4f9698733d7b29cc495e649e26fd6c3a5dcfcae
|
8
.xinitrc
8
.xinitrc
@ -5,11 +5,10 @@ numlockx &
|
|||||||
|
|
||||||
# display
|
# display
|
||||||
xrandr \
|
xrandr \
|
||||||
--output eDP-1 --auto --primary &
|
--output eDP --auto --primary &
|
||||||
feh --bg-fill "$XDG_CONFIG_HOME/wallpapers/monerochan.png" --no-fehbg &
|
feh --bg-fill "$XDG_CONFIG_HOME/wallpapers/monerochan.png" --no-fehbg &
|
||||||
|
xss-lock -n "feh --fullscreen $XDG_CONFIG_HOME/wallpapers/lock.png" -- lock &
|
||||||
(
|
(
|
||||||
lockimg="$XDG_CONFIG_HOME/wallpapers/lock.png"
|
|
||||||
|
|
||||||
# desktop
|
# desktop
|
||||||
stimeout=1800
|
stimeout=1800
|
||||||
# laptop
|
# laptop
|
||||||
@ -18,7 +17,6 @@ feh --bg-fill "$XDG_CONFIG_HOME/wallpapers/monerochan.png" --no-fehbg &
|
|||||||
cycle=15 # lock 15 sec after stimeout
|
cycle=15 # lock 15 sec after stimeout
|
||||||
dpms="$((stimeout + cycle + 1))" # turn off screen 1 sec after lock
|
dpms="$((stimeout + cycle + 1))" # turn off screen 1 sec after lock
|
||||||
|
|
||||||
xss-lock -n "feh --fullscreen $lockimg" -- lock
|
|
||||||
xset s "$stimeout" "$cycle"
|
xset s "$stimeout" "$cycle"
|
||||||
xset dpms "$dpms" "$dpms" "$dpms"
|
xset dpms "$dpms" "$dpms" "$dpms"
|
||||||
) &
|
) &
|
||||||
@ -28,7 +26,7 @@ feh --bg-fill "$XDG_CONFIG_HOME/wallpapers/monerochan.png" --no-fehbg &
|
|||||||
#/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 & # debian
|
#/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 & # debian
|
||||||
#/usr/libexec/polkit-gnome-authentication-agent-1 & # fedora
|
#/usr/libexec/polkit-gnome-authentication-agent-1 & # fedora
|
||||||
picom &
|
picom &
|
||||||
gammastep &
|
gammastep 2> /dev/null &
|
||||||
dunst &
|
dunst &
|
||||||
sbar &
|
sbar &
|
||||||
|
|
||||||
|
BIN
bin/crypto
BIN
bin/crypto
Binary file not shown.
1
bin/sbar
1
bin/sbar
@ -48,7 +48,6 @@ update_wlp() {
|
|||||||
|
|
||||||
[ -z "$ssid" ] && wlp='⚠' && return
|
[ -z "$ssid" ] && wlp='⚠' && return
|
||||||
|
|
||||||
echo "$sig"
|
|
||||||
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/libnmc-base/nm-client-utils.c#L628
|
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/libnmc-base/nm-client-utils.c#L628
|
||||||
{ [ "$sig" -gt 5600 ] && wlp="▂▄▆█ $ssid"; } ||
|
{ [ "$sig" -gt 5600 ] && wlp="▂▄▆█ $ssid"; } ||
|
||||||
{ [ "$sig" -gt 3850 ] && wlp="▂▄▆_ $ssid"; } ||
|
{ [ "$sig" -gt 3850 ] && wlp="▂▄▆_ $ssid"; } ||
|
||||||
|
Loading…
Reference in New Issue
Block a user