Refactor terminal configurations to streamline shell execution

- Updated Hyprland&Niri keybinds to remove explicit shell invocation for kitty
This commit is contained in:
2026-06-07 16:38:21 -03:00
parent 3ca626dffe
commit 73401750a0
3 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -99,7 +99,7 @@
# Default keybinds # Default keybinds
bind = bind =
[ [
"SUPER,T,exec,kitty -e fish" "SUPER,T,exec,kitty"
"ControlSuper,T,exec,konsole" "ControlSuper,T,exec,konsole"
"SUPER,D,exec,rofi -show drun" "SUPER,D,exec,rofi -show drun"
"ControlSuper,D,exec,rofi -show window" "ControlSuper,D,exec,rofi -show window"
+1 -1
View File
@@ -29,7 +29,7 @@ let
]; ];
#TODO[epic=Binds] Go over binds again #TODO[epic=Binds] Go over binds again
binds = { binds = {
"Mod+T"."spawn-sh" = "${pkgs.lib.getExe pkgs.kitty} -e fish"; #TODO[epic=Binds] This should only be set if having kitty "Mod+T"."spawn-sh" = pkgs.lib.getExe pkgs.kitty; # shell from kitty HM config
"Mod+Control+T"."spawn-sh" = "konsole"; #TODO[epic=Binds] This should only be set if having konsole "Mod+Control+T"."spawn-sh" = "konsole"; #TODO[epic=Binds] This should only be set if having konsole
"Mod+D"."spawn-sh" = "rofi -show drun"; #TODO[epic=Binds] This should only be set if having rofi "Mod+D"."spawn-sh" = "rofi -show drun"; #TODO[epic=Binds] This should only be set if having rofi
"Mod+Space"."spawn-sh" = "dms ipc call spotlight toggle"; #TODO[epic=Binds] This should only be set if having dms "Mod+Space"."spawn-sh" = "dms ipc call spotlight toggle"; #TODO[epic=Binds] This should only be set if having dms
+9 -1
View File
@@ -1,9 +1,16 @@
{ ... }: { { ... }: {
flake.homeManagerModules.wisdomTerminalsKitty = flake.homeManagerModules.wisdomTerminalsKitty =
{ config, lib, ... }: { config, lib, pkgs, ... }:
let let
root = config.chiasson.home; root = config.chiasson.home;
cfg = config.chiasson.home.terminals.kitty; cfg = config.chiasson.home.terminals.kitty;
kittyShellExe =
if config.programs.fish.enable or false then
lib.getExe config.programs.fish.package
else if config.programs.bash.enable or false then
lib.getExe config.programs.bash.package
else
"${pkgs.bash}/bin/bash";
in in
{ {
options.chiasson.home.terminals.kitty.enable = lib.mkEnableOption '' options.chiasson.home.terminals.kitty.enable = lib.mkEnableOption ''
@@ -14,6 +21,7 @@
programs.kitty = { programs.kitty = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
shell ${kittyShellExe}
include dank-tabs.conf include dank-tabs.conf
include dank-theme.conf include dank-theme.conf
allow_remote_control yes allow_remote_control yes