1
0
Fork 0

Compare commits

..

2 commits

Author SHA1 Message Date
Daniel Kempkens 271d590f40
jankyborders: setup 2024-06-02 00:02:36 +02:00
Daniel Kempkens e08196565d
nvim: install elvish 2024-06-02 00:02:02 +02:00
4 changed files with 40 additions and 2 deletions

View file

@ -10,6 +10,7 @@
:dockerfile
:eex
:elixir
:elvish
:erlang
:fennel
:fish

View file

@ -0,0 +1,32 @@
{ pkgs, config, ... }:
let
pkg = pkgs.jankyborders;
borders-config = [
"style=round"
"active_color=0xaaabb2bf"
"inactive_color=0xdd282a36"
"width=5.0"
"blur_radius=15.0"
"hidpi=on"
"ax_focus=on"
];
in
{
environment.systemPackages = [ pkg ];
launchd.user.agents.jankyborders = {
serviceConfig = {
ProgramArguments = [ "${pkg}/bin/borders" ] ++ borders-config;
KeepAlive = true;
RunAtLoad = true;
ProcessType = "Interactive";
EnvironmentVariables = {
PATH = "${pkg}/bin:${config.environment.systemPath}";
LANG = "en_US.UTF-8";
};
};
};
}

View file

@ -5,7 +5,7 @@ let
yabai-bin = "${yabai-pkg}/bin/yabai";
jq-bin = "${pkgs.jq}/bin/jq";
window_padding = 5;
window_padding = 8;
native-tab-apps = [ "Finder" "TablePlus" ];
@ -13,6 +13,7 @@ let
"Dash"
"Dato"
"IINA"
"LaunchBar"
"Mona"
"System.*einstellungen"
];
@ -85,9 +86,12 @@ in
};
extraConfig = (lib.strings.concatMapStrings (app: "yabai -m rule --add app='^${app}$' manage=off\n") unmanaged-apps) + ''
# Float specific app windows
yabai -m rule --add app="^Finder$" title="^Infos zu|^Kopieren" manage=off
# Auto-float certain windows
yabai -m signal --add event=window_created action='
yabai -m query --windows --window $YABAI_WINDOW_ID | ${jq-bin} -er ".\"can-resize\" or .\"is-floating\"" || \
yabai -m query --windows --window $YABAI_WINDOW_ID | ${jq-bin} -er ".\"can-resize\"" || \
yabai -m window $YABAI_WINDOW_ID --toggle float
'

View file

@ -18,6 +18,7 @@ in
../darwin/skhd.nix
../darwin/yabai.nix
../darwin/jankyborders.nix
];
nix = {