diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-25 13:15:12 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-25 13:15:12 +0530 |
| commit | 282a085718b6cba16913771a80256040351d1746 (patch) | |
| tree | 5eff9995c4f29b64c4880e104d998537f1cde896 /modules/desktop/xdg | |
| parent | 892b62a3129a6ae30fa6b039e3f88d370d418319 (diff) | |
| download | home-manager-config-282a085718b6cba16913771a80256040351d1746.tar.gz home-manager-config-282a085718b6cba16913771a80256040351d1746.zip | |
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
Diffstat (limited to 'modules/desktop/xdg')
| -rw-r--r-- | modules/desktop/xdg/default.nix | 24 |
1 files changed, 5 insertions, 19 deletions
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'"; }; }; |
