A Simple ShutDown Dialog for Openbox written in C using GTK https://blog.kekepower.com/ssdd.html
Go to file
2024-06-30 12:00:29 +02:00
.gitignore Add .gitignore to ignore the binary file ssdd 2024-06-28 16:41:49 +02:00
LICENSE Initial commit 2024-06-28 16:23:05 +02:00
README.md Add link to Sawfish ssd 2024-06-28 17:02:35 +02:00
resources.c Added option to use Escape to close the window. Program icon compiled into the program. 2024-06-30 12:00:29 +02:00
resources.gresource.xml Added option to use Escape to close the window. Program icon compiled into the program. 2024-06-30 12:00:29 +02:00
resources.h Added option to use Escape to close the window. Program icon compiled into the program. 2024-06-30 12:00:29 +02:00
ssdd-icon.png Add application icon 2024-06-28 16:58:14 +02:00
ssdd.c Added option to use Escape to close the window. Program icon compiled into the program. 2024-06-30 12:00:29 +02:00
ssdd.png Update screenshot and text in the program 2024-06-28 16:37:33 +02:00

ssdd

A simple Shutdown Dialog for Openbox written in C using GTK

Project Screenshot

Why?

I just bought a new laptop and on my workstation I was using ssd from Sawfish which I loved. I didn't want to go through all the steps of installing the necessary libraries and dependencies to get it to work, so I decided to create my own.

Dependencies and compilation

This app requires GTK+ 3.0 development libraries and gcc or clang.

I am using this command to compile the program:

Using GCC:

% gcc ssdd.c -o ssdd `pkg-config --cflags --libs gtk+-3.0`

Using Clang:

% clang ssdd.c -o ssdd `pkg-config --cflags --libs gtk+-3.0`

This produces the binary ssdd which you can place in your $PATH.

Configure Openbox to use it.

% sudo nvim /etc/xdg/openbox/menu.xml

Find the line with the standard Openbox Exit option and change it to

<item label="Log Out"><action name="Execute"><execute>ssdd</execute></item>

The reconfigure Openbox to use the new setting.

% openbox --reconfigure