Merge branch 'main' of codeberg.org:ficcdaf/dotfiles

This commit is contained in:
Daniel Fichtinger 2025-03-03 15:26:20 -05:00
commit 6f667381f6
4 changed files with 56 additions and 17 deletions

View file

@ -1 +1 @@
config##hostname.dbox config##hostname.dpad

View file

@ -1 +1 @@
kitty.conf##hostname.dbox kitty.conf##hostname.dpad

View file

@ -1,3 +1,4 @@
workspace "music"
// This config is in the KDL format: https://kdl.dev // This config is in the KDL format: https://kdl.dev
// "/-" comments out the following node. // "/-" comments out the following node.
// Check the wiki for a full description of the configuration: // Check the wiki for a full description of the configuration:
@ -58,6 +59,9 @@ output "DP-1" {
// Settings that influence how windows are positioned and sized. // Settings that influence how windows are positioned and sized.
// Find more information on the wiki: // Find more information on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout // https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
// Settings that influence how windows are positioned and sized.
// Find more information on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
layout { layout {
// Set gaps around windows in logical pixels. // Set gaps around windows in logical pixels.
gaps 16 gaps 16
@ -68,6 +72,7 @@ layout {
// - "on-overflow", focusing a column will center it if it doesn't fit // - "on-overflow", focusing a column will center it if it doesn't fit
// together with the previously focused column. // together with the previously focused column.
center-focused-column "never" center-focused-column "never"
// /-always-center-single-column
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between. // You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
preset-column-widths { preset-column-widths {
// Proportion sets the width as a fraction of the output width, taking gaps into account. // Proportion sets the width as a fraction of the output width, taking gaps into account.
@ -159,6 +164,7 @@ layout {
// See the binds section below for more spawn examples. // See the binds section below for more spawn examples.
// spawn-at-startup "alacritty" "-e" "fish" // spawn-at-startup "alacritty" "-e" "fish"
spawn-at-startup "dunst" "&" spawn-at-startup "dunst" "&"
spawn-at-startup "xwayland-satellite"
// Uncomment this line to ask the clients to omit their client-side decorations if possible. // Uncomment this line to ask the clients to omit their client-side decorations if possible.
// If the client will specifically ask for CSD, the request will be honored. // If the client will specifically ask for CSD, the request will be honored.
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners. // Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
@ -186,6 +192,10 @@ animations {
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules // https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
// Work around WezTerm's initial configure bug // Work around WezTerm's initial configure bug
// by setting an empty default-column-width. // by setting an empty default-column-width.
window-rule {
match app-id="^spotify$"
open-on-workspace "music"
}
window-rule { window-rule {
// This regular expression is intentionally made as specific as possible, // This regular expression is intentionally made as specific as possible,
// since this is the default config, and we want no false positives. // since this is the default config, and we want no false positives.
@ -232,15 +242,22 @@ window-rule {
// Use this instead if you want them visible on third-party screenshot tools. // Use this instead if you want them visible on third-party screenshot tools.
// block-out-from "screencast" // block-out-from "screencast"
} }
// Example: enable rounded corners for all windows. layer-rule {
// (This example rule is commented out with a "/-" in front.) match namespace="^launcher$"
shadow {
on
}
// Fuzzel defaults to 10 px rounded corners.
// geometry-corner-radius 10
}
// 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 geometry-corner-radius 12
clip-to-geometry true clip-to-geometry true
} }
environment { environment {
QT_QPA_PLATFORM "wayland" QT_QPA_PLATFORM "wayland"
DISPLAY null DISPLAY ":0"
ELECTRON_OZONE_PLATFORM_HINT "auto" ELECTRON_OZONE_PLATFORM_HINT "auto"
OZONE_PLATFORM "wayland" OZONE_PLATFORM "wayland"
QT_QPA_PLATFORM "wayland" QT_QPA_PLATFORM "wayland"
@ -251,6 +268,9 @@ environment {
cursor { cursor {
hide-when-typing hide-when-typing
} }
hotkey-overlay {
skip-at-startup
}
binds { binds {
// Keys consist of modifiers separated by + signs, followed by an XKB key name // Keys consist of modifiers separated by + signs, followed by an XKB key name
// in the end. To find an XKB name for a particular key, you may use a program // in the end. To find an XKB name for a particular key, you may use a program
@ -375,11 +395,11 @@ binds {
} }
// don't love these honestly // don't love these honestly
// TODO: Change smart-mouse to LGUI on keyboard? // TODO: Change smart-mouse to LGUI on keyboard?
Mod+Ctrl+Left { Mod+Comma {
focus-monitor-left focus-monitor-left
} }
Mod+Ctrl+Down { Mod+Period {
focus-monitor-down focus-monitor-right
} }
Mod+Ctrl+Up { Mod+Ctrl+Up {
focus-monitor-up focus-monitor-up
@ -408,10 +428,10 @@ binds {
Mod+Shift+Ctrl+Up { Mod+Shift+Ctrl+Up {
move-column-to-monitor-up move-column-to-monitor-up
} }
Mod+Shift+Ctrl+Right { Mod+Shift+Period {
move-column-to-monitor-right move-column-to-monitor-right
} }
Mod+Shift+Ctrl+M { Mod+Shift+Comma {
move-column-to-monitor-left move-column-to-monitor-left
} }
Mod+Shift+Ctrl+N { Mod+Shift+Ctrl+N {
@ -436,10 +456,16 @@ binds {
focus-workspace-up focus-workspace-up
} }
Mod+L { Mod+L {
focus-monitor-left move-workspace-down
} }
Mod+U { Mod+U {
focus-monitor-right move-workspace-up
}
Mod+J {
move-workspace-to-monitor-left
}
Mod+Y {
move-workspace-to-monitor-right
} }
Mod+Ctrl+Page_Down { Mod+Ctrl+Page_Down {
move-column-to-workspace-down move-column-to-workspace-down
@ -474,6 +500,12 @@ binds {
// To avoid scrolling through workspaces really fast, you can use // To avoid scrolling through workspaces really fast, you can use
// the cooldown-ms property. The bind will be rate-limited to this value. // the cooldown-ms property. The bind will be rate-limited to this value.
// You can set a cooldown on any bind, but it's most useful for the wheel. // You can set a cooldown on any bind, but it's most useful for the wheel.
Mod+MouseForward {
focus-column-right
}
Mod+MouseBack {
focus-column-left
}
Mod+WheelScrollDown cooldown-ms=150 { Mod+WheelScrollDown cooldown-ms=150 {
focus-workspace-down focus-workspace-down
} }
@ -585,7 +617,7 @@ binds {
// 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+Shift+Tab { Alt+Tab {
focus-workspace-previous focus-workspace-previous
} }
// Adapt the sway-window-switcher and bind it here // Adapt the sway-window-switcher and bind it here
@ -599,11 +631,11 @@ binds {
consume-or-expel-window-right consume-or-expel-window-right
} }
// Consume one window from the right to the bottom of the focused column. // Consume one window from the right to the bottom of the focused column.
Mod+Comma { Mod+BraceLeft {
consume-window-into-column consume-window-into-column
} }
// Expel the bottom window from the focused column to the right. // Expel the bottom window from the focused column to the right.
Mod+Period { Mod+BraceRight {
expel-window-from-column expel-window-from-column
} }
Mod+R { Mod+R {
@ -670,6 +702,10 @@ binds {
// since it will switch twice upon pressing the hotkey (once by xkb, once by niri). // since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
// Mod+Space { switch-layout "next"; } // Mod+Space { switch-layout "next"; }
// Mod+Shift+Space { switch-layout "prev"; } // Mod+Shift+Space { switch-layout "prev"; }
// reload waybar
Mod+Shift+W {
spawn "systemctl" "--user" "restart" "waybar"
}
Mod+S { Mod+S {
screenshot screenshot
} }
@ -680,7 +716,10 @@ binds {
screenshot-window screenshot-window
} }
Mod+Alt+S { Mod+Alt+S {
spawn "~/scripts/recorder.sh" spawn "~/scripts/recorder.sh" "screen"
}
Mod+Shift+Alt+S {
spawn "~/scripts/recorder.sh" "region"
} }
Mod+Tab { Mod+Tab {
spawn "~/scripts/niri/window-picker.py" spawn "~/scripts/niri/window-picker.py"

View file

@ -1 +1 @@
config##hostname.dbox config##hostname.dpad