i3quitdialog

Crates.ioi3quitdialog
lib.rsi3quitdialog
version1.0.0
sourcesrc
created_at2023-03-07 21:51:17.521379
updated_at2023-06-06 18:11:58.515029
descriptionA simple quit dialog for i3wm.
homepagehttps://crates.io/crates/i3quitdialog
repositoryhttps://github.com/cacilhas/microcli/tree/master/i3quitdialog
max_upload_size
id803973
size277,008
Montegasppα ℭacilhας (cacilhas)

documentation

README

i3quitdialog

A simple quit dialog for i3wm.

Build and install

cargo install i3quitdialog

Settings

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:

i3quitdialog

However, if you are setting a blocklet to launch I3 Quit Dialog, prefer using i3-msg:

[Logoff]
command=i3-msg -q -- exec --no-startup-id i3quitdialog
color=#ff0000
full_text=⏻
text=⏻
interval=0
#signal=10  # uncomment this line to capture `pkill -SIGRTMIN+10 i3blocks`

.XResources support

I3 Quit Dialog supports the following keys from xrdb (case sensitive):

  • i3quitdialog.Title.foreground: window colour
  • i3quitdialog.Title.background: window background colour
  • i3quitdialog.ExitButton.color: exit button colour
  • i3quitdialog.CancelButton.color: cancel button colour
  • i3quitdialog.HaltButton.color: halt button colour
  • i3quitdialog.RebootButton.color: halt button colour

Acceptable values:

  • Hexadecimal RGB (#0000ff)
  • One of the following strings:
    • Black
    • Blue
    • DarkBlue
    • Cyan
    • DarkCyan
    • Green
    • DarkGreen
    • Magenta
    • DarkMagenta
    • Red
    • DarkRed
    • White
    • Yellow
    • DarkYellow

License: BSD-3-Clause

Commit count: 230

cargo fmt