Skip to content

Instantly share code, notes, and snippets.

@p0unter
Created August 17, 2025 15:44
Show Gist options
  • Select an option

  • Save p0unter/b34f0bb392a8519ceaeebc0a1f39b124 to your computer and use it in GitHub Desktop.

Select an option

Save p0unter/b34f0bb392a8519ceaeebc0a1f39b124 to your computer and use it in GitHub Desktop.
Hyprland Waybar refresh process with Command & Script(auto...)

It's just for waybar of hyprland config :

killall -SIGUSR2 waybar

Bash script for all time listening changes:

#!/bin/bash

CONFIG_LOC="/home/user/.config/waybar/config"

trap "killall waybar" EXIT

while true; do
  waybar & 
  inotifywait -e create,modify $CONFIG_LOC
  killall waybar
done

Details (Reddit Comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment