3 Commits

Author SHA1 Message Date
Dan MacLeod
4def2c96e7 add intune to niri floating rule 2025-07-03 11:45:59 +09:30
Dan MacLeod
bfe91a5a67 added some window rules and changed waybar powerline separators 2025-07-02 21:32:41 +09:30
Dan MacLeod
b4235351fa Updated primary niri config 2025-06-27 11:19:06 +09:30
2 changed files with 22 additions and 44 deletions

View File

@@ -4,7 +4,6 @@
// https://github.com/YaLTeR/niri/wiki/Configuration:-Introduction // https://github.com/YaLTeR/niri/wiki/Configuration:-Introduction
hotkey-overlay { hotkey-overlay {
// Skip showing the hotkeys
skip-at-startup skip-at-startup
} }
@@ -52,6 +51,7 @@ input {
trackpoint { trackpoint {
// off // off
// natural-scroll // natural-scroll
// accel-speed 0.2 // accel-speed 0.2
// accel-profile "flat" // accel-profile "flat"
@@ -145,17 +145,14 @@ layout {
proportion 0.33333 proportion 0.33333
proportion 0.5 proportion 0.5
proportion 0.66667 proportion 0.66667
proportion 1.0
// Fixed sets the width in logical pixels exactly. // Fixed sets the width in logical pixels exactly.
// fixed 1920 // fixed 1920
} }
// You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between. // You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
preset-window-heights { // preset-window-heights { }
proportion 0.333333
proportion 0.5
proportion 0.666667
}
// You can change the default width of the new windows. // You can change the default width of the new windows.
default-column-width { proportion 0.5; } default-column-width { proportion 0.5; }
@@ -282,8 +279,8 @@ layout {
// This line starts waybar, a commonly used bar for Wayland compositors. // This line starts waybar, a commonly used bar for Wayland compositors.
// spawn-at-startup "waybar" // spawn-at-startup "waybar"
spawn-at-startup "/home/danmac/.config/niri/sway_startup" "/home/danmac/Pictures/Nextcloud/IMG_8409-Enhanced-NR.jpg" spawn-at-startup "/home/reivernet/.config/niri/sway_startup" "/home/reivernet/Pictures/Nextcloud/IMG_8618-Enhanced-NR.jpg"
// spawn-at-startup "xwayland-satellite" spawn-at-startup "xwayland-satellite"
spawn-at-startup "cosmic-app-library" spawn-at-startup "cosmic-app-library"
environment { environment {
@@ -339,15 +336,12 @@ window-rule {
match app-id=r#"zen$"# title="^Extension:" match app-id=r#"zen$"# title="^Extension:"
match app-id=r#"com.nextcloud.desktopclient.nextcloud$"# match app-id=r#"com.nextcloud.desktopclient.nextcloud$"#
match app-id=r#"mako"# match app-id=r#"mako"#
match app-id="org.gnome.Nautilus" title="Open Folder"
match app-id="Intune-portal"
open-floating true open-floating true
} }
window-rule {
match app-id=r#"org.pulseaudio.pavucontrol"#
default-column-width { proportion 0.333333; }
}
window-rule { window-rule {
// Zed and Zen should be 66% wide // Zed and Zen should be 66% wide
match app-id="dev.zed.Zed" match app-id="dev.zed.Zed"
@@ -370,11 +364,6 @@ window-rule {
default-column-width { proportion 0.25; } default-column-width { proportion 0.25; }
} }
window-rule {
// Nautilus open file window
match app-id="org.gnome.Nautilus" title="Open Folder"
open-floating true
}
// 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.)
@@ -413,10 +402,8 @@ binds {
// Suggested binds for running programs: terminal, app launcher, screen locker. // Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+T hotkey-overlay-title="Open a Terminal: wezterm" { spawn "wezterm"; } Mod+T hotkey-overlay-title="Open a Terminal: wezterm" { spawn "wezterm"; }
Mod+D hotkey-overlay-title="Run an Application: cosmic-apps" { spawn "cosmic-app-library"; } Mod+D hotkey-overlay-title="Run an Application: cosmic-apps" { spawn "cosmic-app-library"; }
Mod+Shift+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
Mod+B hotkey-overlay-title="Open the Default Browser" { spawn "xdg-open" "http://"; } Mod+B hotkey-overlay-title="Open the Default Browser" { spawn "xdg-open" "http://"; }
Mod+X hotkey-overlay-title="Open the Default File Manager" { spawn "xdg-open" "/home/danmac/"; } Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock" "-f" "-i" "/usr/share/backgrounds/gnome/swoosh-l.jxl"; }
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock" "-f" "-i" "/tmp/blurred_IMG_8618-Enhanced-NR.jpg"; }
// toggle notification panel // toggle notification panel
Mod+Shift+N hotkey-overlay-title="Toggle notification window" { spawn "swaync-client" "-t"; } Mod+Shift+N hotkey-overlay-title="Toggle notification window" { spawn "swaync-client" "-t"; }
@@ -577,21 +564,12 @@ binds {
Mod+Shift+7 { move-column-to-workspace 7; } Mod+Shift+7 { move-column-to-workspace 7; }
Mod+Shift+8 { move-column-to-workspace 8; } Mod+Shift+8 { move-column-to-workspace 8; }
Mod+Shift+9 { move-column-to-workspace 9; } Mod+Shift+9 { move-column-to-workspace 9; }
Mod+Ctrl+1 { move-window-to-workspace 1; }
Mod+Ctrl+2 { move-window-to-workspace 2; }
Mod+Ctrl+3 { move-window-to-workspace 3; }
Mod+Ctrl+4 { move-window-to-workspace 4; }
Mod+Ctrl+5 { move-window-to-workspace 5; }
Mod+Ctrl+6 { move-window-to-workspace 6; }
Mod+Ctrl+7 { move-window-to-workspace 7; }
Mod+Ctrl+8 { move-window-to-workspace 8; }
Mod+Ctrl+9 { move-window-to-workspace 9; }
// Alternatively, there are commands to move just a single window: // Alternatively, there are commands to move just a single window:
// Mod+Ctrl+1 { move-window-to-workspace 1; } // Mod+Ctrl+1 { move-window-to-workspace 1; }
// Switches focus between the current and the previous workspace. // Switches focus between the current and the previous workspace.
Mod+Tab { focus-workspace-previous; } // Mod+Tab { focus-workspace-previous; }
// The following binds move the focused window in and out of a column. // The following binds move the focused window in and out of a column.
// If the window is alone, they will consume it into the nearby column to the side. // If the window is alone, they will consume it into the nearby column to the side.

View File

@@ -201,36 +201,36 @@
"escape": true, "escape": true,
}, },
"custom/pl-taskbar": { "custom/pl-taskbar": {
"format": "" "format": ""
}, },
"custom/pl-workspaces": { "custom/pl-workspaces": {
"format": "" "format": ""
}, },
"custom/pl-window": { "custom/pl-window": {
"format": "" "format": ""
}, },
"custom/pl-swaync": { "custom/pl-swaync": {
"format": "" "format": ""
}, },
"custom/pl-clock": { "custom/pl-clock": {
"format": "" "format": ""
}, },
"custom/pl-idle": { "custom/pl-idle": {
"format": "" "format": ""
}, },
"custom/pl-stats": { "custom/pl-stats": {
"format": "" "format": ""
}, },
"custom/pl-pulse": { "custom/pl-pulse": {
"format": "" "format": ""
}, },
"custom/pl-tray": { "custom/pl-tray": {
"format": "" "format": ""
}, },
"custom/pl-swaync-before": { "custom/pl-swaync-before": {
"format": "" "format": ""
}, },
"custom/pl-idle-before": { "custom/pl-idle-before": {
"format": "" "format": ""
}, },
} }