Live-debian_sway/swayexit.sh

8 lines
339 B
Bash

#!/bin/bash
if [[ ! $(pgrep -x "swaynag") ]]; then
swaynag --background 333333 --border 333333 --border-bottom 333333 --button-background 1F1F1F \
--button-border-size 0 --button-padding 8 --text FFFFFF --button-text FFFFFF --edge bottom \
-t warning -m 'Do you really want to log out?' -B 'You heard me!' 'swaymsg exit'
fi