Control Center

A native GTK4 desktop utility focused on screenshot workflow: browse images, filter/select/delete quickly, and annotate in-place using event-controller driven canvas tools.

Build & Run

cd LinuxUtilities
./build_linux_control_center.sh   # compiles linux_control_center.c
./build/bin/linux_control_center  # launch the app
# Optional install
./build_linux_control_center.sh --install
~/Programs/bin/linux_control_center

Recommended launch paths:

# From repo (always uses newest local build)
./build/bin/linux_control_center ~/Workspace/LinuxUtilities

# Installed binary (global launch)
~/Programs/bin/linux_control_center ~/Workspace/LinuxUtilities

Or compile manually:

mkdir -p build/bin
gcc -o build/bin/linux_control_center linux_control_center.c \
    $(pkg-config --cflags --libs gtk4) -lm

Current GTK4 Features

๐Ÿ–ผ Screenshot Browser

Loads images from Screenshots/, shows thumbnails in a multi-select grid, and supports instant search filtering.

โŒจ๏ธ Keyboard Workflow

Ctrl+A selects all thumbnails, Esc clears selection, and Delete removes selected files.

โœ๏ธ Annotation Canvas

Select an image to annotate with Select, Arrow, Line, Rect, Callout, Text, and Step tools. Uses GTK4 event controllers for click/drag/move/scroll handling.

๐Ÿ” Zoom + File Ops

Ctrl+Scroll zooms the canvas. Toolbar actions include refresh, open folder, and delete selected.

๐ŸŽ™๏ธ Audio + Mic Helpers

Audio tab includes quick actions for Bluetooth mic mode (HFP/HSP), music mode (A2DP), silent-headset recovery, status dump, microphone help, and external-mic routing for Audacity/Teams/browser recording apps.

โ—‰ Connectivity

One surface opens NetworkManager, nearby Wi-Fi, Bluetooth pairing and recovery, Tailscale status, audio routing, and network diagnostics. Launch it directly with --panel network.

๐Ÿ’พ Drives + Samba Helpers

Drives tab shows external USB partitions and Samba 530 status, with direct actions to mount/open/unmount/eject USB media and to launch the Samba probe/mount helpers.

๐Ÿ“ฆ Dependencies View

Dependencies tab runs the repo build/runtime dependency checks inside the app and shows apt install guidance for common tools such as pavucontrol, rofi, blueman, and redshift.

๐ŸŽ›๏ธ Style Ribbons

Top tool row and quick-style row are horizontally scrollable, with per-tool property controls in the right dock.

UI Troubleshooting

Toolbar icons missing or style ribbon not visible

Most often this is a stale binary launch issue. Rebuild and run a known binary path:

cd ~/Workspace/LinuxUtilities
./build_linux_control_center.sh --install
pkill -f linux_control_center || true
~/Programs/bin/linux_control_center ~/Workspace/LinuxUtilities

If rows are still hidden, reset saved UI layout state:

mv ~/.config/linuxutilities/control_center_gtk4.ini \
   ~/.config/linuxutilities/control_center_gtk4.ini.bak.$(date +%s)

Samba Setup Flow

If you want to point the Samba helper at a different share or bring it up on a new machine, use this five-step flow. The same guide is also reachable from Drives -> Samba Setup Guide in the control center and from LinuxUtilities -> storage -> Samba setup guide in AwesomeWM.

Five-step Samba setup infographic showing host/share selection, config overrides, credentials, probe, and mount flow.

Architecture (GTK4)

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Control Center (GTK4) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ Toolbar: Refresh | Open Folder | Delete Selected | Search โ”‚ โ”‚ โ”‚ โ”‚ GtkPaned โ”‚ โ”‚ โ”œโ”€ Browser section: GtkFlowBox thumbnails + selection/path info โ”‚ โ”‚ โ””โ”€ Editor section: GtkDrawingArea + Select/Arrow/Rect tool row โ”‚ โ”‚ โ”‚ โ”‚ Event system: GtkGestureClick + GtkEventControllerMotion/Scroll/Key โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

AwesomeWM Integration

Launch the Control Center from AwesomeWM with a hotkey:

-- rc.lua
awful.key({ modkey }, "c", function()
    awful.spawn("linux_control_center")
end, {description = "open control center", group = "utilities"})

The AwesomeWM menu also mirrors the new storage actions under LinuxUtilities -> storage, so you can reach the Drives tab, USB mount helpers, and Samba 530 helper actions from the desktop menu.

Device widgets react to session D-Bus signals from the LinuxUtilities event bridge. Install it with make device-events-install. Use Mod4+Ctrl+A, Mod4+Ctrl+B, and Mod4+Ctrl+W for focused Audio, Bluetooth, and Network controls.