style: Split out and fixes
This commit is contained in:
parent
1b008c1ae8
commit
43e7a5af46
13 changed files with 111 additions and 91 deletions
28
hm/desktop/redness/default.nix
Normal file
28
hm/desktop/redness/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
# UPST
|
||||
sct = pkgs.sct.overrideAttrs
|
||||
(old: {
|
||||
patches = (old.patches or [ ]) ++ [
|
||||
./sct_aarch64.patch
|
||||
];
|
||||
});
|
||||
in
|
||||
{
|
||||
config = lib.mkIf config.frogeye.desktop.xorg {
|
||||
frogeye.desktop.i3.bindmodes = {
|
||||
"Temperature [R] Red [D] Dust storm [C] Campfire [O] Normal [A] All nighter [B] Blue" = {
|
||||
bindings = {
|
||||
"r" = "exec ${sct}/bin/sct 1000";
|
||||
"d" = "exec ${sct}/bin/sct 2000";
|
||||
"c" = "exec ${sct}/bin/sct 4500";
|
||||
"o" = "exec ${sct}/bin/sct";
|
||||
"a" = "exec ${sct}/bin/sct 8000";
|
||||
"b" = "exec ${sct}/bin/sct 10000";
|
||||
};
|
||||
mod_enter = "y";
|
||||
};
|
||||
};
|
||||
home.packages = [ sct ];
|
||||
};
|
||||
}
|
10
hm/desktop/redness/sct_aarch64.patch
Normal file
10
hm/desktop/redness/sct_aarch64.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -32,6 +32,7 @@ LIBDIR_i386=$(PREFIX)/lib
|
||||
LIBDIR_i686=$(PREFIX)/lib
|
||||
LIBDIR_amd64=$(PREFIX)/lib
|
||||
LIBDIR_x86_64=$(PREFIX)/lib64
|
||||
+LIBDIR_aarch64=$(PREFIX)/lib
|
||||
LIBDIR?=$(LIBDIR_$(MACHINE))
|
||||
MANDIR_Darwin=$(PREFIX)/share/man
|
||||
MANDIR_Linux=$(PREFIX)/share/man
|
Loading…
Add table
Add a link
Reference in a new issue