Compare commits
5
Commits
326ee9a03b
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06eb289cea | ||
|
|
bb8e82e4aa | ||
|
|
08b77d1063 | ||
|
|
7783ff5ab0 | ||
|
|
37e329206f |
@@ -23,6 +23,13 @@ input {
|
|||||||
focus-follows-mouse max-scroll-amount="0%"
|
focus-follows-mouse max-scroll-amount="0%"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The top-left hot corner toggles the overview by default; only Mod+O should.
|
||||||
|
gestures {
|
||||||
|
hot-corners {
|
||||||
|
off
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// `niri msg outputs` lists names and modes.
|
// `niri msg outputs` lists names and modes.
|
||||||
output "eDP-1" {
|
output "eDP-1" {
|
||||||
scale 1.6
|
scale 1.6
|
||||||
@@ -149,6 +156,8 @@ binds {
|
|||||||
Mod+W repeat=false { close-window; }
|
Mod+W repeat=false { close-window; }
|
||||||
Mod+Q repeat=false { close-window; }
|
Mod+Q repeat=false { close-window; }
|
||||||
|
|
||||||
|
// Mod+Left/Right also serve the MX Master 3's thumb buttons (logid):
|
||||||
|
// keyd rewrites Meta+arrows to Home/End on real keyboards.
|
||||||
Mod+Left { focus-column-left; }
|
Mod+Left { focus-column-left; }
|
||||||
Mod+Down { focus-window-down; }
|
Mod+Down { focus-window-down; }
|
||||||
Mod+Up { focus-window-up; }
|
Mod+Up { focus-window-up; }
|
||||||
@@ -157,6 +166,9 @@ binds {
|
|||||||
Mod+J { focus-window-down; }
|
Mod+J { focus-window-down; }
|
||||||
Mod+K { focus-window-up; }
|
Mod+K { focus-window-up; }
|
||||||
Mod+L { focus-column-right; }
|
Mod+L { focus-column-right; }
|
||||||
|
// Also the MX Master thumb buttons (logid).
|
||||||
|
Mod+Page_Down { focus-column-right; }
|
||||||
|
Mod+Page_Up { focus-column-left; }
|
||||||
|
|
||||||
Mod+Ctrl+Left { move-column-left; }
|
Mod+Ctrl+Left { move-column-left; }
|
||||||
Mod+Ctrl+Down { move-window-down; }
|
Mod+Ctrl+Down { move-window-down; }
|
||||||
@@ -190,9 +202,6 @@ binds {
|
|||||||
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||||
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||||
|
|
||||||
// Mod+Page_Up/Down are also the MX Master thumb buttons (logid.cfg).
|
|
||||||
Mod+Page_Down { focus-workspace-down; }
|
|
||||||
Mod+Page_Up { focus-workspace-up; }
|
|
||||||
Mod+U { focus-workspace-down; }
|
Mod+U { focus-workspace-down; }
|
||||||
Mod+I { focus-workspace-up; }
|
Mod+I { focus-workspace-up; }
|
||||||
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
||||||
|
|||||||
@@ -29,3 +29,8 @@ enabled = true
|
|||||||
action = "screen_off"
|
action = "screen_off"
|
||||||
timeout = 630
|
timeout = 630
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
|
# "clock" is the bar's built-in center widget; e.g. "Mon Nov 30 14:32".
|
||||||
|
# https://docs.noctalia.dev/noctalia/bar/widgets/clock/
|
||||||
|
[widget.clock]
|
||||||
|
format = "{:%a %b %d %H:%M}"
|
||||||
|
|||||||
+5
-1
@@ -29,7 +29,9 @@ After that:
|
|||||||
|
|
||||||
## Keyboard (keyd)
|
## Keyboard (keyd)
|
||||||
|
|
||||||
`etc/keyd/default.conf` applies to every keyboard except YubiKeys (`etc/keyd/iqunix.conf` covers the IQUNIX MG75, which skips the Alt/Meta swap):
|
`etc/keyd/default.conf` applies to every keyboard except YubiKeys. The
|
||||||
|
IQUNIX MG75 (`etc/keyd/iqunix.conf`) skips the Alt/Meta swap; the Glove80
|
||||||
|
(`etc/keyd/glove80.conf`) keeps only the meta layer:
|
||||||
|
|
||||||
- Caps Lock and Left Control are swapped.
|
- Caps Lock and Left Control are swapped.
|
||||||
- Left Alt and Left Meta are swapped, so the key next to space is Meta.
|
- Left Alt and Left Meta are swapped, so the key next to space is Meta.
|
||||||
@@ -37,6 +39,8 @@ After that:
|
|||||||
Shift+Insert and Ctrl+X, the same as omarchy's Hyprland binds. These work
|
Shift+Insert and Ctrl+X, the same as omarchy's Hyprland binds. These work
|
||||||
in GTK/Qt apps, browsers and Electron. Ghostty gets the matching bindings
|
in GTK/Qt apps, browsers and Electron. Ghostty gets the matching bindings
|
||||||
in `home-modules/ghostty-config.nix`.
|
in `home-modules/ghostty-config.nix`.
|
||||||
|
- Meta+Left/Right become Home/End, macOS-style. Niri's Mod+arrow binds
|
||||||
|
never fire as a result; use Mod+H/J/K/L.
|
||||||
|
|
||||||
To test keyd: `sudo keyd.rvaiya monitor`. To bypass a broken config: press Backspace+Escape+Enter together, which kills keyd.
|
To test keyd: `sudo keyd.rvaiya monitor`. To bypass a broken config: press Backspace+Escape+Enter together, which kills keyd.
|
||||||
|
|
||||||
|
|||||||
@@ -21,3 +21,6 @@ leftmeta = layer(alt)
|
|||||||
c = C-insert
|
c = C-insert
|
||||||
v = S-insert
|
v = S-insert
|
||||||
x = C-x
|
x = C-x
|
||||||
|
# Meta+Left/Right = Home/End, macOS-style.
|
||||||
|
left = home
|
||||||
|
right = end
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# Managed by ~/nixos/ubuntu (bootstrap.sh etc). Local edits get overwritten.
|
||||||
|
# Glove80 over Bluetooth; docked over USB it enumerates with a different id.
|
||||||
|
# The layout lives in the board's ZMK firmware, so of default.conf keep
|
||||||
|
# only the meta layer.
|
||||||
|
[ids]
|
||||||
|
16c0:27db
|
||||||
|
|
||||||
|
# macOS-style clipboard and line navigation, see default.conf.
|
||||||
|
[meta]
|
||||||
|
c = C-insert
|
||||||
|
v = S-insert
|
||||||
|
x = C-x
|
||||||
|
left = home
|
||||||
|
right = end
|
||||||
@@ -14,3 +14,6 @@ leftcontrol = capslock
|
|||||||
c = C-insert
|
c = C-insert
|
||||||
v = S-insert
|
v = S-insert
|
||||||
x = C-x
|
x = C-x
|
||||||
|
# Meta+Left/Right = Home/End, see default.conf.
|
||||||
|
left = home
|
||||||
|
right = end
|
||||||
|
|||||||
Reference in New Issue
Block a user