diff --git a/home/kutu/config.rb b/home/kutu/config.rb index 95391f6..3b7a212 100644 --- a/home/kutu/config.rb +++ b/home/kutu/config.rb @@ -1,7 +1,9 @@ +run "bash @src@/startup.sh" + bind_key 23, true, "firefox" bind_key 24, true, :kill_window bind_key 25, true, "kitty" -bind_key 26, true, "bash /home/me/dotfiles/scripts/power.sh" +bind_key 26, true, "bash @src@/power.sh" bind_key 123, false, %q( pactl set-sink-volume @DEFAULT_SINK@ +5%; @@ -44,7 +46,7 @@ bind_key 54, true, 'kitty -e fish -c "y"' bind_key 53, true, 'kitty -e fish -c "editor"' bind_key 41, true, 'kitty -e fish -c "btop"' -bind_key 40, true, "bash /home/me/dotfiles/scripts/run.sh" +bind_key 40, true, "bash @src@/run.sh" bind_key 56, true, :add_workspace bind_key 57, true, :delete_workspace diff --git a/home/kutu/default.nix b/home/kutu/default.nix index 8bcaabb..3ebd407 100644 --- a/home/kutu/default.nix +++ b/home/kutu/default.nix @@ -1,5 +1,13 @@ -{ ... }: +{ pkgs, ... }: +let + script = pkgs.substitute { + src = ./config.rb; + substitutions = [ + "--replace-fail" "@src@" "${./scripts}" + ]; + }; +in { - home.file.".config/kutu/config.rb".source = ./config.rb; + home.file.".config/kutu/config.rb".source = script; } diff --git a/scripts/caffiene.sh b/home/kutu/scripts/caffiene.sh similarity index 100% rename from scripts/caffiene.sh rename to home/kutu/scripts/caffiene.sh diff --git a/scripts/power.sh b/home/kutu/scripts/power.sh similarity index 100% rename from scripts/power.sh rename to home/kutu/scripts/power.sh diff --git a/scripts/run.sh b/home/kutu/scripts/run.sh similarity index 100% rename from scripts/run.sh rename to home/kutu/scripts/run.sh diff --git a/scripts/startup.sh b/home/kutu/scripts/startup.sh similarity index 100% rename from scripts/startup.sh rename to home/kutu/scripts/startup.sh diff --git a/hosts/tardis/default.nix b/hosts/tardis/default.nix index d2dc11c..e67b678 100644 --- a/hosts/tardis/default.nix +++ b/hosts/tardis/default.nix @@ -35,6 +35,9 @@ dmenu pulseaudio brightnessctl + maim + xclip + xsel inputs.kutu.packages.${stdenv.hostPlatform.system}.default ]);