Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kekepower/ssdd
A simple Shutdown Dialog for Openbox written in C using GTK. Mirror of https://git.kekepower.com/kekePower/ssdd
https://github.com/kekepower/ssdd
dialog gtk gtk3 openbox shutdown shutdown-helper shutdown-manager
Last synced: 15 days ago
JSON representation
A simple Shutdown Dialog for Openbox written in C using GTK. Mirror of https://git.kekepower.com/kekePower/ssdd
- Host: GitHub
- URL: https://github.com/kekepower/ssdd
- Owner: kekePower
- License: gpl-2.0
- Created: 2024-07-05T08:11:42.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-12T23:54:06.000Z (about 2 months ago)
- Last Synced: 2024-10-04T21:59:43.451Z (about 1 month ago)
- Topics: dialog, gtk, gtk3, openbox, shutdown, shutdown-helper, shutdown-manager
- Language: C
- Homepage: https://blog.kekepower.com/ssdd.html
- Size: 842 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssdd: Simple Shutdown Dialog for Openbox
A simple Shutdown Dialog for Openbox written in C using GTK 4
![Project Screenshot](ssdd.png)
![Settings screenshot](ssdd-settings.png)
![Settings screenshot](ssdd-about.png)
**Simple Shutdown Dialog (ssdd)** is a simple yet stylish shutdown dialog for Openbox, crafted in C using GTK 4.
## 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 clear options for Logout, Reboot, Shutdown, Switch User, Suspend, Hibernate, Settings, and Exit.
- **Configurable Commands:** Easily customize the commands executed for each action via the settings dialog.
- **Lightweight and Efficient:** Designed to be fast and resource-friendly, perfectly suited for Openbox's minimalist philosophy.
- **Modern GTK 4 Interface:** Built with GTK 4 for a modern look and feel.## Dependencies and Compilation
ssdd requires:
* GTK 4 development libraries
* Glib 2 development libraries
* gcc or clang### Easy Compilation
Edit the `Makefile` or use the following commands:
```shell
% make all # Compile
% sudo make install # Install to /usr/local
% sudo make install PREFIX=/usr # Install to /usr
```### Manual compilation
First generate the resources.
```bash
% glib-compile-resources resources.gresource.xml --generate-source --target=resources.c
% glib-compile-resources resources.gresource.xml --generate-header --target=resources.h
``````bash
# Using GCC:
% gcc ssdd.c resources.c -o ssdd `pkg-config --cflags --libs gtk4`# Using Clang:
% clang ssdd.c resources.c -o ssdd `pkg-config --cflags --libs gtk4`
```Place the `ssdd` binary in your `$PATH` (e.g., `~/bin`).
### Integrate with Openbox
1. Edit your Openbox menu:
```bash
% sudo nvim /etc/xdg/openbox/menu.xml
```2. Replace the default Exit entry with:
```xml
ssdd
```3. Reconfigure Openbox:
```bash
% openbox --reconfigure
```### Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.