mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-09 14:00:47 -05:00
Added launcher for waylock
This commit is contained in:
parent
5556b760e9
commit
b3da97bc30
3 changed files with 20 additions and 4 deletions
|
@ -172,7 +172,7 @@ riverctl input pointer-2-7-SynPS/2_Synaptics_TouchPad tap-button-map left-right-
|
||||||
riverctl input pointer-2-7-SynPS/2_Synaptics_TouchPad scroll-method two-finger
|
riverctl input pointer-2-7-SynPS/2_Synaptics_TouchPad scroll-method two-finger
|
||||||
|
|
||||||
# Lid switch
|
# Lid switch
|
||||||
riverctl map-switch normal lid close "waylock -fork-on-lock -init-color 0x000000"
|
riverctl map-switch normal lid close 'waylock-launcher'
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
### "rule-add" not implemented yet???
|
### "rule-add" not implemented yet???
|
||||||
|
@ -204,12 +204,12 @@ kanshi &
|
||||||
dunst &
|
dunst &
|
||||||
{{- if eq .chezmoi.hostname "hydrus" }}
|
{{- if eq .chezmoi.hostname "hydrus" }}
|
||||||
swaybg -m fill -i $HOME/Pictures/Wallpapers/dark-forest-path.jpg &
|
swaybg -m fill -i $HOME/Pictures/Wallpapers/dark-forest-path.jpg &
|
||||||
swayidle -w timeout 600 "waylock -fork-on-lock -init-color 0x000000" &
|
swayidle -w timeout 300 'waylock-launcher' &
|
||||||
{{- else if eq .chezmoi.hostname "helix" }}
|
{{- else if eq .chezmoi.hostname "helix" }}
|
||||||
swaybg -m center -i "$HOME/Pictures/Wallpapers/Mountain Retreat.jpg" &
|
swaybg -m center -i "$HOME/Pictures/Wallpapers/Mountain Retreat.jpg" &
|
||||||
swayidle-laptop &
|
swayidle-laptop &
|
||||||
{{- else }}
|
{{- else }}
|
||||||
swayidle -w timeout 600 "waylock -fork-on-lock -init-color 0x000000" &
|
swayidle -w timeout 300 'waylock-launcher' &
|
||||||
{{- end }}
|
{{- end }}
|
||||||
gammastep -r &
|
gammastep -r &
|
||||||
waybar-launcher &
|
waybar-launcher &
|
||||||
|
|
|
@ -23,7 +23,7 @@ swayidle -w \
|
||||||
resume 'light -I' \
|
resume 'light -I' \
|
||||||
timeout 900 'light -I && wlr-randr --output eDP-1 --off' \
|
timeout 900 'light -I && wlr-randr --output eDP-1 --off' \
|
||||||
resume 'wlr-randr --output eDP-1 --on && kanshictl reload' \
|
resume 'wlr-randr --output eDP-1 --on && kanshictl reload' \
|
||||||
timeout 3600 'loginctl suspend' \
|
timeout 3600 'loginctl suspend-then-hibernate' \
|
||||||
resume 'wlr-randr --output eDP-1 --on && kanshictl reload' \
|
resume 'wlr-randr --output eDP-1 --on && kanshictl reload' \
|
||||||
2>&1 | "$LOG_FILE_LOCK" & disown
|
2>&1 | "$LOG_FILE_LOCK" & disown
|
||||||
|
|
||||||
|
|
16
dot_local/bin/executable_waylock-launcher
Normal file
16
dot_local/bin/executable_waylock-launcher
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
START_TIME=`date +"%b %d, %Y %T"`
|
||||||
|
echo "--- ${START_TIME} ---" > "${XDG_STATE_HOME}"/waylock.log
|
||||||
|
|
||||||
|
if pgrep -u $UID -x waylock >/dev/null; then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
waylock \
|
||||||
|
-fork-on-lock \
|
||||||
|
-init-color 0x000000 \
|
||||||
|
-input-color 0x323d43 \
|
||||||
|
-fail-color 0xe26c6e \
|
||||||
|
2>&1 | tee -a "${XDG_STATE_HOME}"/waylock.log & disown
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue