From ef54a4b67c8fcaebd7b82397548f34bb0e34acae Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Wed, 8 Apr 2026 20:03:15 +0100 Subject: [PATCH] fix: stabilize waybar with systemd and correct shebangs --- config/nomarchy/default/hypr/autostart.conf | 2 +- config/nomarchy/default/waybar/indicators/idle.sh | 2 +- .../default/waybar/indicators/notification-silencing.sh | 2 +- .../nomarchy/default/waybar/indicators/screen-recording.sh | 2 +- modules/home/waybar.nix | 5 +++++ 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/nomarchy/default/hypr/autostart.conf b/config/nomarchy/default/hypr/autostart.conf index 8d37339..45bbae7 100644 --- a/config/nomarchy/default/hypr/autostart.conf +++ b/config/nomarchy/default/hypr/autostart.conf @@ -1,6 +1,6 @@ exec-once = uwsm-app -- hypridle exec-once = uwsm-app -- mako -exec-once = uwsm-app -- waybar +# exec-once = uwsm-app -- waybar exec-once = uwsm-app -- fcitx5 --disable notificationitem exec-once = uwsm-app -- swaybg -i ~/.config/nomarchy/current/background -m fill exec-once = uwsm-app -- swayosd-server diff --git a/config/nomarchy/default/waybar/indicators/idle.sh b/config/nomarchy/default/waybar/indicators/idle.sh index ebb5f4f..a110cc4 100755 --- a/config/nomarchy/default/waybar/indicators/idle.sh +++ b/config/nomarchy/default/waybar/indicators/idle.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if pgrep -x hypridle >/dev/null; then echo '{"text": ""}' diff --git a/config/nomarchy/default/waybar/indicators/notification-silencing.sh b/config/nomarchy/default/waybar/indicators/notification-silencing.sh index d5a6827..6bebb47 100755 --- a/config/nomarchy/default/waybar/indicators/notification-silencing.sh +++ b/config/nomarchy/default/waybar/indicators/notification-silencing.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if makoctl mode | grep -q 'do-not-disturb'; then echo '{"text": "󰂛", "tooltip": "Notifications silenced", "class": "active"}' diff --git a/config/nomarchy/default/waybar/indicators/screen-recording.sh b/config/nomarchy/default/waybar/indicators/screen-recording.sh index 80038e0..567f386 100755 --- a/config/nomarchy/default/waybar/indicators/screen-recording.sh +++ b/config/nomarchy/default/waybar/indicators/screen-recording.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if pgrep -f "^gpu-screen-recorder" >/dev/null; then echo '{"text": "󰻂", "tooltip": "Stop recording", "class": "active"}' diff --git a/modules/home/waybar.nix b/modules/home/waybar.nix index 2d70e1a..afca05a 100644 --- a/modules/home/waybar.nix +++ b/modules/home/waybar.nix @@ -3,6 +3,7 @@ { programs.waybar = { enable = true; + systemd.enable = true; style = '' * { background-color: #${config.colorScheme.palette.base00}; @@ -41,4 +42,8 @@ ''; settings = [ (builtins.fromJSON (builtins.readFile ../../config/waybar/config.jsonc)) ]; }; + + home.packages = with pkgs; [ + font-awesome + ]; }