Dropped kmonad altogether
This commit is contained in:
parent
d981b62ef8
commit
a574092915
5 changed files with 49 additions and 95 deletions
23
flake.lock
generated
23
flake.lock
generated
|
|
@ -210,28 +210,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"kmonad": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"dir": "nix",
|
|
||||||
"lastModified": 1691843304,
|
|
||||||
"narHash": "sha256-aLAMpvbQPLkpjJDUWYTYRmEclAQTo+IVzqPQYOfmxfw=",
|
|
||||||
"owner": "kmonad",
|
|
||||||
"repo": "kmonad",
|
|
||||||
"rev": "a05e93c62ca2c25cc81d76d9cf36880fe0bf183a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"dir": "nix",
|
|
||||||
"owner": "kmonad",
|
|
||||||
"repo": "kmonad",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-minecraft": {
|
"nix-minecraft": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
|
|
@ -345,7 +323,6 @@
|
||||||
"deploy-rs": "deploy-rs",
|
"deploy-rs": "deploy-rs",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"homepage": "homepage",
|
"homepage": "homepage",
|
||||||
"kmonad": "kmonad",
|
|
||||||
"nix-minecraft": "nix-minecraft",
|
"nix-minecraft": "nix-minecraft",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
|
|
||||||
16
flake.nix
16
flake.nix
|
|
@ -12,11 +12,6 @@
|
||||||
|
|
||||||
baduhai-nur.url = "github:baduhai/nur";
|
baduhai-nur.url = "github:baduhai/nur";
|
||||||
|
|
||||||
kmonad = {
|
|
||||||
url = "github:kmonad/kmonad?dir=nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
deploy-rs = {
|
deploy-rs = {
|
||||||
url = "github:serokell/deploy-rs";
|
url = "github:serokell/deploy-rs";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
@ -48,9 +43,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, home-manager, baduhai-nur, kmonad
|
outputs = inputs@{ self, nixpkgs, home-manager, baduhai-nur, nixpkgs-stable
|
||||||
, nixpkgs-stable, deploy-rs, agenix, nixos-generators, homepage
|
, deploy-rs, agenix, nixos-generators, homepage, nix-minecraft, yousable
|
||||||
, nix-minecraft, yousable, ... }: {
|
, ... }: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
rotterdam = nixpkgs.lib.nixosSystem {
|
rotterdam = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
@ -58,7 +53,6 @@
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/desktops/rotterdam.nix
|
./hosts/desktops/rotterdam.nix
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
kmonad.nixosModules.default
|
|
||||||
{
|
{
|
||||||
nixpkgs.overlays =
|
nixpkgs.overlays =
|
||||||
[ baduhai-nur.overlay agenix.overlays.default ];
|
[ baduhai-nur.overlay agenix.overlays.default ];
|
||||||
|
|
@ -72,7 +66,6 @@
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/desktops/io.nix
|
./hosts/desktops/io.nix
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
kmonad.nixosModules.default
|
|
||||||
{
|
{
|
||||||
nixpkgs.overlays =
|
nixpkgs.overlays =
|
||||||
[ baduhai-nur.overlay agenix.overlays.default ];
|
[ baduhai-nur.overlay agenix.overlays.default ];
|
||||||
|
|
@ -166,7 +159,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells = {
|
devShells = {
|
||||||
"x86_64-linux".default = nixpkgs.legacyPackages."x86_64-linux".mkShell { packages = with nixpkgs.legacyPackages."x86_64-linux"; [ nil nixfmt ];
|
"x86_64-linux".default = nixpkgs.legacyPackages."x86_64-linux".mkShell {
|
||||||
|
packages = with nixpkgs.legacyPackages."x86_64-linux"; [ nil nixfmt ];
|
||||||
};
|
};
|
||||||
"aarch64-linux".default =
|
"aarch64-linux".default =
|
||||||
nixpkgs.legacyPackages."aarch64-linux".mkShell {
|
nixpkgs.legacyPackages."aarch64-linux".mkShell {
|
||||||
|
|
|
||||||
|
|
@ -35,12 +35,49 @@
|
||||||
write_stylus
|
write_stylus
|
||||||
];
|
];
|
||||||
|
|
||||||
services = {
|
services.keyd = {
|
||||||
kmonad = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
keyboards.internal = {
|
keyboards.main = {
|
||||||
device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
|
ids = [ "0001:0001" ];
|
||||||
config = builtins.readFile ./io/kmonad.kbd;
|
settings = {
|
||||||
|
main = {
|
||||||
|
meta = "overload(meta, esc)";
|
||||||
|
f1 = "back";
|
||||||
|
f2 = "forward";
|
||||||
|
f3 = "refresh";
|
||||||
|
f4 = "M-f11";
|
||||||
|
f5 = "M-w";
|
||||||
|
f6 = "brightnessdown";
|
||||||
|
f7 = "brightnessup";
|
||||||
|
f8 = "timeout(mute, 200, micmute)";
|
||||||
|
f9 = "play";
|
||||||
|
f10 = "timeout(nextsong, 200, previoussong)";
|
||||||
|
f13 = "delete";
|
||||||
|
"102nd" = "layer(function)";
|
||||||
|
};
|
||||||
|
shift = {
|
||||||
|
leftshift = "capslock";
|
||||||
|
rightshift = "capslock";
|
||||||
|
};
|
||||||
|
function = {
|
||||||
|
escape = "f1";
|
||||||
|
f1 = "f2";
|
||||||
|
f2 = "f3";
|
||||||
|
f3 = "f4";
|
||||||
|
f4 = "f5";
|
||||||
|
f5 = "f6";
|
||||||
|
f6 = "f7";
|
||||||
|
f7 = "f8";
|
||||||
|
f8 = "f9";
|
||||||
|
f9 = "f10";
|
||||||
|
f10 = "f11";
|
||||||
|
f13 = "f12";
|
||||||
|
u = "sysrq";
|
||||||
|
k = "home";
|
||||||
|
l = "pageup";
|
||||||
|
"," = "end";
|
||||||
|
"." = "pagedown";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
(defcfg
|
|
||||||
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
|
|
||||||
output (uinput-sink "KMonad Virtal Keyboard"
|
|
||||||
"/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap -option compose:ralt")
|
|
||||||
cmp-seq ralt
|
|
||||||
cmp-seq-delay 5
|
|
||||||
fallthrough true
|
|
||||||
allow-cmd false
|
|
||||||
)
|
|
||||||
|
|
||||||
(defalias
|
|
||||||
ovrvw M-w #|Overview button|#
|
|
||||||
fsc (multi-tap 150 M-pgup M-f11)
|
|
||||||
cps (tap-hold 400 esc caps) #|Caps lock replacement|#
|
|
||||||
medkey (multi-tap 200 KeyNextSong KeyPreviousSong) #|Play-pause key|#
|
|
||||||
mute (multi-tap 200 KeyMute M-KeyMute) #|Mute audio and mic|#
|
|
||||||
|
|
||||||
#|Handling function key|#
|
|
||||||
fk (layer-toggle fkeys)
|
|
||||||
fkk (layer-switch fkeys)
|
|
||||||
fks (multi-tap 200 @fk @fkk)
|
|
||||||
fkout (layer-switch default)
|
|
||||||
fko (multi-tap 200 @fk @fkout)
|
|
||||||
)
|
|
||||||
|
|
||||||
(defsrc
|
|
||||||
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f13
|
|
||||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
|
||||||
tab q w e r t y u i o p [ ] ret
|
|
||||||
lmet a s d f g h j k l ; ' \
|
|
||||||
lsft 102d z x c v b n m , . / rsft
|
|
||||||
lctl lalt spc ralt rctl up
|
|
||||||
left down rght
|
|
||||||
)
|
|
||||||
|
|
||||||
(deflayer default
|
|
||||||
esc KeyBack KeyForward KeyRefresh @fsc @ovrvw brdn brup @mute pp @medkey del
|
|
||||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
|
||||||
tab q w e r t y u i o p [ ] ret
|
|
||||||
@cps a s d f g h j k l ; ' \
|
|
||||||
lsft @fks z x c v b n m , . / rsft
|
|
||||||
lctl lalt spc ralt rctl up
|
|
||||||
left down rght
|
|
||||||
)
|
|
||||||
|
|
||||||
(deflayer fkeys
|
|
||||||
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
|
|
||||||
_ _ _ _ _ _ _ _ _ kp/ kp* kp- KeyHome _
|
|
||||||
_ prnt _ _ _ _ _ _ 7 8 9 kp+ pgup _
|
|
||||||
_ _ _ _ _ _ _ _ 4 5 6 kprt pgdn
|
|
||||||
_ @fko _ _ _ _ _ _ _ 1 2 3 KeyEnd
|
|
||||||
_ _ _ 0 . _
|
|
||||||
_ _ _
|
|
||||||
)
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
keyd = {
|
keyd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keyboards.main = {
|
keyboards.main = {
|
||||||
|
ids = [ "1ea7:0907" ];
|
||||||
settings = {
|
settings = {
|
||||||
main = { capslock = "overload(meta, esc)"; };
|
main = { capslock = "overload(meta, esc)"; };
|
||||||
shift = {
|
shift = {
|
||||||
|
|
@ -24,7 +25,6 @@
|
||||||
rightshift = "capslock";
|
rightshift = "capslock";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
ids = [ "1ea7:0907" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue