From a8ebaf2dd6359562acf2766967786a05f813dcba Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Tue, 30 Sep 2025 13:07:18 +0200 Subject: [PATCH] Add Glance application to Hyprland binds and XDG desktop entries --- modules/home/hyprland/binds.nix | 1 + modules/home/xdg.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/modules/home/hyprland/binds.nix b/modules/home/hyprland/binds.nix index ca2f9f3..d6db30e 100644 --- a/modules/home/hyprland/binds.nix +++ b/modules/home/hyprland/binds.nix @@ -42,6 +42,7 @@ in # APLIKACJE - Z ALT I CONTROL # ============================================================================= "$modifier ALT, B, exec, btop" + "$modifier ALT, G, exec, dex ${desktopEntriesPath}/glance.desktop" "$modifier ALT, M, exec, dex ${desktopEntriesPath}/mastodon.desktop" "$modifier ALT, S, exec, slack" "$modifier CONTROL, M, exec, mattermost-desktop" diff --git a/modules/home/xdg.nix b/modules/home/xdg.nix index deb66d9..9e5ef36 100644 --- a/modules/home/xdg.nix +++ b/modules/home/xdg.nix @@ -20,6 +20,10 @@ let url = "https://registry.npmmirror.com/@lobehub/icons-static-png/1.65.0/files/dark/claude-color.png"; sha256 = "sha256-wmYmbmT2/bR4JrnZJu2stjRZm//O5TB9EPE2NQWdGkQ="; }; + glanceIcon = pkgs.fetchurl { + url = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/glance.png"; + sha256 = "sha256-xyFlmPpt+DABoGX5oBqj/aQVdxtmNflat9Jb2BE7SOY="; + }; in { xdg = { @@ -72,6 +76,14 @@ in terminal = false; type = "Application"; }; + "glance" = { + name = "Glance"; + genericName = "Glance"; + exec = "chromium --profile-directory=Default --app=https://glance.garandplg.com/"; + icon = "${glanceIcon}"; + terminal = false; + type = "Application"; + }; }; }; }