2026-03-25 00:02:42 +01:00
2026-03-24 19:14:00 +01:00
2026-03-25 00:02:42 +01:00
2026-03-24 18:58:33 +01:00
2026-03-24 23:13:21 +01:00
2026-03-25 00:00:10 +01:00
2026-03-24 23:37:38 +01:00
2026-03-24 23:37:38 +01:00
2026-03-24 18:58:33 +01:00

AGS Bar for Hyprland (CachyOS)

A fast, highly-customizable, and memory-optimized top bar for Hyprland, built with AGS (Aylur's GTK Shell) and GTK4.

This shell features dynamic on-the-fly theming using Pywal, completely integrating your wallpaper colors into the bar and the rest of your system seamlessly.

✨ Features

  • Multi-Monitor Support: Automatically instantiates a top bar and power menu overlay for every connected display.
  • Dynamic Pywal Theming: Select a wallpaper from the built-in popover, and the entire system theme (AGS, Kitty, Rofi, etc.) updates instantly.
  • Memory-Optimized Image Caching: The wallpaper switcher uses highly efficient pre-scaled GdkPixbuf GTK textures to keep RAM usage incredibly low, even with 4K images.
  • Smart Media Player: Automatically tracks and controls your active media player via MPRIS. Includes a popover with album art and playback controls.
  • Quick Settings Dropdown: Easily manage your Network, Bluetooth (safe non-blocking toggles), and Audio (Speaker/Mic sliders).
  • System Tray & Clock: Unified system tray and a datetime display with a clickable calendar popover.
  • Hyprland Workspaces: Highlights the active workspace and allows click-to-switch navigation.

📦 Dependencies

To use this shell, you need to install AGS and the required backend libraries. Since you are on CachyOS/Arch, you can install them via your package manager or AUR.

# Core AGS and Sass compiler for theming
paru -S ags dart-sass

# Desktop environment dependencies
sudo pacman -S hyprpaper python-pywal16

# Astal libraries (for system data bindings)
paru -S astal-gjs astal-mpris astal-tray astal-network astal-bluetooth astal-wireplumber

🚀 Setup & Installation

  1. Clone/Place the Config: Ensure this repository is placed at ~/.config/ags.
  2. Wallpaper Directory: Create a folder at ~/wallpapers and put some .jpg or .png images in it. The theme switcher looks here by default.
    mkdir -p ~/wallpapers
    
  3. Initial Run: Start the bar manually to ensure everything is working.
    ags run
    

Autostarting with Hyprland

To make the bar start automatically when you log into Hyprland, add the following line to your ~/.config/hypr/hyprland.conf:

# Start the AGS bar on login
exec-once = ags run

(Note: The shell is configured to automatically restore your last used wallpaper and Pywal theme on boot!)


🎨 Applying the Theme Globally

Because this shell uses Pywal, you can easily inject the dynamically generated colors into almost any other application on your system!

Whenever you change the wallpaper via the AGS bar, Pywal updates the color templates inside ~/.cache/wal/. Here is how to apply them to other apps:

Example 1: Kitty Terminal

Kitty has built-in Pywal support. Pywal automatically generates a .conf file for it. Just add this single line anywhere in your ~/.config/kitty/kitty.conf:

include ~/.cache/wal/colors-kitty.conf

Next time you open Kitty, it will perfectly match your wallpaper!

Example 2: Rofi (App Launcher)

Pywal generates a standard Rofi theme. You can create a custom config.rasi file for Rofi that imports these colors and applies them to your launcher.

Create or edit ~/.config/rofi/config.rasi:

/* Import the dynamically generated Pywal colors */
@import "~/.cache/wal/colors-rofi-dark.rasi" * {
  /* Map Pywal's semantic colors to your theme */
  bg-col: @background;
  fg-col: @foreground;
  accent-col: @selected-normal-background;
  accent-fg: @selected-normal-foreground;

  background-color: transparent;
  text-color: @fg-col;
}

window {
  border: 2px;
  border-color: @accent-col;
  background-color: @bg-col;
}

element selected.normal,
element selected.active {
  background-color: @accent-col;
  text-color: @accent-fg;
}

Example 3: Fuzzel

If you use Fuzzel instead of Rofi, simply add this to the top of your ~/.config/fuzzel/fuzzel.ini (Requires creating a custom pywal template for fuzzel):

include=~/.cache/wal/colors-fuzzel.ini

🛠️ Code Quality

This project is formatted and linted for maintainability.

  • Format code: npm run format
  • Lint code: npm run lint
S
Description
Dynamic shell built with AGS
Readme
24 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 79.6%
SCSS 10.3%
Shell 8.1%
Lua 1.2%
JavaScript 0.8%