diff --git a/.config/ghostty/config b/.config/ghostty/config index 64315017..cb232026 120000 --- a/.config/ghostty/config +++ b/.config/ghostty/config @@ -1 +1 @@ -config##hostname.dbox \ No newline at end of file +config##hostname.dpad \ No newline at end of file diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index 3f04ff08..067de165 120000 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -1 +1 @@ -kitty.conf##hostname.dbox \ No newline at end of file +kitty.conf##hostname.dpad \ No newline at end of file diff --git a/.config/niri/config.kdl##hostname.dpad b/.config/niri/config.kdl##hostname.dpad index 10fcc9e1..d2ba39d4 100644 --- a/.config/niri/config.kdl##hostname.dpad +++ b/.config/niri/config.kdl##hostname.dpad @@ -1,3 +1,4 @@ +workspace "music" // This config is in the KDL format: https://kdl.dev // "/-" comments out the following node. // 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. // Find more information on the wiki: // 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 { // Set gaps around windows in logical pixels. gaps 16 @@ -68,6 +72,7 @@ layout { // - "on-overflow", focusing a column will center it if it doesn't fit // together with the previously focused column. center-focused-column "never" + // /-always-center-single-column // You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between. preset-column-widths { // 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. // spawn-at-startup "alacritty" "-e" "fish" spawn-at-startup "dunst" "&" +spawn-at-startup "xwayland-satellite" // 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. // 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 // Work around WezTerm's initial configure bug // by setting an empty default-column-width. +window-rule { + match app-id="^spotify$" + open-on-workspace "music" +} window-rule { // This regular expression is intentionally made as specific as possible, // 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. // block-out-from "screencast" } -// Example: enable rounded corners for all windows. -// (This example rule is commented out with a "/-" in front.) +layer-rule { + 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 { geometry-corner-radius 12 clip-to-geometry true } environment { QT_QPA_PLATFORM "wayland" - DISPLAY null + DISPLAY ":0" ELECTRON_OZONE_PLATFORM_HINT "auto" OZONE_PLATFORM "wayland" QT_QPA_PLATFORM "wayland" @@ -251,6 +268,9 @@ environment { cursor { hide-when-typing } +hotkey-overlay { + skip-at-startup +} binds { // 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 @@ -375,11 +395,11 @@ binds { } // don't love these honestly // TODO: Change smart-mouse to LGUI on keyboard? - Mod+Ctrl+Left { + Mod+Comma { focus-monitor-left } - Mod+Ctrl+Down { - focus-monitor-down + Mod+Period { + focus-monitor-right } Mod+Ctrl+Up { focus-monitor-up @@ -408,10 +428,10 @@ binds { Mod+Shift+Ctrl+Up { move-column-to-monitor-up } - Mod+Shift+Ctrl+Right { + Mod+Shift+Period { move-column-to-monitor-right } - Mod+Shift+Ctrl+M { + Mod+Shift+Comma { move-column-to-monitor-left } Mod+Shift+Ctrl+N { @@ -436,10 +456,16 @@ binds { focus-workspace-up } Mod+L { - focus-monitor-left + move-workspace-down } 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 { move-column-to-workspace-down @@ -474,6 +500,12 @@ binds { // To avoid scrolling through workspaces really fast, you can use // 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. + Mod+MouseForward { + focus-column-right + } + Mod+MouseBack { + focus-column-left + } Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down } @@ -585,7 +617,7 @@ binds { // Alternatively, there are commands to move just a single window: // Mod+Ctrl+1 { move-window-to-workspace 1; } // Switches focus between the current and the previous workspace. - Mod+Shift+Tab { + Alt+Tab { focus-workspace-previous } // Adapt the sway-window-switcher and bind it here @@ -599,11 +631,11 @@ binds { consume-or-expel-window-right } // Consume one window from the right to the bottom of the focused column. - Mod+Comma { + Mod+BraceLeft { consume-window-into-column } // Expel the bottom window from the focused column to the right. - Mod+Period { + Mod+BraceRight { expel-window-from-column } Mod+R { @@ -670,6 +702,10 @@ binds { // since it will switch twice upon pressing the hotkey (once by xkb, once by niri). // Mod+Space { switch-layout "next"; } // Mod+Shift+Space { switch-layout "prev"; } + // reload waybar + Mod+Shift+W { + spawn "systemctl" "--user" "restart" "waybar" + } Mod+S { screenshot } @@ -680,7 +716,10 @@ binds { screenshot-window } Mod+Alt+S { - spawn "~/scripts/recorder.sh" + spawn "~/scripts/recorder.sh" "screen" + } + Mod+Shift+Alt+S { + spawn "~/scripts/recorder.sh" "region" } Mod+Tab { spawn "~/scripts/niri/window-picker.py" diff --git a/.config/sway/config b/.config/sway/config index 64315017..cb232026 120000 --- a/.config/sway/config +++ b/.config/sway/config @@ -1 +1 @@ -config##hostname.dbox \ No newline at end of file +config##hostname.dpad \ No newline at end of file