Refactor terminal configurations to streamline shell execution
- Updated Hyprland&Niri keybinds to remove explicit shell invocation for kitty
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
# Default keybinds
|
||||
bind =
|
||||
[
|
||||
"SUPER,T,exec,kitty -e fish"
|
||||
"SUPER,T,exec,kitty"
|
||||
"ControlSuper,T,exec,konsole"
|
||||
"SUPER,D,exec,rofi -show drun"
|
||||
"ControlSuper,D,exec,rofi -show window"
|
||||
|
||||
@@ -29,7 +29,7 @@ let
|
||||
];
|
||||
#TODO[epic=Binds] Go over binds again
|
||||
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+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
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
{ ... }: {
|
||||
flake.homeManagerModules.wisdomTerminalsKitty =
|
||||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
root = config.chiasson.home;
|
||||
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
|
||||
{
|
||||
options.chiasson.home.terminals.kitty.enable = lib.mkEnableOption ''
|
||||
@@ -14,6 +21,7 @@
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
shell ${kittyShellExe}
|
||||
include dank-tabs.conf
|
||||
include dank-theme.conf
|
||||
allow_remote_control yes
|
||||
|
||||
Reference in New Issue
Block a user