update niri keys

This commit is contained in:
Alexander Navarro 2026-02-24 12:59:31 -03:00
parent fb5e68da37
commit 602de13a4e
6 changed files with 125 additions and 154 deletions

View file

@ -1,6 +1,6 @@
[Container] [Container]
Image=docker.io/adminneoorg/adminneo Image=docker.io/adminneoorg/adminneo
AutoUpdate=registry # AutoUpdate=registry
Network=host Network=host
Environment=NEO_THEME=default Environment=NEO_THEME=default
Environment=NEO_COLOR_VARIANT=green Environment=NEO_COLOR_VARIANT=green

View file

@ -1,12 +1,9 @@
binds { binds {
Mod+F1 { //#"System"
show-hotkey-overlay Mod+F1 hotkey-overlay-title="Show keybindings" {
spawn-sh "qs -c noctalia-shell ipc call plugin:keybind-cheatsheet toggle"
} }
// // #"Applications"
// ╭─────────────────────────────────────────────────────────╮
// │ Launchers │
// ╰─────────────────────────────────────────────────────────╯
//
Mod+Return hotkey-overlay-title="Open Terminal" { Mod+Return hotkey-overlay-title="Open Terminal" {
spawn "kitty" spawn "kitty"
} }
@ -16,11 +13,7 @@ binds {
Mod+D hotkey-overlay-title="Launcher" { Mod+D hotkey-overlay-title="Launcher" {
spawn "qs" "ipc" "-c" "noctalia-shell" "call" "launcher" "toggle" spawn "qs" "ipc" "-c" "noctalia-shell" "call" "launcher" "toggle"
} }
// // #"Layout"
// ╭─────────────────────────────────────────────────────────╮
// │ Layout │
// ╰─────────────────────────────────────────────────────────╯
//
Mod+R { Mod+R {
switch-preset-column-width switch-preset-column-width
} }
@ -36,198 +29,158 @@ binds {
Mod+C { Mod+C {
center-column center-column
} }
// Mod+Shift+Space {
// ╭─────────────────────────────────────────────────────────╮ toggle-window-floating
// │ Window Management │ }
// ╰─────────────────────────────────────────────────────────╯ Mod+Alt+Left hotkey-overlay-title="Move in/out of column" {
// consume-or-expel-window-left
}
Mod+Alt+Right hotkey-overlay-title="Move in/out of column" {
consume-or-expel-window-right
}
Mod+Alt+H hotkey-overlay-title=null {
consume-or-expel-window-left
}
Mod+Alt+L hotkey-overlay-title=null {
consume-or-expel-window-right
}
// #"Window Management"
Mod+W repeat=false { Mod+W repeat=false {
toggle-overview toggle-overview
} }
Mod+Shift+Q repeat=false { Mod+Shift+Q repeat=false {
close-window close-window
} }
// // #"Focus"
// ── Change focus ──────────────────────────────────────────────────── Mod+Tab hotkey-overlay-title=null {
//
Mod+Tab {
focus-column-right-or-first focus-column-right-or-first
} }
Mod+shift+Tab { Mod+shift+Tab hotkey-overlay-title=null {
focus-column-left-or-last focus-column-left-or-last
} }
Mod+Left { Mod+Left hotkey-overlay-title=null {
focus-column-left focus-column-left
} }
Mod+Down { Mod+Down hotkey-overlay-title=null {
focus-window-or-workspace-down focus-window-or-workspace-down
} }
Mod+Up { Mod+Up hotkey-overlay-title=null {
focus-window-or-workspace-up focus-window-or-workspace-up
} }
Mod+Right { Mod+Right hotkey-overlay-title=null {
focus-column-or-monitor-right focus-column-or-monitor-right
} }
Mod+Ctrl+Left { Mod+H hotkey-overlay-title=null {
consume-or-expel-window-left
}
Mod+Ctrl+Right {
consume-or-expel-window-right
}
Mod+Alt+Left {
consume-window-into-column
}
Mod+Alt+Right {
expel-window-from-column
}
Mod+H {
focus-column-or-monitor-left focus-column-or-monitor-left
} }
Mod+J { Mod+J hotkey-overlay-title=null {
focus-window-or-workspace-down focus-window-or-workspace-down
} }
Mod+K { Mod+K hotkey-overlay-title=null {
focus-window-or-workspace-up focus-window-or-workspace-up
} }
Mod+L { Mod+L hotkey-overlay-title=null {
focus-column-or-monitor-right focus-column-or-monitor-right
} }
Mod+Ctrl+H { Mod+WheelScrollDown hotkey-overlay-title="Focus right" {
consume-or-expel-window-left
}
Mod+Ctrl+L {
consume-or-expel-window-right
}
Mod+Alt+H {
consume-window-into-column
}
Mod+Alt+L {
expel-window-from-column
}
Mod+WheelScrollDown cooldown-ms=150 {
focus-column-right focus-column-right
} }
Mod+WheelScrollUp cooldown-ms=150 { Mod+WheelScrollUp hotkey-overlay-title="Focus left" {
focus-column-left focus-column-left
} }
Mod+Space { // #"Focus"
Mod+WheelScrollLeft hotkey-overlay-title="Focus workspace down" {
focus-workspace-down
}
// #"Focus"
Mod+WheelScrollRight hotkey-overlay-title="Focus workspace up" {
focus-workspace-up
}
Mod+Space hotkey-overlay-title="Toggle focus floating" {
switch-focus-between-floating-and-tiling switch-focus-between-floating-and-tiling
} }
// // #"Move Windows"
// ── Move windows ──────────────────────────────────────────────────── Mod+Shift+Left hotkey-overlay-title=null {
// move-column-left-or-to-monitor-left
Mod+Shift+Left {
move-column-left
} }
Mod+Shift+Down { Mod+Shift+Down hotkey-overlay-title=null {
move-window-down-or-to-workspace-down move-window-down-or-to-workspace-down
} }
Mod+Shift+Up { Mod+Shift+Up hotkey-overlay-title=null {
move-window-up-or-to-workspace-up move-window-up-or-to-workspace-up
} }
Mod+Shift+Right { Mod+Shift+Right hotkey-overlay-title=null {
move-column-right move-column-right-or-to-monitor-right
} }
Mod+Shift+H { Mod+Shift+H hotkey-overlay-title=null {
move-column-left move-column-left-or-to-monitor-left
} }
Mod+Shift+J { Mod+Shift+J hotkey-overlay-title=null {
move-window-down-or-to-workspace-down move-window-down-or-to-workspace-down
} }
Mod+Shift+K { Mod+Shift+K hotkey-overlay-title=null {
move-window-up-or-to-workspace-up move-window-up-or-to-workspace-up
} }
Mod+Shift+L { Mod+Shift+L hotkey-overlay-title=null {
move-column-right move-column-right-or-to-monitor-right
} }
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { // #"Workspace Navigation"
move-column-to-workspace-down Mod+Bar hotkey-overlay-title=null {
}
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+Ctrl+Shift+WheelScrollDown {
move-column-right
}
Mod+Ctrl+Shift+WheelScrollUp {
move-column-left
}
Mod+Shift+Space {
toggle-window-floating
}
//
// ╭─────────────────────────────────────────────────────────╮
// │ Workspaces │
// ╰─────────────────────────────────────────────────────────╯
//
Mod+Bar {
// Switches focus between the current and the previous workspace. // Switches focus between the current and the previous workspace.
focus-workspace-previous focus-workspace-previous
} }
Mod+1 { Mod+1 hotkey-overlay-title=null {
focus-workspace 1 focus-workspace 1
} }
Mod+2 { Mod+2 hotkey-overlay-title=null {
focus-workspace 2 focus-workspace 2
} }
Mod+3 { Mod+3 hotkey-overlay-title=null {
focus-workspace 3 focus-workspace 3
} }
Mod+4 { Mod+4 hotkey-overlay-title=null {
focus-workspace 4 focus-workspace 4
} }
Mod+5 { Mod+5 hotkey-overlay-title=null {
focus-workspace 5 focus-workspace 5
} }
Mod+6 { Mod+6 hotkey-overlay-title=null {
focus-workspace 6 focus-workspace 6
} }
Mod+7 { Mod+7 hotkey-overlay-title=null {
focus-workspace 7 focus-workspace 7
} }
Mod+8 { Mod+8 hotkey-overlay-title=null {
focus-workspace 8 focus-workspace 8
} }
Mod+9 { Mod+9 hotkey-overlay-title=null {
focus-workspace 9 focus-workspace 9
} }
Mod+Shift+1 { Mod+Shift+1 hotkey-overlay-title=null {
move-window-to-workspace 1 move-window-to-workspace 1
} }
Mod+Shift+2 { Mod+Shift+2 hotkey-overlay-title=null {
move-window-to-workspace 2 move-window-to-workspace 2
} }
Mod+Shift+3 { Mod+Shift+3 hotkey-overlay-title=null {
move-window-to-workspace 3 move-window-to-workspace 3
} }
Mod+Shift+4 { Mod+Shift+4 hotkey-overlay-title=null {
move-window-to-workspace 4 move-window-to-workspace 4
} }
Mod+Shift+5 { Mod+Shift+5 hotkey-overlay-title=null {
move-window-to-workspace 5 move-window-to-workspace 5
} }
Mod+Shift+6 { Mod+Shift+6 hotkey-overlay-title=null {
move-window-to-workspace 6 move-window-to-workspace 6
} }
Mod+Shift+7 { Mod+Shift+7 hotkey-overlay-title=null {
move-window-to-workspace 7 move-window-to-workspace 7
} }
Mod+Shift+8 { Mod+Shift+8 hotkey-overlay-title=null {
move-window-to-workspace 8 move-window-to-workspace 8
} }
Mod+Shift+9 { Mod+Shift+9 hotkey-overlay-title=null {
move-window-to-workspace 9 move-window-to-workspace 9
} }
Mod+Shift+WheelScrollDown cooldown-ms=150 { Mod+Shift+WheelScrollDown cooldown-ms=150 {
@ -236,11 +189,7 @@ binds {
Mod+Shift+WheelScrollUp cooldown-ms=150 { Mod+Shift+WheelScrollUp cooldown-ms=150 {
focus-workspace-up focus-workspace-up
} }
// // #"System"
// ╭─────────────────────────────────────────────────────────╮
// │ Volume │
// ╰─────────────────────────────────────────────────────────╯
//
XF86AudioRaiseVolume allow-when-locked=true { XF86AudioRaiseVolume allow-when-locked=true {
spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.025+" spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.025+"
} }
@ -253,37 +202,35 @@ binds {
XF86AudioMicMute allow-when-locked=true { XF86AudioMicMute allow-when-locked=true {
spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle" spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
} }
//
// ╭─────────────────────────────────────────────────────────╮
// │ Brightness │
// ╰─────────────────────────────────────────────────────────╯
//
XF86MonBrightnessUp allow-when-locked=true { XF86MonBrightnessUp allow-when-locked=true {
spawn "brightnessctl" "--class=backlight" "set" "+10%" spawn "brightnessctl" "--class=backlight" "set" "+10%"
} }
XF86MonBrightnessDown allow-when-locked=true { XF86MonBrightnessDown allow-when-locked=true {
spawn "brightnessctl" "--class=backlight" "set" "10%-" spawn "brightnessctl" "--class=backlight" "set" "10%-"
} }
Print { // #"Screenshots"
screenshot Print hotkey-overlay-title="Screenshot" {
screenshot show-pointer=false
} }
Shift+Print { Shift+Print hotkey-overlay-title="Screenshot & Edit" {
screenshot-window spawn-sh "niri msg action screenshot && wl-paste -t image/png | swappy -f -"
} }
Shift+Ctrl+Print hotkey-overlay-title="Edit image in Clipboard" { Ctrl+Print hotkey-overlay-title="Edit image in clipboard" {
spawn-sh "wl-paste | swappy -f -" spawn-sh "wl-paste -t image/png | swappy -f -"
} }
// Applications such as remote-desktop clients and software KVM switches may // #"System"
// request that niri stops processing the keyboard shortcuts defined here Mod+Escape allow-inhibiting=false hotkey-overlay-title="Toggle shortcuts inhibition" {
// so they may, for example, forward the key presses as-is to a remote machine. // Applications such as remote-desktop clients and software KVM switches may
// It's a good idea to bind an escape hatch to toggle the inhibitor, // request that niri stops processing the keyboard shortcuts defined here
// so a buggy application can't hold your session hostage. // 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,
// The allow-inhibiting=false property can be applied to other binds as well, // so a buggy application can't hold your session hostage.
// which ensures niri always processes them, even when an inhibitor is active. //
Mod+Escape allow-inhibiting=false { // 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.
toggle-keyboard-shortcuts-inhibit toggle-keyboard-shortcuts-inhibit
} }
// #"System"
Ctrl+Alt+Delete { Ctrl+Alt+Delete {
quit quit
} }

View file

@ -22,6 +22,10 @@
"tailscale": { "tailscale": {
"enabled": true, "enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins" "sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"translator": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
} }
}, },
"version": 2 "version": 2

View file

@ -311,6 +311,9 @@
{ {
"id": "Bluetooth" "id": "Bluetooth"
}, },
{
"id": "PowerProfile"
},
{ {
"id": "WallpaperSelector" "id": "WallpaperSelector"
} }
@ -319,9 +322,6 @@
{ {
"id": "Notifications" "id": "Notifications"
}, },
{
"id": "PowerProfile"
},
{ {
"id": "KeepAwake" "id": "KeepAwake"
}, },
@ -337,6 +337,16 @@
"onMiddleClicked": "", "onMiddleClicked": "",
"onRightClicked": "", "onRightClicked": "",
"stateChecksJson": "[]" "stateChecksJson": "[]"
},
{
"enableOnStateLogic": false,
"generalTooltipText": "Screenshot",
"icon": "camera",
"id": "CustomButton",
"onClicked": "qs -c noctalia-shell ipc call controlCenter toggle && sleep 0.5 && niri msg action screenshot",
"onMiddleClicked": "",
"onRightClicked": "qs -c noctalia-shell ipc call controlCenter toggle && sleep 0.5 && niri msg action screenshot && wl-paste -t image/png | swappy -f -",
"stateChecksJson": "[]"
} }
] ]
} }
@ -353,7 +363,7 @@
"colorizeIcons": false, "colorizeIcons": false,
"deadOpacity": 0.6, "deadOpacity": 0.6,
"displayMode": "auto_hide", "displayMode": "auto_hide",
"enabled": false, "enabled": true,
"floatingRatio": 1, "floatingRatio": 1,
"inactiveIndicators": false, "inactiveIndicators": false,
"monitors": [ "monitors": [

View file

@ -44,7 +44,8 @@
"space f w": "pane::DeploySearch", // Search word under cursor "space f w": "pane::DeploySearch", // Search word under cursor
"space r r": "task::Spawn", "space r r": "editor::SpawnNearestTask",
"space r R": "task::Spawn",
// Go to file with `gf` // Go to file with `gf`
"g f": "editor::OpenExcerpts", "g f": "editor::OpenExcerpts",
@ -78,6 +79,8 @@
], ],
"space g j": "editor::GoToHunk", "space g j": "editor::GoToHunk",
"space g k": "editor::GoToPreviousHunk", "space g k": "editor::GoToPreviousHunk",
"space g r": "git::Restore",
"space g R": "git::RestoreFile",
// + Buffers // + Buffers
// Switch between buffers // Switch between buffers

View file

@ -2,6 +2,12 @@
// //
// Example: // Example:
[ [
{
"label": "Run dev",
"command": "just",
"args": ["dev"],
"tags": ["just-recipe"]
},
{ {
"label": "LazyGit", "label": "LazyGit",
"command": "lazygit", "command": "lazygit",
@ -15,6 +21,7 @@
"allow_concurrent_runs": true, "allow_concurrent_runs": true,
"use_new_terminal": true "use_new_terminal": true
}, },
{ {
"label": "Bun Test", "label": "Bun Test",
"command": "bun test", "command": "bun test",