From 282a085718b6cba16913771a80256040351d1746 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 25 Jul 2026 13:15:12 +0530 Subject: feat(waybar): add waybar module, refine hyprland config, add private configs - Add waybar with base16-themed bar, modules (workspaces, window, volume, battery, network, vpn, cpu, memory, date, time), and CSS style - Replace polybar with waybar in desktop imports - Launch waybar + hyprpaper on hyprland startup - Extract hyprpaper into its own module with eDP-2 output target - Tweak border colors (active: base07→base03, inactive: base03→base00) - Enable Nordzy cursor theme with hyprcursor support - Add private email (neomutt) and git (signing key) configs - Remove chromium force-device-scale-factor flag - Drop explicit desktop.hyprland.enable from user config - Add result to gitignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/desktop/xdg/default.nix | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'modules/desktop/xdg/default.nix') diff --git a/modules/desktop/xdg/default.nix b/modules/desktop/xdg/default.nix index 5edaf03..400d91d 100644 --- a/modules/desktop/xdg/default.nix +++ b/modules/desktop/xdg/default.nix @@ -5,36 +5,22 @@ pkgs, ... }: -let - # Hyprland ships its own portal for screensharing/screencasting - portalPkgs = - with pkgs; - [ - xdg-desktop-portal-termfilechooser - ] - ++ lib.optionals config.desktop.hyprland.enable [ - xdg-desktop-portal-hyprland - ] - ++ lib.optionals (!config.desktop.hyprland.enable) [ - xdg-desktop-portal-gtk - ]; - - defaultPortal = if config.desktop.hyprland.enable then "hyprland" else "gtk"; -in { config = lib.mkIf config.desktop.enable { xdg.portal = { enable = true; - extraPortals = portalPkgs; + extraPortals = with pkgs; [ + xdg-desktop-portal-termfilechooser + xdg-desktop-portal-hyprland + ]; config.common = { "org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ]; - default = [ defaultPortal ]; + default = [ "hyprland" ]; }; xdgOpenUsePortal = true; }; home.sessionVariables = { - GTK_USE_PORTAL = "1"; TERMCMD = lib.mkIf config.terminal.kitty.enable "${lib.getExe config.terminal.kitty.package} --class file-explorer --title 'Yazi'"; }; }; -- cgit v1.2.3