summaryrefslogtreecommitdiff
path: root/home-manager/features/gui/desktops/niri/default.nix
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-10-15 08:39:09 -0400
committertriethyl <triethylammonium@pm.me>2025-10-15 08:39:09 -0400
commita9fc9cf8832c471854bb7fa61137a5272f1076b6 (patch)
treee640b844ea405943c6f4aca5bd40bc299ef37ecf /home-manager/features/gui/desktops/niri/default.nix
parentcc295c0d7e2c6ce80117322ea29f0f8219cd7a12 (diff)
niri: rearranged files and small changes
Diffstat (limited to 'home-manager/features/gui/desktops/niri/default.nix')
-rwxr-xr-xhome-manager/features/gui/desktops/niri/default.nix106
1 files changed, 3 insertions, 103 deletions
diff --git a/home-manager/features/gui/desktops/niri/default.nix b/home-manager/features/gui/desktops/niri/default.nix
index 38e0cfd..270be51 100755
--- a/home-manager/features/gui/desktops/niri/default.nix
+++ b/home-manager/features/gui/desktops/niri/default.nix
@@ -1,121 +1,21 @@
{
config,
- pkgs,
lib,
- inputs,
...
}: let
cfg = config.features.gui.desktops.niri;
- aes = config.aesthetics;
in {
- imports = [
- inputs.niri.homeModules.niri
- ./keybinds.nix
- ];
options.features.gui.desktops.niri.enable = lib.mkEnableOption "niri";
config = lib.mkIf cfg.enable {
features.gui.desktops.niri.parts = {
+ niri.enable = true;
waybar.enable = true;
fuzzel.enable = true;
selectors.enable = true;
swww.enable = true;
mako.enable = true;
- hyprlock.enable = true;
- };
- programs.niri = {
- enable = true;
- package = inputs.niri.packages.${pkgs.system}.niri-unstable;
- settings = {
- outputs = {
- "Samsung Electric Company SAMSUNG 0x00000001" = {
- enable = true;
- scale = 1.5;
- };
- };
- spawn-at-startup = [
- # Status Bar
- {command = ["waybar"];}
-
- # Wallpaper Daemon
- {command = ["swww-daemon"];}
-
- # Allows x apps to be used in wayland.
- {command = ["${lib.getExe pkgs.xwayland-satellite}"];}
-
- # Logs the clipboard for use in utilities.
- {command = ["${pkgs.wl-clipboard}/bin/wl-paste" "--watch" "${pkgs.cliphist}/bin/cliphist" "store"];}
- ];
- environment = {
- DISPLAY = ":0"; # Important for Xwayland.
- };
- window-rules = [
- {
- geometry-corner-radius = let
- radius = 4.0;
- in {
- top-left = radius;
- top-right = radius;
- bottom-left = radius;
- bottom-right = radius;
- };
- clip-to-geometry = true;
- default-column-width.proportion = 1. / 3.;
- }
- {
- # Prevent Tor from being screen captured.
- matches = [{app-id = "Tor Browser";}];
- block-out-from = "screen-capture";
- }
- ];
- switch-events = {
- lid-close.action.spawn = ["hyprlock"];
- };
- prefer-no-csd = true;
- overview = {
- backdrop-color = "#${aes.scheme.base01}";
- };
- layout = {
- gaps = 14;
- insert-hint.enable = false;
- shadow = {
- enable = true;
- softness = 10;
- spread = 5;
- offset = {
- x = 0;
- y = 0;
- };
- };
- focus-ring = {
- enable = true;
- width = 3;
- active.color = "#${aes.scheme.base09}";
- };
- border = {
- enable = false;
- width = 3;
- inactive.color = "#${aes.scheme.base03}";
- active.color = "#${aes.scheme.base08}";
- };
- struts = {
- # left = -1;
- # right = -1;
-
- left = 20;
- right = 20;
- top = 20;
- bottom = 20;
- };
- always-center-single-column = false;
- empty-workspace-above-first = true;
- };
- hotkey-overlay.skip-at-startup = true;
- input = {
- touchpad = {
- click-method = "clickfinger";
- };
- };
- };
+ hyprlock.enable = false;
+ quickshell.enable = true;
};
};
}