From 225a9368b2b469d5c63e15d3d6a9cad232db23b6 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 1 Aug 2026 03:00:12 +0530 Subject: feat: waybar vpn module, heroic launcher desktop entry - Added a VPN indicator module to waybar - Added a desktop entry for heroic game launcher, for running through rofi --- modules/desktop/hyprland/default.nix | 2 +- modules/desktop/waybar/module/workspaces.nix | 1 + modules/gaming/heroic/default.nix | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/desktop/hyprland/default.nix b/modules/desktop/hyprland/default.nix index 1e48e3f..b87dca9 100644 --- a/modules/desktop/hyprland/default.nix +++ b/modules/desktop/hyprland/default.nix @@ -117,7 +117,7 @@ in }; scrolling = { - column_width = 0.5; + column_width = 1; explicit_column_widths = "0.5, 1.0"; focus_fit_method = 1; follow_focus = true; diff --git a/modules/desktop/waybar/module/workspaces.nix b/modules/desktop/waybar/module/workspaces.nix index cb64517..a2b05ba 100644 --- a/modules/desktop/waybar/module/workspaces.nix +++ b/modules/desktop/waybar/module/workspaces.nix @@ -34,6 +34,7 @@ "title" = lib.mkIf config.development.qemu.enable icons."VirtManager"; "title" = lib.mkIf config.development.opencode.enable icons."Opencode"; + "title" = lib.mkIf config.development.opencode.enable icons."Opencode"; "title" = lib.mkIf config.media.swayimg.enable icons."Swayimg"; "title" = lib.mkIf config.file-management.yazi.enable icons."Yazi"; "title" = lib.mkIf config.networking.bluetui.enable icons."bluetui"; diff --git a/modules/gaming/heroic/default.nix b/modules/gaming/heroic/default.nix index 9c07f17..591e60b 100644 --- a/modules/gaming/heroic/default.nix +++ b/modules/gaming/heroic/default.nix @@ -31,6 +31,16 @@ config = lib.mkIf config.gaming.heroic.enable { home.packages = [ config.gaming.heroic.package ]; + xdg.desktopEntries."heroic" = { + name = "Heroic Games Launcher"; + exec = "${lib.getExe' config.gaming.heroic.package "heroic"} %u"; + icon = "${pkgs.heroic}/share/icons/hicolor/scalable/apps/com.heroicgameslauncher.hgl.svg"; + comment = "An Open Source Launcher for GOG, Epic Games and Amazon Games"; + categories = [ "Game" ]; + mimeType = [ "x-scheme-handler/heroic" ]; + type = "Application"; + }; + xdg.mimeApps.defaultApplications = { "x-scheme-handler/heroic" = "heroic.desktop"; }; -- cgit v1.2.3