Move swaynag to the bottom and adjust swaynag type for reboot and shut down.

This commit is contained in:
the_4n0nym0u53 2021-12-25 19:30:20 +01:00
parent a5873a8095
commit 69ba9fb8cb
No known key found for this signature in database
GPG Key ID: 35EE09F5481049BB
2 changed files with 6 additions and 7 deletions

View File

@ -22,7 +22,7 @@ set $menu exec $term --class launcher -t "Application Launcher" -e env HIST_FILE
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# Default wallpaper
output * bg /usr/share/backgrounds/Artix_dna_spiral_dark.jpg fill
#
# Example configuration:
@ -91,14 +91,10 @@ exec swayidle -w \
bindsym $mod+Shift+e exec swaynag -t warning -m 'Log out?' -b 'Yes' 'swaymsg exit'
# Reboot
bindsym $mod+Shift+r exec swaynag -t warning -m 'Reboot?' -b 'Yes' 'doas reboot'
# Uncomment to use sudo instead of doas, comment the above
#bindsym $mod+Shift+r exec swaynag -t warning -m 'Reboot?' -b 'Yes' 'sudo reboot'
bindsym $mod+Shift+r exec swaynag -t error -m 'Reboot?' -b 'Yes' 'doas reboot'
# Power off
bindsym $mod+Shift+q exec swaynag -t warning -m 'Shut down?' -b 'Yes' 'doas poweroff'
# Uncomment to use sudo instead of doas, comment the above
#bindsym $mod+Shift+q exec swaynag -t warning -m 'Shut down?' -b 'Yes' 'sudo poweroff'
bindsym $mod+Shift+q exec swaynag -t error -m 'Shut down?' -b 'Yes' 'doas poweroff'
#
# Screenshotting:

View File

@ -1,3 +1,6 @@
font=Fira Sans Condensed SemiBold 12
edge=bottom
[warning]
background=b58900bf
border-bottom=b58900bf