aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/hjem/programs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/terminal/hjem/programs')
-rw-r--r--modules/terminal/hjem/programs/broot.nix29
-rw-r--r--modules/terminal/hjem/programs/helix.nix2
-rw-r--r--modules/terminal/hjem/programs/tmux.nix35
3 files changed, 38 insertions, 28 deletions
diff --git a/modules/terminal/hjem/programs/broot.nix b/modules/terminal/hjem/programs/broot.nix
index 72098f8..2907a85 100644
--- a/modules/terminal/hjem/programs/broot.nix
+++ b/modules/terminal/hjem/programs/broot.nix
@@ -4,21 +4,22 @@
lib,
...
}: let
- cfg = config.collinux.terminal.shells.fish;
+ cfg = config.collinux.terminal.programs.broot;
- conf = {
- skin = catppuccin_skin;
- verbs = [
- {
- name = "open-code";
- key = "enter";
- execution = "$EDITOR +{line} {file}";
- working_dir = "{root}";
- apply_to = "file";
- leave_broot = true;
- }
- ];
- };
+ conf =
+ {
+ verbs = [
+ {
+ name = "open-code";
+ key = "enter";
+ execution = "$EDITOR +{line} {file}";
+ working_dir = "{root}";
+ apply_to = "file";
+ leave_broot = true;
+ }
+ ];
+ }
+ // (lib.optionalAttrs (cfg.theme == "catppuccin") {skin = catppuccin_skin;});
catppuccin_skin = {
input = "rgb(205, 214, 244) none";
diff --git a/modules/terminal/hjem/programs/helix.nix b/modules/terminal/hjem/programs/helix.nix
index 2c30881..e66877b 100644
--- a/modules/terminal/hjem/programs/helix.nix
+++ b/modules/terminal/hjem/programs/helix.nix
@@ -134,7 +134,7 @@
if cfg.theme == "catppuccin"
then "catppuccin_mocha_transparent"
else if cfg.theme == "adwaita"
- then "adwaita_dark"
+ then "adwaita-dark"
else "";
};
in
diff --git a/modules/terminal/hjem/programs/tmux.nix b/modules/terminal/hjem/programs/tmux.nix
index 6ff485c..738e729 100644
--- a/modules/terminal/hjem/programs/tmux.nix
+++ b/modules/terminal/hjem/programs/tmux.nix
@@ -104,7 +104,7 @@
done
'';
- scripts.launchSessionizer = ''broot --only-folders --conf ~/.config/tmux/broot/sessionizer.toml'';
+ scripts.launchSessionizer = ''${pkgs.broot}/bin/broot --only-folders --conf ~/.config/tmux/broot/sessionizer.toml'';
# -- FIND FILE --
broot_file_config = {
@@ -132,7 +132,7 @@
];
};
- scripts.launchFindFile = ''broot --conf ~/.config/tmux/broot/file.toml'';
+ scripts.launchFindFile = ''${pkgs.broot}/bin/broot --conf ~/.config/tmux/broot/file.toml'';
# -- BAR --
scripts.battery = ''
@@ -161,20 +161,27 @@
tmux set -g window-status-separator ""
tmux set -g status-right "#[fg=color243]%l:%M #[fg=red]#(${scriptsDir}/battery.sh) "
+ '';
- bg_dark="#181825"
+ scripts.catpuccinNoBorders =
+ if (cfg.theme == "catppuccin")
+ then ''
+ bg_dark="#181825"
- ## pane borders
- tmux set -g pane-border-style fg=$bg_dark,bg=$bg_dark
- tmux set -g pane-active-border-style fg=$bg_dark,bg=$bg_dark
+ ## pane borders
+ tmux set -g pane-border-style fg=$bg_dark,bg=$bg_dark
+ tmux set -g pane-active-border-style fg=$bg_dark,bg=$bg_dark
- ## pane backgrounds
- # Set the foreground/background color for the active window
- tmux set -g window-active-style bg=$bg
+ ## pane backgrounds
+ # Set the foreground/background color for the active window
+ tmux set -g window-active-style bg=bg
- # Set the foreground/background color for all other windows
- tmux set -g window-style bg=$bg_dark
- '';
+ # Set the foreground/background color for all other windows
+ tmux set -g window-style bg=$bg_dark
+ ''
+ else ''
+ tmux set -g status-bg "#262626"
+ '';
# -- FZF EXEC --
scripts.tmuxDoc = ''
@@ -194,7 +201,7 @@
tmux list-commands -F $'#{command_list_name}#{?command_list_alias,\n#{command_list_alias},}'
}
- selected_cmd=$(all_cmds | fzf --bind 'enter:accept-or-print-query,tab:replace-query,alt-backspace:clear-query' --prompt : --preview "~/.config/tmux/scripts/tmux-doc.sh $(printf '{}' | cut -d' ' -f1)")
+ selected_cmd=$(all_cmds | ${pkgs.fzf}/bin/fzf --bind 'enter:accept-or-print-query,tab:replace-query,alt-backspace:clear-query' --prompt : --preview "~/.config/tmux/scripts/tmux-doc.sh $(printf '{}' | cut -d' ' -f1)")
test -z "$selected_cmd" && exit
tmux $(echo "$selected_cmd" | sed "s@~@$HOME@g")
@@ -271,6 +278,7 @@
# Statusbar
run-shell "${scriptsDir}/bar.sh"
+ run-shell "${scriptsDir}/catppuccin-borders.sh"
# Scrollback
set-window-option -g mode-keys vi
@@ -322,6 +330,7 @@ in
# Bar
".config/tmux/scripts/battery.sh" = e scripts.battery;
".config/tmux/scripts/bar.sh" = e scripts.bar;
+ ".config/tmux/scripts/catppuccin-borders.sh" = e scripts.catpuccinNoBorders;
".config/tmux/tmux.conf".text = tmux-conf;
};