feat(yabai)!: add JankyBorders
This commit is contained in:
parent
65b3a48cf2
commit
0b71023f81
2 changed files with 54 additions and 46 deletions
|
@ -1,26 +1,23 @@
|
||||||
{ lib, fetchFromGitHub, darwin, ... }:
|
{ lib, fetchFromGitHub, darwin, ... }:
|
||||||
|
|
||||||
# TODO: fix clang issue (works with native `/usr/bin/clang`)
|
|
||||||
#
|
|
||||||
# > Undefined symbols for architecture arm64:
|
|
||||||
# > "_SLSWindowManagementBridgeSetDelegate", referenced from:
|
|
||||||
# > _main in main.o
|
|
||||||
# > ld: symbol(s) not found for architecture arm64
|
|
||||||
|
|
||||||
darwin.apple_sdk.stdenv.mkDerivation rec {
|
darwin.apple_sdk.stdenv.mkDerivation rec {
|
||||||
pname = "JankyBorders";
|
pname = "JankyBorders";
|
||||||
version = "dev";
|
version = "dev";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "FelixKratz";
|
owner = "FelixKratz";
|
||||||
repo = "JankyBorders";
|
repo = pname;
|
||||||
rev = "6bc201813bc163c6f5a20d5fa744f7b0d1f31773";
|
rev = "e2af0248fa40ead3f17f1d16c6288b8ddfd9f505";
|
||||||
sha256 = "sha256-b4+aJkP1yqz8x5EUDDVQmqrmLus+Y69RViAeaLvfGXE=";
|
hash = "sha256-rYA6b6d3c4pJVUIV77z/JMcgKbZ+4qZdxkI21LwZcG4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with darwin.apple_sdk.frameworks; [
|
buildInputs = with darwin.apple_sdk.frameworks; [
|
||||||
AppKit
|
AppKit
|
||||||
SkyLight
|
SkyLight
|
||||||
darwin.apple_sdk.Libsystem
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp ./bin/borders $out/bin/
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,11 +14,17 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable (
|
||||||
environment.systemPackages = [
|
let
|
||||||
(pkgs.callPackage ./setbg {
|
borders = pkgs.callPackage ./borders { };
|
||||||
|
setbg = pkgs.callPackage ./setbg {
|
||||||
yabai = config.services.yabai.package;
|
yabai = config.services.yabai.package;
|
||||||
})
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
borders
|
||||||
|
setbg
|
||||||
];
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
@ -26,7 +32,12 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.yabai;
|
package = pkgs.yabai;
|
||||||
enableScriptingAddition = true;
|
enableScriptingAddition = true;
|
||||||
extraConfig = (builtins.readFile ./yabairc);
|
extraConfig = /* bash */ ''
|
||||||
|
${builtins.readFile ./yabairc}
|
||||||
|
|
||||||
|
# Load JankyBorders
|
||||||
|
${borders}/bin/borders active_color=0xffe1e3e4 inactive_color=0xff494d64 width=5.0 &
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
skhd = {
|
skhd = {
|
||||||
|
@ -54,7 +65,7 @@ in
|
||||||
"font-sf-mono-nerd-font-ligaturized"
|
"font-sf-mono-nerd-font-ligaturized"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
maintainers = with lib.maintainers; [ reo101 ];
|
maintainers = with lib.maintainers; [ reo101 ];
|
||||||
|
|
Loading…
Reference in a new issue