From 609e98d681c44c786ef8816cd4187782e1c7fd2a Mon Sep 17 00:00:00 2001 From: rope Date: Sun, 17 May 2026 22:58:41 +0100 Subject: [PATCH] hyprland: fix waybar, power menu icons, and tray handle glyph - Explicitly start hyprland-session.target in our hl.on("hyprland.start") handler so waybar (and other session services) launch even if HM's dbus-update-activation-environment chain fails silently upstream - Power menu: replace plain spaces with bash $'\uXXXX' nerd font glyphs (fa-lock, fa-sign-out, fa-refresh, fa-power-off) - Waybar tray-handle: use builtins.fromJSON to embed U+E0B2 powerline filled left-arrow as the drawer indicator Co-Authored-By: Claude Sonnet 4.6 --- settings/hyprland.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index e8c0703..6878887 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -200,10 +200,10 @@ in let powerMenu = pkgs.writeShellScript "power-menu" '' choice=$(printf '%s\n' \ - $' Lock' \ - $' Logout' \ - $' Reboot' \ - $' Shutdown' \ + $'\uf023 Lock' \ + $'\uf08b Logout' \ + $'\uf01e Reboot' \ + $'\uf011 Shutdown' \ | ${pkgs.anyrun}/bin/anyrun \ --plugins "${pkgs.anyrun}/lib/libstdin.so" \ --show-results-immediately true \ @@ -250,6 +250,9 @@ in -- Startup hl.on("hyprland.start", function() + -- Ensure hyprland-session.target starts even if HM's + -- dbus-update-activation-environment chain fails upstream. + hl.exec_cmd("systemctl --user start hyprland-session.target") hl.exec_cmd("mako") hl.exec_cmd("nm-applet --indicator") hl.exec_cmd("wl-paste --type text --watch cliphist store") @@ -490,7 +493,7 @@ in }; "custom/tray-handle" = { - format = ""; # Nerd Font arrow + format = builtins.fromJSON ''"\ue0b2"''; # U+E0B2 Nerd Font powerline filled left-arrow tooltip = false; };