Compare commits
No commits in common. "031da040800d5763897136c74e676ebd80eb7bfa" and "14a74a18d2580d52d2f0fde092a6d0fa59c4b959" have entirely different histories.
031da04080
...
14a74a18d2
@ -79,10 +79,9 @@ output "Acer Technologies XV272U V R307036FE4208" adaptive_sync on
|
|||||||
# -c 000000 sets the color in RGB (no alpha supported)
|
# -c 000000 sets the color in RGB (no alpha supported)
|
||||||
# use -i to set an image
|
# use -i to set an image
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 300 'swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"' \ # lock screen after 5 min
|
timeout 300 'swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"' \
|
||||||
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ # poweroff display after 10 min
|
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||||
before-sleep 'swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"' \ # lock screen before going to sleep
|
before-sleep 'swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"'
|
||||||
before-sleep 'playerctl pause' # pause media before sleeping
|
|
||||||
|
|
||||||
### Key bindings
|
### Key bindings
|
||||||
#
|
#
|
||||||
@ -239,11 +238,11 @@ bindsym $mod+x mode "$mode_system"
|
|||||||
|
|
||||||
set $mode_system System (l) lock, (e) logout, (r) reboot, (s) shutdown, (u) suspend
|
set $mode_system System (l) lock, (e) logout, (r) reboot, (s) shutdown, (u) suspend
|
||||||
mode "$mode_system" {
|
mode "$mode_system" {
|
||||||
bindsym l exec --no-startup-id ~/.config/sway/sway-scripts/exit.sh lock, mode "default"
|
bindsym l exec PLACEHOLDER, mode "default"
|
||||||
bindsym e exec --no-startup-id ~/.config/sway/sway-scripts/exit.sh logout, mode "default"
|
bindsym e exec PLACEHOLDER, mode "default"
|
||||||
bindsym r exec --no-startup-id ~/.config/sway/sway-scripts/exit.sh reboot, mode "default"
|
bindsym r exec PLACEHOLDER, mode "default"
|
||||||
bindsym s exec --no-startup-id ~/.config/sway/sway-scripts/exit.sh shutdown, mode "default"
|
bindsym s exec PLACEHOLDER, mode "default"
|
||||||
bindsym u exec --no-startup-id ~/.config/sway/sway-scripts/exit.sh suspend, mode "default"
|
bindsym u exec PLACEHOLDER, mode "default"
|
||||||
|
|
||||||
# back to normal: Enter or Escape
|
# back to normal: Enter or Escape
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
|
@ -1,17 +1,20 @@
|
|||||||
#!/usr/bin/env sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
lock)
|
lock)
|
||||||
swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"
|
#betterlockscreen -l; dunstctl set-paused true
|
||||||
|
betterlockscreen -l
|
||||||
;;
|
;;
|
||||||
logout)
|
logout)
|
||||||
swaymsg exit
|
i3-msg exit
|
||||||
;;
|
;;
|
||||||
suspend)
|
suspend)
|
||||||
|
#betterlockscreen -s
|
||||||
systemctl suspend
|
systemctl suspend
|
||||||
;;
|
;;
|
||||||
hibernate)
|
hibernate)
|
||||||
exit 1
|
systemctl hibernate
|
||||||
;;
|
;;
|
||||||
reboot)
|
reboot)
|
||||||
systemctl reboot
|
systemctl reboot
|
Loading…
Reference in New Issue
Block a user