normalize config for niri
This commit is contained in:
1 parent
e32d61fb03
commit
7c2fccf064
32 files changed
+27
-5
No files matched your search
@@ -0,0 +1,10 @@
|
||||
// ! DO NOT EDIT !
|
||||
// ! AUTO-GENERATED BY DMS !
|
||||
// ! CHANGES WILL BE OVERWRITTEN !
|
||||
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
|
||||
|
||||
recent-windows {
|
||||
highlight {
|
||||
corner-radius 12
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
// =========================
|
||||
// Shared Keybindings
|
||||
// =========================
|
||||
// Common keybindings across all desktop environments
|
||||
|
||||
binds {
|
||||
// =========================
|
||||
// General
|
||||
// =========================
|
||||
Mod+Shift+H { show-hotkey-overlay; }
|
||||
Mod+T { spawn "ghostty"; }
|
||||
Mod+A { spawn "ghostty" "-e" "pi"; }
|
||||
Mod+Z { spawn "flatpak" "run" "app.zen_browser.zen"; }
|
||||
Mod+B { spawn "chromium"; }
|
||||
Mod+E { spawn "wofi-emoji"; }
|
||||
Mod+Q { close-window; }
|
||||
|
||||
// =========================
|
||||
// Navigation
|
||||
// =========================
|
||||
Mod+Left { focus-column-left; }
|
||||
Mod+Down { focus-workspace-down; }
|
||||
Mod+Up { focus-workspace-up; }
|
||||
Mod+Right { focus-column-right; }
|
||||
|
||||
Mod+Tab { toggle-overview; }
|
||||
Mod+Shift+Tab { focus-monitor-next; }
|
||||
|
||||
// =========================
|
||||
// Window Management
|
||||
// =========================
|
||||
Mod+Ctrl+Right { swap-window-right; }
|
||||
Mod+Ctrl+Left { swap-window-left; }
|
||||
Mod+Ctrl+Up { move-window-to-workspace-up; }
|
||||
Mod+Ctrl+Down { move-window-to-workspace-down; }
|
||||
|
||||
Mod+W { toggle-column-tabbed-display; }
|
||||
Mod+F { maximize-column; }
|
||||
Mod+Shift+F { fullscreen-window; }
|
||||
Mod+Ctrl+F { reset-window-height; }
|
||||
Mod+V { toggle-window-floating; }
|
||||
Mod+C { center-column; }
|
||||
|
||||
// =========================
|
||||
// Resizing
|
||||
// =========================
|
||||
Mod+Minus { set-column-width "-10%"; }
|
||||
Mod+Equal { set-column-width "+10%"; }
|
||||
Mod+Shift+Minus { set-window-height "-10%"; }
|
||||
Mod+Shift+Equal { set-window-height "+10%"; }
|
||||
|
||||
// =========================
|
||||
// Screenshots & Recording
|
||||
// =========================
|
||||
Print { spawn "sh" "-c" "dms screenshot --stdout | satty -f -"; }
|
||||
Mod+P { spawn "sh" "-c" "dms screenshot --stdout | satty -f -"; }
|
||||
Mod+R { spawn "/home/ari/.config/niri/screen-record.sh"; }
|
||||
Mod+M { spawn "nu" "~/.config/hypr/speak-selection.nu"; }
|
||||
|
||||
// =========================
|
||||
// Misc
|
||||
// =========================
|
||||
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
||||
|
||||
// =========================
|
||||
// Monitor Movement
|
||||
// =========================
|
||||
Mod+Alt+Down hotkey-overlay-title="Move to Monitor Down" { move-column-to-monitor-down; }
|
||||
Mod+Alt+Left hotkey-overlay-title="Move to Monitor Left" { move-column-to-monitor-left; }
|
||||
Mod+Alt+Right hotkey-overlay-title="Move to Monitor Right" { move-column-to-monitor-right; }
|
||||
Mod+Alt+Up hotkey-overlay-title="Move to Monitor Up" { move-column-to-monitor-up; }
|
||||
|
||||
Mod+TouchpadScrollUp hotkey-overlay-title="Move Workspace to Monitor Down" { move-workspace-to-monitor-down; }
|
||||
Mod+TouchpadScrollRight hotkey-overlay-title="Move Workspace to Monitor Left" { move-workspace-to-monitor-left; }
|
||||
Mod+TouchpadScrollLeft hotkey-overlay-title="Move Workspace to Monitor Right" { move-workspace-to-monitor-right; }
|
||||
Mod+TouchpadScrollDown hotkey-overlay-title="Move Workspace to Monitor Up" { move-workspace-to-monitor-up; }
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// ! Auto-generated file. Do not edit directly.
|
||||
// Remove `include "dms/colors.kdl"` from your config to override.
|
||||
|
||||
layout {
|
||||
background-color "transparent"
|
||||
|
||||
focus-ring {
|
||||
active-color "#ff6d00"
|
||||
inactive-color "#a08d85"
|
||||
urgent-color "#f2b8b5"
|
||||
}
|
||||
|
||||
border {
|
||||
active-color "#ff6d00"
|
||||
inactive-color "#a08d85"
|
||||
urgent-color "#f2b8b5"
|
||||
}
|
||||
|
||||
shadow {
|
||||
color "#00000070"
|
||||
}
|
||||
|
||||
tab-indicator {
|
||||
active-color "#ff6d00"
|
||||
inactive-color "#a08d85"
|
||||
urgent-color "#f2b8b5"
|
||||
}
|
||||
|
||||
insert-hint {
|
||||
color "#ff6d0080"
|
||||
}
|
||||
}
|
||||
|
||||
recent-windows {
|
||||
highlight {
|
||||
active-color "#3e2723"
|
||||
urgent-color "#f2b8b5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// ! DO NOT EDIT !
|
||||
// ! AUTO-GENERATED BY DMS !
|
||||
// ! CHANGES WILL BE OVERWRITTEN !
|
||||
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
|
||||
|
||||
cursor {
|
||||
xcursor-theme "Adwaita"
|
||||
xcursor-size 24
|
||||
hide-when-typing
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
// =========================
|
||||
// DMS General Configuration
|
||||
// =========================
|
||||
|
||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Input
|
||||
input {
|
||||
touchpad {
|
||||
tap
|
||||
natural-scroll
|
||||
}
|
||||
|
||||
// Absolute map for the built-in panel (scale 1.5). Without this, touch
|
||||
// can miss windows when logical/physical sizes diverge.
|
||||
touch {
|
||||
map-to-output "eDP-1"
|
||||
}
|
||||
}
|
||||
|
||||
overview {
|
||||
backdrop-color "#777777"
|
||||
}
|
||||
|
||||
environment {
|
||||
QT_QPA_PLATFORM "wayland"
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION "1"
|
||||
NIXOS_OZONE_WL "1"
|
||||
DISPLAY ":0"
|
||||
ELECTRON_OZONE_PLATFORM_HINT "auto"
|
||||
}
|
||||
|
||||
// =========================
|
||||
// Screenshots
|
||||
// =========================
|
||||
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||
|
||||
// =========================
|
||||
// System Events
|
||||
// =========================
|
||||
switch-events {
|
||||
lid-close { spawn "notify-send" "The laptop lid is closed!"; }
|
||||
lid-open { spawn "notify-send" "The laptop lid is open!"; }
|
||||
}
|
||||
|
||||
hotkey-overlay {
|
||||
skip-at-startup
|
||||
}
|
||||
|
||||
gestures {
|
||||
dnd-edge-view-scroll {
|
||||
trigger-width 30
|
||||
delay-ms 100
|
||||
max-speed 1500
|
||||
}
|
||||
|
||||
dnd-edge-workspace-switch {
|
||||
trigger-height 50
|
||||
delay-ms 100
|
||||
max-speed 1500
|
||||
}
|
||||
|
||||
hot-corners {
|
||||
off
|
||||
}
|
||||
}
|
||||
|
||||
debug {
|
||||
honor-xdg-activation-with-invalid-serial
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// =========================
|
||||
// Shared Configuration Index
|
||||
// =========================
|
||||
// General purpose configuration shared across all DM setups
|
||||
|
||||
include "./general.kdl"
|
||||
include "./outputs.kdl"
|
||||
include "./cursor.kdl"
|
||||
include "./colors.kdl"
|
||||
include "./layout.kdl"
|
||||
include "./alttab.kdl"
|
||||
include "./wpblur.kdl"
|
||||
include "./windowrules.kdl"
|
||||
include "./binds.kdl"
|
||||
include "./startup.kdl"
|
||||
@@ -0,0 +1,17 @@
|
||||
layout {
|
||||
gaps 5
|
||||
|
||||
border {
|
||||
width 2
|
||||
}
|
||||
|
||||
focus-ring {
|
||||
width 2
|
||||
}
|
||||
}
|
||||
window-rule {
|
||||
geometry-corner-radius 12
|
||||
clip-to-geometry true
|
||||
tiled-state true
|
||||
draw-border-with-background false
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
// Laptop Monitor
|
||||
output "eDP-1" {
|
||||
mode "2256x1504@59.999"
|
||||
scale 1.5
|
||||
position x=859 y=1080
|
||||
}
|
||||
|
||||
// Work Monitor
|
||||
output "Ancor Communications Inc ASUS VE278 E5LMTF016849" {
|
||||
mode "1920x1080@60.000"
|
||||
scale 1
|
||||
position x=1027 y=0
|
||||
}
|
||||
|
||||
output "DP-9" {
|
||||
mode "1920x1080@74.973"
|
||||
scale 1
|
||||
position x=0 y=0
|
||||
}
|
||||
|
||||
output "Samsung Electric Company S22R35x H4TR604392" {
|
||||
mode "1920x1080@60.000"
|
||||
scale 1
|
||||
position x=106 y=0
|
||||
}
|
||||
|
||||
|
||||
output "DP-10" {
|
||||
mode "1920x1080@74.973"
|
||||
scale 1
|
||||
position x=1920 y=0
|
||||
}
|
||||
|
||||
output "Samsung Electric Company S22R35x H4TR503886" {
|
||||
mode "1920x1080@60.000"
|
||||
scale 1
|
||||
position x=2026 y=0
|
||||
}
|
||||
|
||||
output "PNP(GWD) ARZOPA \\x15\\xd9F\\x1675US0000" {
|
||||
mode "1920x1080@60.000"
|
||||
scale 1
|
||||
transform "normal"
|
||||
position x=2860 y=1080
|
||||
}
|
||||
|
||||
output "DP-2" {
|
||||
mode "1920x1080@60.000"
|
||||
scale 1
|
||||
position x=3115 y=1504
|
||||
}
|
||||
|
||||
output "Dell Inc. DELL SE3223Q 1WDWKK3" {
|
||||
scale 2
|
||||
position x=4780 y=0
|
||||
}
|
||||
|
||||
output "Dell Inc. DELL SE3223Q 1TRXKK3" {
|
||||
scale 2
|
||||
position x=6700 y=0
|
||||
}
|
||||
Whitespace-only changes.
@@ -0,0 +1,94 @@
|
||||
// DMS Window Rules - Managed by DankMaterialShell
|
||||
// Do not edit manually - changes may be overwritten
|
||||
|
||||
// @id=dms_rule_0 @name=
|
||||
window-rule {
|
||||
match app-id="^signal$"
|
||||
open-focused true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="zoom"
|
||||
open-floating true
|
||||
open-focused true
|
||||
default-column-width { proportion 0.75; }
|
||||
default-window-height { proportion 0.8; }
|
||||
}
|
||||
|
||||
|
||||
// @id=dms_rule_1 @name=
|
||||
window-rule {
|
||||
match app-id="org.pipewire.Helvum"
|
||||
open-floating true
|
||||
open-focused true
|
||||
default-column-width { proportion 0.75; }
|
||||
default-window-height { proportion 0.8; }
|
||||
}
|
||||
|
||||
// @id=dms_rule_2 @name=Slack Huddle Rules
|
||||
window-rule {
|
||||
match app-id="Slack" title="$Huddle:.*"
|
||||
open-floating true
|
||||
open-focused true
|
||||
default-column-width { proportion 0.25; }
|
||||
default-window-height { proportion 0.5; }
|
||||
}
|
||||
|
||||
// @id=dms_rule_3 @name=
|
||||
window-rule {
|
||||
match app-id="remote-viewer"
|
||||
open-maximized true
|
||||
open-fullscreen true
|
||||
open-focused true
|
||||
}
|
||||
|
||||
// @id=dms_rule_4 @name=
|
||||
window-rule {
|
||||
match is-active=false
|
||||
opacity 0.85
|
||||
}
|
||||
|
||||
// @id=dms_rule_5 @name=
|
||||
window-rule {
|
||||
match is-urgent=true
|
||||
open-focused true
|
||||
}
|
||||
|
||||
// @id=dms_rule_6 @name=
|
||||
window-rule {
|
||||
match app-id="satty"
|
||||
open-floating true
|
||||
open-focused true
|
||||
default-column-width { proportion 0.75; }
|
||||
default-window-height { proportion 0.75; }
|
||||
min-width 800
|
||||
min-height 400
|
||||
}
|
||||
|
||||
// @id=dms_rule_7 @name=
|
||||
window-rule {
|
||||
match app-id="org.shotcut.Shotcut"
|
||||
opacity 0.95
|
||||
open-maximized true
|
||||
open-focused true
|
||||
}
|
||||
|
||||
// @id=dms_rule_8 @name=
|
||||
window-rule {
|
||||
match app-id="Sparrow"
|
||||
block-out-from "screen-capture"
|
||||
focus-ring { active-color "#f00f"; }
|
||||
}
|
||||
|
||||
// @id=dms_rule_9 @name=
|
||||
window-rule {
|
||||
match app-id="Sparrow" title="Bitwarden" is-focused=false
|
||||
opacity 0.45
|
||||
}
|
||||
|
||||
// @id=dms_rule_10 @name=
|
||||
window-rule {
|
||||
match app-id="^com.slack.Slack$"
|
||||
clip-to-geometry true
|
||||
border { active-color "#0f0f"; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// ! DO NOT EDIT !
|
||||
// ! AUTO-GENERATED BY DMS !
|
||||
// ! CHANGES WILL BE OVERWRITTEN !
|
||||
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
|
||||
|
||||
layer-rule {
|
||||
match namespace="dms:blurwallpaper"
|
||||
place-within-backdrop true
|
||||
}
|
||||
Reference in new issue
Block a user