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 ### 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 output * bg /usr/share/backgrounds/Artix_dna_spiral_dark.jpg fill
# #
# Example configuration: # Example configuration:
@ -91,14 +91,10 @@ exec swayidle -w \
bindsym $mod+Shift+e exec swaynag -t warning -m 'Log out?' -b 'Yes' 'swaymsg exit' bindsym $mod+Shift+e exec swaynag -t warning -m 'Log out?' -b 'Yes' 'swaymsg exit'
# Reboot # Reboot
bindsym $mod+Shift+r exec swaynag -t warning -m 'Reboot?' -b 'Yes' 'doas reboot' bindsym $mod+Shift+r exec swaynag -t error -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'
# Power off # Power off
bindsym $mod+Shift+q exec swaynag -t warning -m 'Shut down?' -b 'Yes' 'doas poweroff' bindsym $mod+Shift+q exec swaynag -t error -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'
# #
# Screenshotting: # Screenshotting:

View file

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