wip: dnsc-machine setup

This commit is contained in:
Dennis Schoepf 2025-11-24 23:07:37 +01:00
parent 4f598fc382
commit e6b6016ba7
7 changed files with 77 additions and 51 deletions

View file

@ -81,7 +81,7 @@ layout {
// - "always", the focused column will always be centered.
// - "on-overflow", focusing a column will center it if it doesn't fit
// together with the previously focused column.
center-focused-column "never"
center-focused-column "on-overflow"
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
preset-column-widths {
@ -183,11 +183,9 @@ layout {
}
// STARTUP
// Wallpaper Setup
spawn-at-startup "swaync"
// spawn-at-startup "ironbar"
spawn-at-startup "swww-daemon" // Wallpaper
spawn-at-startup "ironbar"
spawn-at-startup "swww-daemon"
spawn-sh-at-startup "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"
hotkey-overlay {
@ -218,10 +216,33 @@ animations {
// slowdown 3.0
}
overview {
backdrop-color "#0f0b15"
}
workspace "main"
workspace "code"
workspace "gaming"
workspace "other"
workspace "chat"
workspace "media"
// Window rules let you adjust behavior for individual windows.
// Find more information on the wiki:
// https://yalter.github.io/niri/Configuration:-Window-Rules
// TODO: Set up window rules for windows (only at niri startup)
// window-rule {
// match at-startup=true app-id=r#"^Spotify$"#
// open-on-workspace "media"
// }
// TODO: Set up window rules for windows (only at niri startup)
// window-rule {
// match at-startup=true app-id=r#"^Signal$"#
// open-on-workspace "chat"
// }
// Work around WezTerm's initial configure bug
// by setting an empty default-column-width.
// window-rule {
@ -241,6 +262,11 @@ window-rule {
open-floating true
}
window-rule {
match app-id=r#"gimp$"# title="^GIMP$"
open-maximized true
}
// Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.)
/-window-rule {
@ -409,24 +435,24 @@ binds {
//
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
// will all refer to the 3rd workspace.
Mod+1 { focus-workspace 1; }
Mod+2 { focus-workspace 2; }
Mod+3 { focus-workspace 3; }
Mod+4 { focus-workspace 4; }
Mod+5 { focus-workspace 5; }
Mod+6 { focus-workspace 6; }
Mod+7 { focus-workspace 7; }
Mod+8 { focus-workspace 8; }
Mod+9 { focus-workspace 9; }
Mod+Ctrl+1 { move-column-to-workspace 1; }
Mod+Ctrl+2 { move-column-to-workspace 2; }
Mod+Ctrl+3 { move-column-to-workspace 3; }
Mod+Ctrl+4 { move-column-to-workspace 4; }
Mod+Ctrl+5 { move-column-to-workspace 5; }
Mod+Ctrl+6 { move-column-to-workspace 6; }
Mod+Ctrl+7 { move-column-to-workspace 7; }
Mod+Ctrl+8 { move-column-to-workspace 8; }
Mod+Ctrl+9 { move-column-to-workspace 9; }
Alt+1 { focus-workspace "main"; }
Alt+2 { focus-workspace "code"; }
Alt+3 { focus-workspace "gaming"; }
Alt+4 { focus-workspace "other"; }
Alt+5 { focus-workspace "chat"; }
Alt+6 { focus-workspace "media"; }
Alt+7 { focus-workspace 7; }
Alt+8 { focus-workspace 8; }
Alt+9 { focus-workspace 9; }
Alt+Ctrl+1 { move-column-to-workspace "main"; }
Alt+Ctrl+2 { move-column-to-workspace "code"; }
Alt+Ctrl+3 { move-column-to-workspace "gaming"; }
Alt+Ctrl+4 { move-column-to-workspace "other"; }
Alt+Ctrl+5 { move-column-to-workspace "chat"; }
Alt+Ctrl+6 { move-column-to-workspace "media"; }
Alt+Ctrl+7 { move-column-to-workspace 7; }
Alt+Ctrl+8 { move-column-to-workspace 8; }
Alt+Ctrl+9 { move-column-to-workspace 9; }
// Alternatively, there are commands to move just a single window:
// Mod+Ctrl+1 { move-window-to-workspace 1; }
@ -437,13 +463,13 @@ binds {
// 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 already in a column, they will expel it out.
Mod+BracketLeft { consume-or-expel-window-left; }
Mod+BracketRight { consume-or-expel-window-right; }
Mod+Comma { consume-or-expel-window-left; }
Mod+Period { consume-or-expel-window-right; }
// Consume one window from the right to the bottom of the focused column.
Mod+Comma { consume-window-into-column; }
// Mod+Comma { consume-window-into-column; }
// Expel the bottom window from the focused column to the right.
Mod+Period { expel-window-from-column; }
// Mod+Period { expel-window-from-column; }
Mod+R { switch-preset-column-width; }
// Cycling through the presets in reverse order is also possible.