From 338e12ad7dc0c656ccca025fecdf5c9f07afcfc8 Mon Sep 17 00:00:00 2001 From: harry123 Date: Sat, 19 Apr 2025 14:07:29 +0200 Subject: [PATCH] more niri related changes --- home-manager/dotfiles/niri/config.kdl | 14 ++++++++---- home-manager/dotfiles/waybar/config.jsonc | 2 +- home-manager/home.nix | 28 +++++++++++------------ 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/home-manager/dotfiles/niri/config.kdl b/home-manager/dotfiles/niri/config.kdl index 7e95202..bdeb452 100644 --- a/home-manager/dotfiles/niri/config.kdl +++ b/home-manager/dotfiles/niri/config.kdl @@ -258,7 +258,7 @@ layout { // You can change the path where screenshots are saved. // A ~ at the front will be expanded to the home directory. // The path is formatted with strftime(3) to give you the screenshot date and time. -screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" +screenshot-path "~/Images/Captures d'écrans/Screenshot from %Y-%m-%d %H-%M-%S.png" // You can also set this to null to disable saving screenshots to disk. // screenshot-path null @@ -299,7 +299,7 @@ window-rule { // Example: block out two password managers from screen capture. // (This example rule is commented out with a "/-" in front.) -/-window-rule { +window-rule { match app-id=r#"^org\.keepassxc\.KeePassXC$"# match app-id=r#"^org\.gnome\.World\.Secrets$"# @@ -311,7 +311,7 @@ window-rule { // Example: enable rounded corners for all windows. // (This example rule is commented out with a "/-" in front.) -/-window-rule { +window-rule { geometry-corner-radius 12 clip-to-geometry true } @@ -332,7 +332,7 @@ binds { Mod+Shift+Slash { show-hotkey-overlay; } // Suggested binds for running programs: terminal, app launcher, screen locker. - Mod+Enter { spawn "foot"; } + Mod+Return { spawn "foot"; } Mod+D { spawn "walker"; } Super+Alt+L { spawn "swaylock"; } @@ -565,3 +565,9 @@ binds { // moving the mouse or pressing any other key. Mod+Shift+P { power-off-monitors; } } + +spawn-at-startup "xwayland-satellite" + +environment { + DISPLAY ":0" +} diff --git a/home-manager/dotfiles/waybar/config.jsonc b/home-manager/dotfiles/waybar/config.jsonc index c936fe4..d95d9cb 100644 --- a/home-manager/dotfiles/waybar/config.jsonc +++ b/home-manager/dotfiles/waybar/config.jsonc @@ -1,6 +1,6 @@ { "layer": "top", - "modules-left": ["custom/launcher", "sway/workspaces", "sway/mode"], + "modules-left": ["custom/launcher", "niri/workspaces"], "modules-center": [], "modules-right": [ "tray", diff --git a/home-manager/home.nix b/home-manager/home.nix index 861dfe3..bf73f67 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -228,24 +228,22 @@ server.enable = true; }; - /* - programs.walker = { - enable = true; - runAsService = true; + programs.walker = { + enable = true; + runAsService = true; - # All options from the config.json can be used here. - config = { - search.placeholder = "Example"; - ui.fullscreen = true; - list = { - height = 400; - }; - websearch.prefix = "?"; - switcher.prefix = "/"; + # All options from the config.json can be used here. + config = { + search.placeholder = "Example"; + ui.fullscreen = true; + list = { + height = 400; }; - + websearch.prefix = "?"; + switcher.prefix = "/"; }; - */ + + }; # Let Home Manager install and manage itself. programs.home-manager.enable = true;