diff --git a/home/.config/niri/.gitignore b/home/.config/niri/.gitignore deleted file mode 100644 index 6d4140c..0000000 --- a/home/.config/niri/.gitignore +++ /dev/null @@ -1 +0,0 @@ -dms diff --git a/home/.config/niri/config.kdl b/home/.config/niri/config.kdl index b9bd548..3283fc2 100644 --- a/home/.config/niri/config.kdl +++ b/home/.config/niri/config.kdl @@ -1,3 +1,9 @@ +include "dms/alttab.kdl" +include "dms/binds.kdl" +include "dms/colors.kdl" +include "dms/layout.kdl" +include "dms/wpblur.kdl" + input { keyboard { xkb { @@ -55,39 +61,6 @@ layout { // You can change the default width of the new windows. default-column-width { proportion 0.5; } // If you leave the brackets empty, the windows themselves will decide their initial width. - - // You can change how the focus ring looks. - focus-ring { - off - // How many logical pixels the ring extends out from the windows. - width 3 - - // Color of the ring on the active monitor. - active-color "#101010" - - // Color of the ring on inactive monitors. - inactive-color "#505050" - } - - border { - width 2 - - // Color of the ring on the active monitor. - // active-color "#3d5f77" - active-color "#101010" - - // Color of the ring on inactive monitors. - inactive-color "#101010" - } - - shadow { - // on - softness 10 - spread 5 - offset x=0 y=0 - draw-behind-window true - color "#00000070" - } } prefer-no-csd @@ -121,12 +94,6 @@ window-rule { open-floating true } -// Enable rounded corners for all windows. -window-rule { - geometry-corner-radius 10 - clip-to-geometry true -} - 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 @@ -147,14 +114,6 @@ binds { Mod+D { spawn "vicinae" "toggle"; } Super+Alt+L hotkey-overlay-title="Lock session" { spawn "loginctl" "lock-session"; } - XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; } - XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-"; } - XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } - XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } - - XF86MonBrightnessUp allow-when-locked=true { spawn "dms" "ipc" "call" "brightness" "increment" "5" ""; } - XF86MonBrightnessDown allow-when-locked=true { spawn "dms" "ipc" "call" "brightness" "decrement" "5" ""; } - XF86AudioPlay { spawn "playerctl" "play-pause"; } XF86AudioNext { spawn "playerctl" "next"; } XF86AudioPrev { spawn "playerctl" "previous"; } @@ -348,8 +307,3 @@ environment { hotkey-overlay { skip-at-startup } - -layer-rule { - match namespace="dms:blurwallpaper" - place-within-backdrop true -} diff --git a/home/.config/niri/dms/alttab.kdl b/home/.config/niri/dms/alttab.kdl new file mode 100644 index 0000000..91d8337 --- /dev/null +++ b/home/.config/niri/dms/alttab.kdl @@ -0,0 +1,5 @@ +recent-windows { + highlight { + corner-radius 12 + } +} diff --git a/home/.config/niri/dms/binds.kdl b/home/.config/niri/dms/binds.kdl new file mode 100644 index 0000000..5f116ed --- /dev/null +++ b/home/.config/niri/dms/binds.kdl @@ -0,0 +1,55 @@ +binds { + Mod+Shift+D hotkey-overlay-title="Application Launcher" { + spawn "dms" "ipc" "call" "spotlight" "toggle"; + } + + Mod+V hotkey-overlay-title="Clipboard Manager" { + spawn "dms" "ipc" "call" "clipboard" "toggle"; + } + + Mod+M hotkey-overlay-title="Task Manager" { + spawn "dms" "ipc" "call" "processlist" "toggle"; + } + + Mod+Comma hotkey-overlay-title="Settings" { + spawn "dms" "ipc" "call" "settings" "toggle"; + } + + Mod+N hotkey-overlay-title="Notification Center" { + spawn "dms" "ipc" "call" "notifications" "toggle"; + } + + Mod+Shift+N hotkey-overlay-title="Notepad" { + spawn "dms" "ipc" "call" "notepad" "toggle"; + } + + Mod+Alt+L hotkey-overlay-title="Lock Screen" { + spawn "dms" "ipc" "call" "lock" "lock"; + } + + Ctrl+Alt+Delete hotkey-overlay-title="Task Manager" { + spawn "dms" "ipc" "call" "processlist" "toggle"; + } + + // Audio + XF86AudioRaiseVolume allow-when-locked=true { + spawn "dms" "ipc" "call" "audio" "increment" "3"; + } + XF86AudioLowerVolume allow-when-locked=true { + spawn "dms" "ipc" "call" "audio" "decrement" "3"; + } + XF86AudioMute allow-when-locked=true { + spawn "dms" "ipc" "call" "audio" "mute"; + } + XF86AudioMicMute allow-when-locked=true { + spawn "dms" "ipc" "call" "audio" "micmute"; + } + + // BL + XF86MonBrightnessUp allow-when-locked=true { + spawn "dms" "ipc" "call" "brightness" "increment" "5" ""; + } + XF86MonBrightnessDown allow-when-locked=true { + spawn "dms" "ipc" "call" "brightness" "decrement" "5" ""; + } +} \ No newline at end of file diff --git a/home/.config/niri/dms/colors.kdl b/home/.config/niri/dms/colors.kdl new file mode 100644 index 0000000..2c7487f --- /dev/null +++ b/home/.config/niri/dms/colors.kdl @@ -0,0 +1,36 @@ +layout { + background-color "transparent" + + focus-ring { + active-color "#5c5891" + inactive-color "#787680" + urgent-color "#ba1a1a" + } + + border { + active-color "#5c5891" + inactive-color "#787680" + urgent-color "#ba1a1a" + } + + shadow { + color "#00000070" + } + + tab-indicator { + active-color "#5c5891" + inactive-color "#787680" + urgent-color "#ba1a1a" + } + + insert-hint { + color "#5c589180" + } +} + +recent-windows { + highlight { + active-color "#444078" + urgent-color "#ba1a1a" + } +} diff --git a/home/.config/niri/dms/layout.kdl b/home/.config/niri/dms/layout.kdl new file mode 100644 index 0000000..36c08f3 --- /dev/null +++ b/home/.config/niri/dms/layout.kdl @@ -0,0 +1,17 @@ +layout { + gaps 4 + + 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 +} diff --git a/home/.config/niri/dms/wpblur.kdl b/home/.config/niri/dms/wpblur.kdl new file mode 100644 index 0000000..667042f --- /dev/null +++ b/home/.config/niri/dms/wpblur.kdl @@ -0,0 +1,4 @@ +layer-rule { + match namespace="dms:blurwallpaper" + place-within-backdrop true +}