[ubuntu] Niri!
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Managed by ~/nixos/ubuntu (bootstrap.sh repos/etc). Local edits get overwritten.
|
||||
# Only niri and xwayland-satellite come from the Dux Labs PPA.
|
||||
# apt uses the first matching record, so the specific one goes first.
|
||||
Package: niri xwayland-satellite
|
||||
Pin: release o=LP-PPA-duxlabs-dux-repo
|
||||
Pin-Priority: 500
|
||||
|
||||
Package: *
|
||||
Pin: release o=LP-PPA-duxlabs-dux-repo
|
||||
Pin-Priority: 1
|
||||
@@ -0,0 +1,16 @@
|
||||
# Managed by ~/nixos/ubuntu (bootstrap.sh etc). Local edits get overwritten.
|
||||
# IQUNIX MG75. Same as default.conf minus the Alt/Meta swap: the board
|
||||
# already has Meta next to space. An explicit ID beats the * in default.conf.
|
||||
[ids]
|
||||
245a:8276
|
||||
|
||||
[main]
|
||||
# Caps Lock <-> Left Control.
|
||||
capslock = layer(control)
|
||||
leftcontrol = capslock
|
||||
|
||||
# macOS-style clipboard, see default.conf.
|
||||
[meta]
|
||||
c = C-insert
|
||||
v = S-insert
|
||||
x = C-x
|
||||
@@ -1,6 +1,41 @@
|
||||
// Managed by ~/nixos/ubuntu (bootstrap.sh etc). Local edits get overwritten.
|
||||
// Ported from hosts/nixbox/configuration.nix.
|
||||
|
||||
// The 500 ms default is too short for the MX Master 4 reconnecting after a wake.
|
||||
io_timeout: 3000.0;
|
||||
|
||||
devices: (
|
||||
{
|
||||
name: "MX Master 4";
|
||||
|
||||
// Matches the kernel's hi-res wheel multiplier; otherwise each notch
|
||||
// scrolls a fraction of a line.
|
||||
hiresscroll: {
|
||||
hires: true;
|
||||
invert: false;
|
||||
target: false;
|
||||
};
|
||||
|
||||
// Thumb buttons send Super+Page_Up/Page_Down: switch workspaces in GNOME and niri.
|
||||
buttons: (
|
||||
{
|
||||
cid: 0x53;
|
||||
action =
|
||||
{
|
||||
type : "Keypress";
|
||||
keys: ["KEY_LEFTMETA", "KEY_PAGEUP"];
|
||||
};
|
||||
},
|
||||
{
|
||||
cid: 0x56;
|
||||
action =
|
||||
{
|
||||
type : "Keypress";
|
||||
keys: ["KEY_LEFTMETA", "KEY_PAGEDOWN"];
|
||||
};
|
||||
}
|
||||
);
|
||||
},
|
||||
{
|
||||
name: "Wireless Mouse MX Master 3";
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# Managed by ~/nixos/ubuntu (bootstrap.sh etc). Local edits get overwritten.
|
||||
# Lid closed only suspends on battery, so Bluetooth input can wake the screens
|
||||
# while docked. HandleLidSwitchDocked isn't enough: the USB-C monitor
|
||||
# disconnects when niri powers it off, and logind stops counting it as a dock.
|
||||
[Login]
|
||||
HandleLidSwitchExternalPower=ignore
|
||||
@@ -0,0 +1,11 @@
|
||||
# Managed by ~/nixos/ubuntu (bootstrap.sh etc). Local edits get overwritten.
|
||||
# Dev boards/probes without root: uaccess (logged-in user), plugdev (ssh).
|
||||
# Must sort before 73-seat-late.rules or uaccess is ignored.
|
||||
|
||||
# Raspberry Pi: Debug Probe, Picoprobe, RP2040/RP2350 BOOTSEL.
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="2e8a", MODE="0664", GROUP="plugdev", TAG+="uaccess"
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="2e8a", MODE="0664", GROUP="plugdev", TAG+="uaccess"
|
||||
|
||||
# FTDI: ULX3S, JTAG programmers; hidraw for FT260.
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", MODE="0664", GROUP="plugdev", TAG+="uaccess"
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="0403", MODE="0664", GROUP="plugdev", TAG+="uaccess"
|
||||
@@ -1,5 +0,0 @@
|
||||
# Managed by ~/nixos/ubuntu (bootstrap.sh etc). Local edits get overwritten.
|
||||
# ULX3S FPGA board (FTDI FT231X, 0403:6015): Allow opening withoug root.
|
||||
# uaccess grants the logged-in user, and plugdev covers ssh/non-seat sessions.
|
||||
# Must sort before 73-seat-late.rules or the uaccess tag is ignored.
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", MODE="0664", GROUP="plugdev", TAG+="uaccess"
|
||||
Reference in New Issue
Block a user