Added floating terminal and floating ipython

This commit is contained in:
marc
2023-02-12 17:27:28 +01:00
parent 9292866a87
commit 339a62d601
3 changed files with 16 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ in
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable { samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
"${i3Cfg.mod}+Return" = "exec ${pkgs.alacritty}/bin/alacritty"; "${i3Cfg.mod}+Return" = "exec ${pkgs.alacritty}/bin/alacritty";
"${i3Cfg.mod}+Shift+Return" = "exec ${pkgs.alacritty}/bin/alacritty -t floating-term";
}; };
}; };
} }

View File

@@ -78,6 +78,14 @@ in {
window = { window = {
border = 1; border = 1;
titlebar = false; titlebar = false;
commands = [
{
# Allow floating terminals
command = "floating enable";
criteria = { title="^floating-term$"; };
}
];
}; };
gaps = { gaps = {

View File

@@ -5,6 +5,7 @@
let let
cfg = config.samfelag.modules.dev.devenv; cfg = config.samfelag.modules.dev.devenv;
i3Cfg = config.samfelag.modules.desktop.i3;
in in
{ {
options.samfelag.modules.dev.devenv = { options.samfelag.modules.dev.devenv = {
@@ -19,6 +20,11 @@ in
devenv = "source $HOME/.local/share/devenv/devenv.sh"; devenv = "source $HOME/.local/share/devenv/devenv.sh";
}; };
# TODO: This assumes we have alacritty and a python39 devenv set up (may want to fix this at some point)
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
"${i3Cfg.mod}+Shift+P" = "exec ${pkgs.alacritty}/bin/alacritty -t floating-term -e zsh -c \"direnv exec ~/sandbox/python39 ipython\"";
};
# - Requirements ----------------------------- # - Requirements -----------------------------
samfelag.modules.dev.direnv.enable = true; samfelag.modules.dev.direnv.enable = true;