update.
- supress fuzzel runtime warning - make use of `gtklock` (still some issues on `swayidle`) - automatic init kwallet - misc keyboard bindings (and re-implements) - sorry for definition messup (
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[main]
|
||||
anchor = top
|
||||
font = MonacoNerdFontMono:size=13
|
||||
;dpi-aware = no
|
||||
#dpi-aware = no
|
||||
terminal = foot
|
||||
y-margin = 16
|
||||
width = 60
|
||||
|
||||
@@ -120,15 +120,28 @@ layout {
|
||||
}
|
||||
}
|
||||
|
||||
spawn-at-startup "waybar"
|
||||
spawn-at-startup "swww-daemon"
|
||||
spawn-at-startup "swww-daemon" "--namespace" "blur"
|
||||
spawn-at-startup "xwayland-satellite"
|
||||
hotkey-overlay {
|
||||
skip-at-startup
|
||||
}
|
||||
|
||||
environment {
|
||||
DISPLAY ":0"
|
||||
//QT_QPA_PLATFORMTHEME "qt6ct"
|
||||
ELECTRON_OZONE_PLATFORM_HINT "auto"
|
||||
layer-rule {
|
||||
match namespace="^swww-daemonblur$"
|
||||
place-within-backdrop true
|
||||
}
|
||||
|
||||
overview {
|
||||
backdrop-color "#26233a"
|
||||
zoom 0.5
|
||||
}
|
||||
|
||||
switch-events {
|
||||
lid-close { spawn "bash" "-c" "swaylock" "&&" "systemctl" "suspend"; }
|
||||
}
|
||||
|
||||
gestures {
|
||||
hot-corners {
|
||||
off
|
||||
}
|
||||
}
|
||||
|
||||
prefer-no-csd
|
||||
@@ -180,7 +193,6 @@ animations {
|
||||
}
|
||||
}
|
||||
|
||||
// from common to specific.
|
||||
window-rule {
|
||||
geometry-corner-radius 6
|
||||
clip-to-geometry true
|
||||
@@ -195,8 +207,9 @@ window-rule {
|
||||
|
||||
window-rule {
|
||||
match title="^(图片查看器|.*记录)$" app-id="QQ"
|
||||
//match title="图片查看器" app-id="QQ"
|
||||
//match app-id="^(lxqt-.*|pavu.*|.*portal-lxqt|.*gwenview|mpv)$"
|
||||
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
||||
match app-id=r#"^org\.kde\.ksecretd$"#
|
||||
open-floating true
|
||||
}
|
||||
|
||||
@@ -204,6 +217,7 @@ window-rule {
|
||||
match title=r#"Code - OSS$"#
|
||||
match title=r#"Visual Studio Code$"#
|
||||
match app-id=r#"^code"#
|
||||
match app-id=r#"firefox$"#
|
||||
open-maximized true
|
||||
}
|
||||
|
||||
@@ -215,11 +229,17 @@ window-rule {
|
||||
open-on-output "HDMI-A-1"
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
||||
spawn-at-startup "waybar"
|
||||
spawn-at-startup "swww-daemon"
|
||||
spawn-at-startup "swww-daemon" "--namespace" "blur"
|
||||
spawn-at-startup "xwayland-satellite"
|
||||
spawn-at-startup "/usr/lib/pam_kwallet_init"
|
||||
//spawn-at-startup "swayidle -w timeout 300 'gtklock -d' timeout 1200 'niri msg action power-off-monitors' before-sleep 'pgrep gtklock || gtklock -d'"
|
||||
|
||||
open-floating true
|
||||
environment {
|
||||
DISPLAY ":0"
|
||||
//QT_QPA_PLATFORMTHEME "qt6ct"
|
||||
ELECTRON_OZONE_PLATFORM_HINT "auto"
|
||||
}
|
||||
|
||||
binds {
|
||||
@@ -230,22 +250,30 @@ binds {
|
||||
|
||||
Mod+Return hotkey-overlay-title="Terminal (foot)" { spawn "foot"; }
|
||||
Mod+F9 hotkey-overlay-title="Browser (firefox)" { spawn "firefox"; }
|
||||
Mod+F11 hotkey-overlay-title="Explorer (yazi)" { spawn "foot" "yazi"; }
|
||||
Mod+E hotkey-overlay-title="Explorer (yazi)" { spawn "foot" "yazi"; }
|
||||
//Shift+Mod+Return hotkey-overlay-title="Steam" { spawn "steam"; }
|
||||
|
||||
// TODO: fuzzel organize my projects
|
||||
Mod+Space hotkey-overlay-title="Open Projects ... (VSCode)" { spawn "fuzzel"; }
|
||||
// TODO: implement wmenu-run
|
||||
//Mod+Alt+R hotkey-overlay-title="Run a command" { spawn "rofi" "-show" "run"; }
|
||||
// TODO: try gtklock
|
||||
//Super+Escape hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||
Mod+F12 hotkey-overlay-title="Open Projects ... (VSCode)" { spawn "~/.local/bin/fuzzel-vsc-entries.ps1"; }
|
||||
Mod+Space hotkey-overlay-title="Run a command ... (fuzzel)" { spawn "~/.local/bin/fuzzel-win+r.ps1"; }
|
||||
|
||||
// Applications such as remote-desktop clients and software KVM switches may
|
||||
// request that niri stops processing the keyboard shortcuts defined here
|
||||
// so they may, for example, forward the key presses as-is to a remote machine.
|
||||
// It's a good idea to bind an escape hatch to toggle the inhibitor,
|
||||
// so a buggy application can't hold your session hostage.
|
||||
//
|
||||
// The allow-inhibiting=false property can be applied to other binds as well,
|
||||
// which ensures niri always processes them, even when an inhibitor is active.
|
||||
Mod+Alt+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
||||
Mod+Shift+Escape hotkey-overlay-title="Exit niri" { quit; }
|
||||
Super+Escape hotkey-overlay-title="Lock the Screen (gtklock)" { spawn "gtklock"; }
|
||||
XF86PowerOff hotkey-overlay-title="Lock screen and Hibernate ..." { spawn-sh "gtklock -d && sleep 3 && systemctl hibernate"; }
|
||||
|
||||
XF86AudioRaiseVolume hotkey-overlay-title=null allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.01+"; }
|
||||
XF86AudioLowerVolume hotkey-overlay-title=null allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.01-"; }
|
||||
XF86AudioMute hotkey-overlay-title=null allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
||||
XF86AudioMicMute hotkey-overlay-title=null allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
||||
|
||||
// TODO: ----------------
|
||||
//Mod+Shift+M allow-when-locked=true { spawn "swayosd-client" "--input-volume" "mute-toggle"; }
|
||||
|
||||
XF86AudioPlay allow-when-locked=true { spawn "playerctl" "play-pause"; }
|
||||
@@ -254,30 +282,29 @@ binds {
|
||||
XF86AudioPrev allow-when-locked=true { spawn "playerctl" "previous"; }
|
||||
XF86AudioStop allow-when-locked=true { spawn "playerctl" "stop"; }
|
||||
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "swayosd-client" "--brightness" "+5"; }
|
||||
XF86MonBrightnessDown allow-when-locked=true { spawn "swayosd-client" "--brightness" "-5"; }
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+5%"; }
|
||||
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "5%-"; }
|
||||
|
||||
Alt+Tab repeat=false { toggle-overview; }
|
||||
Alt+Tab hotkey-overlay-title=null repeat=false { toggle-overview; }
|
||||
Alt+F4 { close-window; }
|
||||
|
||||
// TODO: merge yukitoha's
|
||||
Mod+Left { focus-column-left; }
|
||||
Mod+Down { focus-window-down; }
|
||||
Mod+Up { focus-window-up; }
|
||||
Mod+Right { focus-column-right; }
|
||||
Mod+H { focus-column-left; }
|
||||
Mod+J { focus-window-down; }
|
||||
Mod+K { focus-window-up; }
|
||||
Mod+L { focus-column-right; }
|
||||
//Mod+H { focus-column-left; }
|
||||
//Mod+J { focus-window-down; }
|
||||
//Mod+K { focus-window-up; }
|
||||
//Mod+L { focus-column-right; }
|
||||
|
||||
Mod+Shift+Left { move-column-left; }
|
||||
Mod+Shift+Down { move-window-down; }
|
||||
Mod+Shift+Up { move-window-up; }
|
||||
Mod+Shift+Right { move-column-right; }
|
||||
Mod+Shift+H { move-column-left; }
|
||||
Mod+Shift+J { move-window-down; }
|
||||
Mod+Shift+K { move-window-up; }
|
||||
Mod+Shift+L { move-column-right; }
|
||||
//Mod+Shift+H { move-column-left; }
|
||||
//Mod+Shift+J { move-window-down; }
|
||||
//Mod+Shift+K { move-window-up; }
|
||||
//Mod+Shift+L { move-column-right; }
|
||||
|
||||
// Alternative commands that move across workspaces when reaching
|
||||
// the first or last window in a column.
|
||||
@@ -295,82 +322,61 @@ binds {
|
||||
Mod+Ctrl+Down { focus-monitor-down; }
|
||||
Mod+Ctrl+Up { focus-monitor-up; }
|
||||
Mod+Ctrl+Right { focus-monitor-right; }
|
||||
Mod+Ctrl+H { focus-monitor-left; }
|
||||
Mod+Ctrl+J { focus-monitor-down; }
|
||||
Mod+Ctrl+K { focus-monitor-up; }
|
||||
Mod+Ctrl+L { focus-monitor-right; }
|
||||
//Mod+Ctrl+H { focus-monitor-left; }
|
||||
//Mod+Ctrl+J { focus-monitor-down; }
|
||||
//Mod+Ctrl+K { focus-monitor-up; }
|
||||
//Mod+Ctrl+L { focus-monitor-right; }
|
||||
|
||||
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
||||
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
||||
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
||||
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
|
||||
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
|
||||
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||
//Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
|
||||
//Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||
//Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||
//Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
||||
// ...
|
||||
// And you can also move a whole workspace to another monitor:
|
||||
// Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
|
||||
// ...
|
||||
|
||||
Mod+Page_Down { focus-workspace-down; }
|
||||
Mod+Page_Up { focus-workspace-up; }
|
||||
Mod+U { focus-workspace-down; }
|
||||
Mod+I { focus-workspace-up; }
|
||||
//Mod+U { focus-workspace-down; }
|
||||
//Mod+I { focus-workspace-up; }
|
||||
Mod+Shift+Page_Down { move-column-to-workspace-down; }
|
||||
Mod+Shift+Page_Up { move-column-to-workspace-up; }
|
||||
Mod+Shift+U { move-column-to-workspace-down; }
|
||||
Mod+Shift+I { move-column-to-workspace-up; }
|
||||
//Mod+Shift+U { move-column-to-workspace-down; }
|
||||
//Mod+Shift+I { move-column-to-workspace-up; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Ctrl+Page_Down { move-window-to-workspace-down; }
|
||||
// ...
|
||||
|
||||
Mod+Shift+Alt+Page_Down hotkey-overlay-title="Move the current workspace down" { move-workspace-down; }
|
||||
Mod+Shift+Alt+Page_Up hotkey-overlay-title="Move the current workspace up" { move-workspace-up; }
|
||||
Mod+Shift+Alt+U hotkey-overlay-title="Move the current workspace down" { move-workspace-down; }
|
||||
Mod+Shift+Alt+I hotkey-overlay-title="Move the current workspace up" { move-workspace-up; }
|
||||
Mod+Ctrl+Page_Down { move-workspace-down; }
|
||||
Mod+Ctrl+Page_Up { move-workspace-up; }
|
||||
//Mod+Ctrl+U { move-workspace-down; }
|
||||
//Mod+Ctrl+I { move-workspace-up; }
|
||||
|
||||
// You can bind mouse wheel scroll ticks using the following syntax.
|
||||
// These binds will change direction based on the natural-scroll setting.
|
||||
//
|
||||
// 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+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||
// Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||
// Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||
// Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||
|
||||
// Mod+WheelScrollRight { focus-column-right; }
|
||||
// Mod+WheelScrollLeft { focus-column-left; }
|
||||
// Mod+Ctrl+WheelScrollRight { move-column-right; }
|
||||
// Mod+Ctrl+WheelScrollLeft { move-column-left; }
|
||||
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||
Mod+Shift+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||
Mod+Shift+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||
|
||||
Mod+WheelScrollRight { focus-column-right; }
|
||||
Mod+WheelScrollLeft { focus-column-left; }
|
||||
Mod+Shift+WheelScrollRight { move-column-right; }
|
||||
Mod+Shift+WheelScrollLeft { move-column-left; }
|
||||
// Usually scrolling up and down with Shift in applications results in
|
||||
// horizontal scrolling; these binds replicate that.
|
||||
// Mod+Shift+WheelScrollDown { focus-column-right; }
|
||||
// Mod+Shift+WheelScrollUp { focus-column-left; }
|
||||
// Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
||||
// Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
||||
|
||||
// Scroll between the workspace with Super+Scroll
|
||||
Mod+WheelScrollDown cooldown-ms=75 { focus-column-right; }
|
||||
Mod+WheelScrollUp cooldown-ms=75 { focus-column-left; }
|
||||
|
||||
// Use the mouse buttons to switch between workspaces
|
||||
Mod+MouseBack cooldown-ms=150 { focus-workspace-down; }
|
||||
Mod+MouseForward cooldown-ms=150 { focus-workspace-up; }
|
||||
|
||||
// Use the mouse buttons to move windows between workspaces
|
||||
Mod+Shift+MouseBack cooldown-ms=150 { move-column-to-workspace-down; }
|
||||
Mod+Shift+MouseForward cooldown-ms=150 { move-column-to-workspace-up; }
|
||||
|
||||
// Use the mouse buttons to switch between monitors
|
||||
Mod+Ctrl+MouseBack cooldown-ms=150 { focus-monitor-left; }
|
||||
Mod+Ctrl+MouseForward cooldown-ms=150 { focus-monitor-right; }
|
||||
|
||||
// Press mod+middle click to open the overview
|
||||
Mod+MouseMiddle repeat=false { toggle-overview; }
|
||||
|
||||
// Similarly, you can bind touchpad scroll "ticks".
|
||||
// Touchpad scrolling is continuous, so for these binds it is split into
|
||||
@@ -381,14 +387,6 @@ binds {
|
||||
// Mod+TouchpadScrollDown { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02+"; }
|
||||
// Mod+TouchpadScrollUp { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02-"; }
|
||||
|
||||
// You can refer to workspaces by index. However, keep in mind that
|
||||
// niri is a dynamic workspace system, so these commands are kind of
|
||||
// "best effort". Trying to refer to a workspace index bigger than
|
||||
// the current workspace count will instead refer to the bottommost
|
||||
// (empty) workspace.
|
||||
//
|
||||
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
|
||||
// will all refer to the 3rd workspace.
|
||||
Mod+1 { focus-workspace 1; }
|
||||
Mod+2 { focus-workspace 2; }
|
||||
Mod+3 { focus-workspace 3; }
|
||||
@@ -398,15 +396,15 @@ binds {
|
||||
Mod+7 { focus-workspace 7; }
|
||||
Mod+8 { focus-workspace 8; }
|
||||
Mod+9 { focus-workspace 9; }
|
||||
Mod+Ctrl+1 { move-column-to-workspace 1; }
|
||||
Mod+Ctrl+2 { move-column-to-workspace 2; }
|
||||
Mod+Ctrl+3 { move-column-to-workspace 3; }
|
||||
Mod+Ctrl+4 { move-column-to-workspace 4; }
|
||||
Mod+Ctrl+5 { move-column-to-workspace 5; }
|
||||
Mod+Ctrl+6 { move-column-to-workspace 6; }
|
||||
Mod+Ctrl+7 { move-column-to-workspace 7; }
|
||||
Mod+Ctrl+8 { move-column-to-workspace 8; }
|
||||
Mod+Ctrl+9 { move-column-to-workspace 9; }
|
||||
Mod+Shift+1 { move-column-to-workspace focus=false 1 ; }
|
||||
Mod+Shift+2 { move-column-to-workspace focus=false 2 ; }
|
||||
Mod+Shift+3 { move-column-to-workspace focus=false 3 ; }
|
||||
Mod+Shift+4 { move-column-to-workspace focus=false 4 ; }
|
||||
Mod+Shift+5 { move-column-to-workspace focus=false 5 ; }
|
||||
Mod+Shift+6 { move-column-to-workspace focus=false 6 ; }
|
||||
Mod+Shift+7 { move-column-to-workspace focus=false 7 ; }
|
||||
Mod+Shift+8 { move-column-to-workspace focus=false 8 ; }
|
||||
Mod+Shift+9 { move-column-to-workspace focus=false 9 ; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Ctrl+1 { move-window-to-workspace 1; }
|
||||
@@ -414,30 +412,25 @@ binds {
|
||||
// Switches focus between the current and the previous workspace.
|
||||
// Mod+Tab { focus-workspace-previous; }
|
||||
|
||||
// The following binds move the focused window in and out of a column.
|
||||
// If the window is alone, they will consume it into the nearby column to the side.
|
||||
// If the window is already in a column, they will expel it out.
|
||||
Mod+Comma { consume-window-into-column; }
|
||||
Mod+Period { expel-window-from-column; }
|
||||
|
||||
Mod+Shift+V { toggle-window-floating; }
|
||||
Mod+V { switch-focus-between-floating-and-tiling; }
|
||||
|
||||
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||
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; }
|
||||
// Expel the bottom window from the focused column to the right.
|
||||
Mod+Period { expel-window-from-column; }
|
||||
|
||||
Mod+R { switch-preset-column-width; }
|
||||
Mod+Shift+R { switch-preset-window-height; }
|
||||
Mod+Ctrl+R { reset-window-height; }
|
||||
Mod+F { maximize-column; }
|
||||
Mod+Shift+F { fullscreen-window; }
|
||||
|
||||
// Expand the focused column to space not taken up by other fully visible columns.
|
||||
// Makes the column "fill the rest of the space".
|
||||
Mod+Ctrl+F { expand-column-to-available-width; }
|
||||
Mod+F11 { maximize-column; }
|
||||
Mod+Shift+F11 { toggle-windowed-fullscreen; }
|
||||
Mod+Ctrl+F11 { fullscreen-window; }
|
||||
Mod+T hotkey-overlay-title="Expand column to available width" { expand-column-to-available-width; }
|
||||
Mod+W hotkey-overlay-title="Tabbed Column Mode" { toggle-column-tabbed-display; }
|
||||
|
||||
Mod+C { center-column; }
|
||||
|
||||
// Center all fully visible columns on screen.
|
||||
Mod+Ctrl+C { center-visible-columns; }
|
||||
|
||||
// Finer width adjustments.
|
||||
@@ -448,21 +441,12 @@ binds {
|
||||
// * adjust width as a percentage of screen width: "-10%" or "+10%"
|
||||
// Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
|
||||
// set-column-width "100" will make the column occupy 200 physical screen pixels.
|
||||
Mod+Minus { set-column-width "-10%"; }
|
||||
Mod+Equal { set-column-width "+10%"; }
|
||||
Mod+Minus { set-column-width "-5%"; }
|
||||
Mod+Equal { set-column-width "+5%"; }
|
||||
|
||||
// Finer height adjustments when in column with other windows.
|
||||
Mod+Shift+Minus { set-window-height "-10%"; }
|
||||
Mod+Shift+Equal { 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; }
|
||||
|
||||
// Toggle tabbed column display mode.
|
||||
// Windows in this column will appear as vertical tabs,
|
||||
// rather than stacked on top of each other.
|
||||
Mod+W { toggle-column-tabbed-display; }
|
||||
Mod+Shift+Minus { set-window-height "-5%"; }
|
||||
Mod+Shift+Equal { set-window-height "+5%"; }
|
||||
|
||||
// Actions to switch layouts.
|
||||
// Note: if you uncomment these, make sure you do NOT have
|
||||
@@ -472,44 +456,11 @@ binds {
|
||||
// Mod+Space { switch-layout "next"; }
|
||||
// Mod+Shift+Space { switch-layout "prev"; }
|
||||
|
||||
// Take a screenshot
|
||||
Print { screenshot; }
|
||||
Print hotkey-overlay-title=null { screenshot; }
|
||||
Ctrl+Print { screenshot-screen; }
|
||||
Alt+Print { screenshot-window; }
|
||||
|
||||
// Applications such as remote-desktop clients and software KVM switches may
|
||||
// request that niri stops processing the keyboard shortcuts defined here
|
||||
// so they may, for example, forward the key presses as-is to a remote machine.
|
||||
// It's a good idea to bind an escape hatch to toggle the inhibitor,
|
||||
// so a buggy application can't hold your session hostage.
|
||||
//
|
||||
// The allow-inhibiting=false property can be applied to other binds as well,
|
||||
// which ensures niri always processes them, even when an inhibitor is active.
|
||||
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
||||
|
||||
// The quit action will show a confirmation dialog to avoid accidental exits.
|
||||
Mod+Shift+E hotkey-overlay-title="Exit niri" { quit; }
|
||||
Ctrl+Alt+Delete { quit; }
|
||||
|
||||
// Powers off the monitors. To turn them back on, do any input like
|
||||
// moving the mouse or pressing any other key.
|
||||
//Mod+Shift+P { power-off-monitors; }
|
||||
}
|
||||
|
||||
hotkey-overlay {
|
||||
skip-at-startup
|
||||
}
|
||||
|
||||
layer-rule {
|
||||
match namespace="^swww-daemonblur$"
|
||||
place-within-backdrop true
|
||||
}
|
||||
|
||||
overview {
|
||||
backdrop-color "#26233a"
|
||||
zoom 0.5
|
||||
}
|
||||
|
||||
switch-events {
|
||||
lid-close { spawn "bash" "-c" "swaylock" "&&" "systemctl" "suspend"; }
|
||||
}
|
||||
|
||||
1
bin/chbg
1
bin/chbg
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
# to change wallpapers both niri workspace and niri tab view
|
||||
WP_DIR="$HOME/.local/share"
|
||||
|
||||
|
||||
10
bin/fuzzel-vsc-entries.ps1
Executable file
10
bin/fuzzel-vsc-entries.ps1
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/pwsh
|
||||
|
||||
$desktop="$env:HOME/Desktop"
|
||||
|
||||
$fsarg=(Get-ChildItem $desktop -FollowSymlink | ForEach-Object {
|
||||
if ($_ -is [System.IO.DirectoryInfo]) { return "$($_.Name)/" }
|
||||
else { return $_.Name }
|
||||
} | fuzzel --dmenu --prompt="Open with VSCode (~/Desktop): ")
|
||||
|
||||
$fsarg -and (Start-Process code -ArgumentList @("$desktop/$fsarg"))
|
||||
8
bin/fuzzel-win+r.ps1
Executable file
8
bin/fuzzel-win+r.ps1
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/pwsh
|
||||
|
||||
$option=(fuzzel --dmenu --prompt-only="Command to execute: ")
|
||||
|
||||
$option -and (
|
||||
# garbage `start-process`.
|
||||
systemd-run --user --scope --slice=AgExecBar.slice --unit="$(($option -split " ")[0])-$PID".scope /bin/sh -c "$option"
|
||||
)
|
||||
@@ -12,21 +12,22 @@ so English README only.
|
||||
|
||||
## special thanks
|
||||
- Vescrity (Yukitoha)
|
||||
- fizzyizzy05 (Isabelle Jackson, xyn)
|
||||
- fizzyizzy05 (Isabelle Jackson, mtf)
|
||||
|
||||
## basic
|
||||
## requirements
|
||||
- `niri`, and its optional deps (`yay -Si`).
|
||||
- `swww` from fizzy dotfiles
|
||||
- ZshIM from miku installation guide, basically to refer `powerlevel10k` zmodule.
|
||||
- no `oh-my-zsh`.
|
||||
- no other plugins from pacman, like `zsh-syntax-highlighting`. they are included in zim by default.
|
||||
- `powershell-bin` (AUR) to easily trigger `start-process`.
|
||||
|
||||
## my later replacements
|
||||
```
|
||||
alacritty -> foot
|
||||
nautilus (gnome files) -> yazi (console)
|
||||
swaylock -> gtklock
|
||||
gnome-keyring -> kwallet (kd6)
|
||||
gnome-keyring -> kwallet (kd6), kwallet-pam (to auto unlock), kwalletmanager (optional)
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user