more niri related changes

This commit is contained in:
chloe 2025-04-19 14:07:29 +02:00
parent 21c238b30b
commit 338e12ad7d
3 changed files with 24 additions and 20 deletions

View file

@ -258,7 +258,7 @@ layout {
// You can change the path where screenshots are saved. // You can change the path where screenshots are saved.
// A ~ at the front will be expanded to the home directory. // 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. // 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. // You can also set this to null to disable saving screenshots to disk.
// screenshot-path null // screenshot-path null
@ -299,7 +299,7 @@ window-rule {
// Example: block out two password managers from screen capture. // Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.) // (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\.keepassxc\.KeePassXC$"#
match app-id=r#"^org\.gnome\.World\.Secrets$"# match app-id=r#"^org\.gnome\.World\.Secrets$"#
@ -311,7 +311,7 @@ window-rule {
// Example: enable rounded corners for all windows. // Example: enable rounded corners for all windows.
// (This example rule is commented out with a "/-" in front.) // (This example rule is commented out with a "/-" in front.)
/-window-rule { window-rule {
geometry-corner-radius 12 geometry-corner-radius 12
clip-to-geometry true clip-to-geometry true
} }
@ -332,7 +332,7 @@ binds {
Mod+Shift+Slash { show-hotkey-overlay; } Mod+Shift+Slash { show-hotkey-overlay; }
// Suggested binds for running programs: terminal, app launcher, screen locker. // Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+Enter { spawn "foot"; } Mod+Return { spawn "foot"; }
Mod+D { spawn "walker"; } Mod+D { spawn "walker"; }
Super+Alt+L { spawn "swaylock"; } Super+Alt+L { spawn "swaylock"; }
@ -565,3 +565,9 @@ binds {
// moving the mouse or pressing any other key. // moving the mouse or pressing any other key.
Mod+Shift+P { power-off-monitors; } Mod+Shift+P { power-off-monitors; }
} }
spawn-at-startup "xwayland-satellite"
environment {
DISPLAY ":0"
}

View file

@ -1,6 +1,6 @@
{ {
"layer": "top", "layer": "top",
"modules-left": ["custom/launcher", "sway/workspaces", "sway/mode"], "modules-left": ["custom/launcher", "niri/workspaces"],
"modules-center": [], "modules-center": [],
"modules-right": [ "modules-right": [
"tray", "tray",

View file

@ -228,24 +228,22 @@
server.enable = true; server.enable = true;
}; };
/* programs.walker = {
programs.walker = { enable = true;
enable = true; runAsService = true;
runAsService = true;
# All options from the config.json can be used here. # All options from the config.json can be used here.
config = { config = {
search.placeholder = "Example"; search.placeholder = "Example";
ui.fullscreen = true; ui.fullscreen = true;
list = { list = {
height = 400; height = 400;
};
websearch.prefix = "?";
switcher.prefix = "/";
}; };
websearch.prefix = "?";
switcher.prefix = "/";
}; };
*/
};
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;