execAsync resolves only once stdout/stderr reach EOF, and update_script.sh started dunst with '&' so the daemon inherited AGS's captured pipes. Once theme switches were serialized behind themeQueue, that pending promise blocked every later switch, including the one restoreTheme() queues at startup, so clicking a wallpaper did nothing. - detach dunst with setsid and redirected stdio in update_script.sh - run update_script.sh with its fds detached and without awaiting it, so user-added commands can never stall the queue
AGS Bar for Hyprland
A fast, highly-customizable, and memory-optimized top bar for Hyprland, built with AGS (Aylur's GTK Shell) and GTK4.
This shell features dynamic theming using Pywal, completely integrating your wallpaper colors into the bar and the rest of your system.
✨ 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 AGS theme updates instantly.
- Memory-Optimized Image Caching: The wallpaper switcher uses highly efficient pre-scaled
GdkPixbufGTK 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.
- Per-Monitor Workspaces: Each bar only shows the workspaces that belong to its monitor (open or holding applications), with click-to-switch navigation.
- Themed Greeter: Optional AGS login screen for greetd that reuses the current Pywal palette and wallpaper, shows PAM messages, and offers reboot/shutdown buttons.
📷️ Screenshots
Greeter
📦 Dependencies
To use this shell, you need to install AGS and the required backend libraries. Since you are most probably using Arch, you can install them via your package manager or AUR.
Core shell
# AGS, Astal libraries (includes AstalGreet), Sass, Hyprland settings and notifications
paru -S libastal-meta aylurs-gtk-shell dart-sass hyprmod dunst
Wallpaper and theming
paru -S hyprpaper python-pywal16
Workspaces widget
The workspace bar reads Hyprland's IPC socket directly and uses a small Python helper:
sudo pacman -S openbsd-netcat python
System services
The Astal widgets talk to these services (usually already present on a desktop install):
sudo pacman -S networkmanager bluez bluez-utils pipewire wireplumber upower power-profiles-daemon
power-profiles-daemon is optional (the power profile section is hidden without it). easyeffects is optional and is launched by the Audio button:
sudo pacman -S easyeffects
Greeter (optional)
The included greetd greeter additionally needs:
sudo pacman -S greetd cage uwsm polkit dbus
dbus and polkit are usually already installed. libastal-meta already includes AstalGreet; if you installed the Astal libraries individually, also install libastal-greetd-git.
The greeter runs as the greeter user, which must be able to access the GPU:
# only if the user does not exist yet
sudo useradd -M -G video greeter
🚀 Setup & Installation
- Clone/Place the Config: Ensure this repository is placed at
~/.config/ags. - Wallpaper Directory: Create a folder at
~/wallpaperswhere you can place your.jpgor.pngwallpapers in. The theme switcher looks here by default. Enable the hyprpaper service.mkdir -p ~/wallpapers systemctl --user enable --now hyprpaper - Initial Run: Start the bar manually to ensure everything is working.
ags run
Autostarting with Hyprland
To make the bar start automatically when you launch 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.)
🔐 Greeter
This repository includes an optional AGS greeter for greetd in greeter/. It uses AstalGreet for authentication, runs under the cage kiosk compositor, and reuses the current Pywal palette and wallpaper so the login screen matches the shell.
greetd -> start-greeter.sh -> cage -> dbus-run-session -> ags run greeter.tsx
^ |
+------------ AstalGreet (GREETD_SOCK) --------------+
theme.tsexports the compiled greeter CSS and current wallpaper to/var/tmp/ags-greeteron every theme change.greeter/install.shcopies the greeter to/etc/greetd/ags, creates/var/lib/greetd, installs a polkit rule for reboot/shutdown, and configures/etc/greetd/config.toml.- A successful login starts a uwsm-managed Hyprland session (
hyprland.desktop).
Install
sudo pacman -S cage uwsm polkit dbus
sudo ./greeter/install.sh
Keep a TTY available (Ctrl+Alt+F2) before applying it, then restart greetd or reboot:
sudo systemctl reset-failed greetd
sudo systemctl restart greetd
See greeter/README.md for details, the debug log (/tmp/greeter.log), and alternate session commands.
Preview
Run the login UI inside your current Hyprland session. It will refuse to log in without greetd, which is expected:
ags run ./greeter/greeter.tsx
For a full kiosk-style preview, and for screenshots, run it inside a nested cage window:
cage -d -- dbus-run-session -- ags run ./greeter/greeter.tsx
Close the preview with your Hyprland close-window keybind or:
ags quit -i greeter
🎨 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.
Pywal applies the colors to config files located in ~/.config/wal/templates. Examples can be found in this repos templates folder.
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:
Manual Updates:
If your application needs to be restarted to update its themes, place the needed commands in the update_script.sh. An example for the dunst notification daemon is already in there.
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: Dunst (Notification Daemon)
Pywal doesn't generate a theme for every application, hence you have to define some templates yourself in ~/.config/wal/templates.
In this case we will create a template for Dunst:
[global]
# Define the corner radius in pixels.
# A value of 0 disables rounded corners.
corner_radius = 10
[urgency_low]
background = "{background}CC"
foreground = "{foreground}"
frame_color = "{color2}"
timeout = 10
[urgency_normal]
background = "{background}CC"
foreground = "{foreground}"
frame_color = "{color1}"
timeout = 10
[urgency_critical]
background = "{background}CC"
foreground = "{foreground}"
frame_color = "{color9}"
timeout = 0
After switching the wallpaper, pywal will generate a theme with the exactly same name in ~/.cache/wal
You can create a symlink so dunst will always have the current theme:
ln -sf ~/.cache/wal/dunstrc ~/.config/dunst/dunstrc
Because dunst doesn't apply the theme while it's running, we added
killall dunst
dunst &
in the update_script.sh Bash-Script which runs every time the wallpaper is switched.
You can add your own commands in there if needed.




