Setup dms shell
This commit is contained in:
@@ -71,7 +71,7 @@ input {
|
||||
|
||||
// Focus windows and outputs automatically when moving the mouse into them.
|
||||
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
||||
// focus-follows-mouse max-scroll-amount="0%"
|
||||
focus-follows-mouse max-scroll-amount="50%"
|
||||
}
|
||||
|
||||
// You can configure outputs by their name, which you can find
|
||||
@@ -279,9 +279,8 @@ layout {
|
||||
// See the binds section below for more spawn examples.
|
||||
|
||||
// This line starts waybar, a commonly used bar for Wayland compositors.
|
||||
spawn-at-startup "waybar"
|
||||
spawn-at-startup "swaync"
|
||||
spawn-at-startup "swww-daemon"
|
||||
spawn-at-startup "bash" "-c" "wl-paste --watch cliphist store &" // For dms clipboard history
|
||||
spawn-at-startup "qs" "-c" "dms"
|
||||
// spawn-at-startup "kwalletd6"
|
||||
spawn-sh-at-startup "gnome-keyring-daemon -r -d"
|
||||
spawn-at-startup "vesktop"
|
||||
@@ -291,7 +290,7 @@ spawn-at-startup "vesktop"
|
||||
|
||||
hotkey-overlay {
|
||||
// Uncomment this line to disable the "Important Hotkeys" pop-up at startup.
|
||||
// skip-at-startup
|
||||
skip-at-startup
|
||||
}
|
||||
|
||||
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
|
||||
@@ -392,13 +391,36 @@ binds {
|
||||
// Most actions that you can bind here can also be invoked programmatically with
|
||||
// `niri msg action do-something`.
|
||||
|
||||
// #########
|
||||
// ## dms ##
|
||||
// #########
|
||||
|
||||
Mod+Space hotkey-overlay-title="Application Launcher" {
|
||||
spawn "qs" "-c" "dms" "ipc" "call" "spotlight" "toggle";
|
||||
}
|
||||
Mod+V hotkey-overlay-title="Clipboard Manager" {
|
||||
spawn "qs" "-c" "dms" "ipc" "call" "clipboard" "toggle";
|
||||
}
|
||||
Mod+P hotkey-overlay-title="Notepad" {
|
||||
spawn "qs" "-c" "dms" "ipc" "call" "notepad" "toggle";
|
||||
}
|
||||
xF86AudioPlay {
|
||||
spawn-sh "qs -c dms ipc call mpris playPause";
|
||||
}
|
||||
xF86AudioNext {
|
||||
spawn-sh "qs -c dms ipc call mpris next";
|
||||
}
|
||||
xF86AudioPrev {
|
||||
spawn-sh "qs -c dms ipc call mpris previous";
|
||||
}
|
||||
|
||||
// Mod-Shift-/, which is usually the same as Mod-?,
|
||||
// shows a list of important hotkeys.
|
||||
Mod+Shift+S { show-hotkey-overlay; }
|
||||
|
||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+Return hotkey-overlay-title="Open a Terminal: GhosTTY" { spawn "ghostty"; }
|
||||
Mod+Space hotkey-overlay-title="Run an Application: wofi" { spawn-sh "wofi --show drun"; }
|
||||
// Mod+Space hotkey-overlay-title="Run an Application: wofi" { spawn-sh "wofi --show drun"; }
|
||||
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||
Mod+E hotkey-overlay-title="Open file manager: Dolphin" { spawn "dolphin"; }
|
||||
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
|
||||
@@ -417,7 +439,7 @@ binds {
|
||||
// Example brightness key mappings for brightnessctl.
|
||||
// You can use regular spawn with multiple arguments too (to avoid going through "sh"),
|
||||
// but you need to manually put each argument in separate "" quotes.
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+10%"; }
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "10%+"; }
|
||||
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "10%-"; }
|
||||
|
||||
// Open/close the Overview: a zoomed-out view of workspaces and windows.
|
||||
@@ -572,9 +594,9 @@ binds {
|
||||
Mod+BracketRight { consume-or-expel-window-right; }
|
||||
|
||||
// Consume one window from the right to the bottom of the focused column.
|
||||
Mod+Comma { consume-window-into-column; }
|
||||
// Mod+Comma { consume-window-into-column; }
|
||||
// Expel the bottom window from the focused column to the right.
|
||||
Mod+Period { expel-window-from-column; }
|
||||
// Mod+Period { expel-window-from-column; }
|
||||
|
||||
Mod+R { switch-preset-column-width; }
|
||||
// Cycling through the presets in reverse order is also possible.
|
||||
@@ -609,8 +631,8 @@ binds {
|
||||
Mod+Shift+Plus { set-window-height "+10%"; }
|
||||
|
||||
// Move the focused window between the floating and the tiling layout.
|
||||
Mod+V { toggle-window-floating; }
|
||||
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
|
||||
Mod+X { toggle-window-floating; }
|
||||
Mod+Shift+X { switch-focus-between-floating-and-tiling; }
|
||||
|
||||
// Toggle tabbed column display mode.
|
||||
// Windows in this column will appear as vertical tabs,
|
||||
|
||||
5
niri/.config/niri/dms/alttab.kdl
Normal file
5
niri/.config/niri/dms/alttab.kdl
Normal file
@@ -0,0 +1,5 @@
|
||||
recent-windows {
|
||||
highlight {
|
||||
corner-radius 12
|
||||
}
|
||||
}
|
||||
36
niri/.config/niri/dms/colors.kdl
Normal file
36
niri/.config/niri/dms/colors.kdl
Normal file
@@ -0,0 +1,36 @@
|
||||
layout {
|
||||
background-color "transparent"
|
||||
|
||||
focus-ring {
|
||||
active-color "#e91e63"
|
||||
inactive-color "#9f8c8e"
|
||||
urgent-color "#f2b8b5"
|
||||
}
|
||||
|
||||
border {
|
||||
active-color "#e91e63"
|
||||
inactive-color "#9f8c8e"
|
||||
urgent-color "#f2b8b5"
|
||||
}
|
||||
|
||||
shadow {
|
||||
color "#00000070"
|
||||
}
|
||||
|
||||
tab-indicator {
|
||||
active-color "#e91e63"
|
||||
inactive-color "#9f8c8e"
|
||||
urgent-color "#f2b8b5"
|
||||
}
|
||||
|
||||
insert-hint {
|
||||
color "#e91e6380"
|
||||
}
|
||||
}
|
||||
|
||||
recent-windows {
|
||||
highlight {
|
||||
active-color "#4a0e2f"
|
||||
urgent-color "#f2b8b5"
|
||||
}
|
||||
}
|
||||
17
niri/.config/niri/dms/layout.kdl
Normal file
17
niri/.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
niri/.config/niri/dms/wpblur.kdl
Normal file
4
niri/.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