niri: use dms generated config files
This commit is contained in:
1
home/.config/niri/.gitignore
vendored
1
home/.config/niri/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
dms
|
||||
@@ -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
|
||||
}
|
||||
|
||||
5
home/.config/niri/dms/alttab.kdl
Normal file
5
home/.config/niri/dms/alttab.kdl
Normal file
@@ -0,0 +1,5 @@
|
||||
recent-windows {
|
||||
highlight {
|
||||
corner-radius 12
|
||||
}
|
||||
}
|
||||
55
home/.config/niri/dms/binds.kdl
Normal file
55
home/.config/niri/dms/binds.kdl
Normal file
@@ -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" "";
|
||||
}
|
||||
}
|
||||
36
home/.config/niri/dms/colors.kdl
Normal file
36
home/.config/niri/dms/colors.kdl
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
17
home/.config/niri/dms/layout.kdl
Normal file
17
home/.config/niri/dms/layout.kdl
Normal file
@@ -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
|
||||
}
|
||||
4
home/.config/niri/dms/wpblur.kdl
Normal file
4
home/.config/niri/dms/wpblur.kdl
Normal file
@@ -0,0 +1,4 @@
|
||||
layer-rule {
|
||||
match namespace="dms:blurwallpaper"
|
||||
place-within-backdrop true
|
||||
}
|
||||
Reference in New Issue
Block a user