A Simple ShutDown Dialog for Openbox written in C using GTK https://blog.kekepower.com/ssdd.html
Go to file
2024-07-11 23:29:09 +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
Makefile Added Makefile 2024-07-05 10:55:35 +02:00
README.md Update README.md with better and more concise information about the project 2024-07-11 23:29:09 +02:00
resources.c Rename app from example to ssdd 2024-07-04 08:11:08 +02:00
resources.gresource.xml Rename app from example to ssdd 2024-07-04 08:11:08 +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 Reduced size of About image and hence reduced the size of the binary from 199kb to 79kb 2024-07-01 22:34:48 +02:00
ssdd.c Rename app from example to ssdd 2024-07-04 08:11:08 +02:00
ssdd.png Update screenshot and text in the program 2024-06-28 16:37:33 +02:00

ssdd: Stig's Shutdown Dialog for Openbox

A simple Shutdown Dialog for Openbox written in C using GTK

Project Screenshot

Stig's Shutdown Dialog (ssdd) is a simple yet stylish shutdown dialog for Openbox, crafted in C using GTK.

Why ssdd?

As a long-time Openbox enthusiast, I've always found the default exit dialog a bit lackluster. Modern systems deserve a more refined shutdown experience. While there are other options out there, I figured one more wouldn't hurt, right?

Inspired by the elegant ssd from Sawfish, I decided to create my own tailored solution for Openbox. This way, you can avoid the hassle of installing extra dependencies and enjoy a sleek shutdown dialog that complements your Openbox setup.

Features

  • Clean and Intuitive Interface: ssdd presents a clear choice between Shutdown, Reboot, Logout, and Exit options.
  • Clean and minimal code: ssdd is built on a clean and minimal codebase, making it easy to maintain, understand, and extend.
  • Lightweight and Efficient: ssdd is designed to be fast and resource-friendly, perfectly suited for Openbox's minimalist philosophy.

Dependencies and Compilation

ssdd requires:

  • GTK+ 3.0
  • Glib 2 development libraries
  • gcc or clang

Easy Compilation

Edit the Makefile or use the following commands:

% make all     # Compile
% sudo make install # Install to /usr/local

Manual compilation

# Using GCC:
% gcc ssdd.c resources.c -o ssdd `pkg-config --cflags --libs gtk+-3.0`

# Using Clang:
% clang ssdd.c resources.c -o ssdd `pkg-config --cflags --libs gtk+-3.0`

Place the ssdd binary in your $PATH (e.g., ~/bin).

Integrate with Openbox

  1. Edit your Openbox menu:
% sudo nvim /etc/xdg/openbox/menu.xml
  1. Replace the default Exit entry with:
<item label="Log Out"><action name="Execute"><execute>ssdd</execute></action></item>
  1. Reconfigure Openbox:
% openbox --reconfigure

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.