[ubuntu] Onboard an ubuntu config.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Managed by ~/nixos/ubuntu (bootstrap.sh etc). Local edits get overwritten.
|
||||
[ids]
|
||||
*
|
||||
# YubiKey enumerates as a keyboard, ignore it.
|
||||
-1050:0407
|
||||
# logid's virtual keyboard.
|
||||
-0000:0000:48cf0dd2
|
||||
|
||||
[main]
|
||||
# Caps Lock <-> Left Control.
|
||||
capslock = layer(control)
|
||||
leftcontrol = capslock
|
||||
# Left Alt <-> Left Meta.
|
||||
leftalt = layer(meta)
|
||||
leftmeta = layer(alt)
|
||||
|
||||
# macOS-style clipboard, same mapping as omarchy's Hyprland binds
|
||||
# (default/hypr/bindings/clipboard.conf), done in keyd instead.
|
||||
# Ctrl/Shift+Insert copy/paste in GTK, Qt, browsers, Electron, and terminals.
|
||||
[meta]
|
||||
c = C-insert
|
||||
v = S-insert
|
||||
x = C-x
|
||||
@@ -0,0 +1,69 @@
|
||||
// Managed by ~/nixos/ubuntu (bootstrap.sh etc). Local edits get overwritten.
|
||||
// Ported from hosts/nixbox/configuration.nix.
|
||||
devices: (
|
||||
{
|
||||
name: "Wireless Mouse MX Master 3";
|
||||
|
||||
hiresscroll: {
|
||||
};
|
||||
|
||||
thumbwheel: {
|
||||
invert: true;
|
||||
};
|
||||
|
||||
buttons: (
|
||||
{
|
||||
cid: 0x53;
|
||||
action =
|
||||
{
|
||||
type : "Keypress";
|
||||
keys: ["KEY_LEFTMETA", "KEY_LEFT"];
|
||||
};
|
||||
},
|
||||
{
|
||||
cid: 0x56;
|
||||
action =
|
||||
{
|
||||
type : "Keypress";
|
||||
keys: ["KEY_LEFTMETA", "KEY_RIGHT"];
|
||||
};
|
||||
}
|
||||
);
|
||||
},
|
||||
{
|
||||
name: "MX Vertical Advanced Ergonomic Mouse";
|
||||
|
||||
hiresscroll: {
|
||||
hires: true;
|
||||
invert: false;
|
||||
target: false;
|
||||
};
|
||||
|
||||
buttons: (
|
||||
{
|
||||
cid: 0x53;
|
||||
action =
|
||||
{
|
||||
type : "Keypress";
|
||||
keys: ["KEY_LEFTMETA", "KEY_PAGEUP"];
|
||||
};
|
||||
},
|
||||
{
|
||||
cid: 0x56;
|
||||
action =
|
||||
{
|
||||
type : "Keypress";
|
||||
keys: ["KEY_LEFTMETA", "KEY_PAGEDOWN"];
|
||||
};
|
||||
},
|
||||
{
|
||||
cid: 0xfd;
|
||||
action =
|
||||
{
|
||||
type : "Keypress";
|
||||
keys: ["KEY_LEFTMETA"];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user