A simple quit dialog for i3wm.
sh
cargo install i3quitdialog
The exit
button works out of the box. In order to allow users to halt and
reboot the system, add them to the power
group.
You can just call it:
sh
i3quitdialog
However, if you are setting a blocklet to launch I3 Quit Dialog, prefer
using i3-msg
:
```ini [Logoff] command=i3-msg -q -- exec --no-startup-id i3quitdialog color=#ff0000 full_text=⏻ text=⏻ interval=0
pkill -SIGRTMIN+10 i3blocks
```
.XResources
supportI3 Quit Dialog supports the following keys from xrdb
:
I3QuitDialog.foreground
: window colourI3QuitDialog.background
: window background colourI3QuitDialog.exitColor
: exit button colourI3QuitDialog.cancelColor
: cancel button colourI3QuitDialog.haltColor
: halt button colourI3QuitDialog.rebootColor
: halt button colourAcceptable values:
#0000ff
)#0000ffff
)Black
Blue
Cyan
Dark1
Dark2
Dark3
DarkBlue
DarkCyan
DarkGreen
DarkMagenta
DarkRed
DarkYellow
Green
Light1
Light2
Light3
Magenta
Red
White
Yellow