aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/system/programs
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-09-01 15:46:40 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-09-01 15:46:40 -0500
commit464e39e3d96b513c0ae9d9b07bcc5ae47b48e622 (patch)
treeb95a6cce1bf4a540d5c777c7f01fc9864d82a26f /modules/terminal/system/programs
parenteb4c6fa1ba1e3a3bfe2291727bc89e0928139b8e (diff)
start using the terminal more on jupiter => make some changes
Diffstat (limited to 'modules/terminal/system/programs')
-rw-r--r--modules/terminal/system/programs/broot.nix29
-rw-r--r--modules/terminal/system/programs/helix.nix2
-rw-r--r--modules/terminal/system/programs/tmux.nix38
3 files changed, 39 insertions, 30 deletions
diff --git a/modules/terminal/system/programs/broot.nix b/modules/terminal/system/programs/broot.nix
index b2060d8..fdb480a 100644
--- a/modules/terminal/system/programs/broot.nix
+++ b/modules/terminal/system/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/system/programs/helix.nix b/modules/terminal/system/programs/helix.nix
index 71dad76..49389ef 100644
--- a/modules/terminal/system/programs/helix.nix
+++ b/modules/terminal/system/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/system/programs/tmux.nix b/modules/terminal/system/programs/tmux.nix
index 322a912..3fb7b73 100644
--- a/modules/terminal/system/programs/tmux.nix
+++ b/modules/terminal/system/programs/tmux.nix
@@ -30,7 +30,7 @@
width=$(tmux display -p "#{pane_width}")
height=$(tmux display -p "#{pane_height}")
- if (( $(echo "$width / $height > 2.5" | bc -l) )); then
+ if (( $(echo "$width / $height > 2.5" | ${pkgs.bc}/bin/bc -l) )); then
tmux split-window -h "$@"
else
tmux split-window -v "$@"
@@ -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")
@@ -242,7 +249,6 @@
tmux-conf = ''
set -g mouse on
- set -g default-terminal "tmux"
# Panes
bind-key -n C-w kill-pane
@@ -272,6 +278,7 @@
# Statusbar
run-shell "${scriptsDir}/bar.sh"
+ run-shell "${scriptsDir}/catppuccin-borders.sh"
# Scrollback
set-window-option -g mode-keys vi
@@ -324,6 +331,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;
};