From a5e3caa0017b5cd763685aa4ef2d2492e71662a9 Mon Sep 17 00:00:00 2001 From: Josh Washburne Date: Thu, 3 Oct 2024 15:05:00 -0400 Subject: [PATCH] Added more terminal configs. --- dotfiles/README.md | 32 +++++++++++- dotfiles/starship/starship-teal.toml | 78 ++++++++++++++++++++++++++++ dotfiles/tmux/tmux.conf | 9 ++++ 3 files changed, 117 insertions(+), 2 deletions(-) create mode 100644 dotfiles/starship/starship-teal.toml create mode 100644 dotfiles/tmux/tmux.conf diff --git a/dotfiles/README.md b/dotfiles/README.md index 2fd2c0b..485169c 100644 --- a/dotfiles/README.md +++ b/dotfiles/README.md @@ -8,7 +8,7 @@ I'll add more themes as I try them out. I use Hack Nerd Font as it has been a so ### Requirements -None. +- [Hack Nerd Font](https://www.nerdfonts.com/) ### Setup @@ -64,6 +64,34 @@ These are used primarily on non-systemd setups. $ cp -r pipewire ~/.config/. ``` +## starship + +I use the same theme for all my terminals, but change the color based on the machine. + +### Requirements + +- [Hack Nerd Font](https://www.nerdfonts.com/) + +### Setup + +``` +$ cp starship/starship-.toml ~/.config/starship.toml +``` + +## tmux + +Very minimal for now. + +### Requirements + +None. + +### Setup + +``` +$ cp -r tmux/ ~/.config/. +``` + ## wireplumber Usually you don't need anything specific in the wireplumber setup, but I have custom bluetooth configurations for my headsets. @@ -75,5 +103,5 @@ None. ### Setup ``` -cp -r wireplumber ~/.config/. +$ cp -r wireplumber ~/.config/. ``` diff --git a/dotfiles/starship/starship-teal.toml b/dotfiles/starship/starship-teal.toml new file mode 100644 index 0000000..8bfe502 --- /dev/null +++ b/dotfiles/starship/starship-teal.toml @@ -0,0 +1,78 @@ +format = """ +[](#7aa26b)\ +$username\ +[](fg:#7aa26b bg:#97c381)\ +$hostname\ +[](fg:#97c381 bg:#b3cb92)\ +$directory\ +[](fg:#b3cb92 bg:#cfd3a2)\ +$git_branch\ +$git_status\ +[](fg:#cfd3a2 bg:#ebdbb2)\ +$nodejs\ +$python\ +$rust\ +[ ](fg:#ebdbb2) +""" + +[username] +show_always = true +style_user = "bg:#7aa26b fg:#3e3e25" +style_root = "bg:#fb4934 fg:#3e3e25" +format = '[ $user ]($style)' + +[hostname] +ssh_only = false +style = "bg:#97c381 fg:#3e3e25" +format = '[ 󰇅 $hostname ]($style)' +trim_at = "" +disabled = false + +[directory] +style = "bg:#b3cb92 fg:#3e3e25" +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +# Here is how you can shorten some long paths by text replacement +# similar to mapped_locations in Oh My Posh: +[directory.substitutions] +"documents" = "󰈙 " +"downloads" = " " +"music" = " " +"pictures" = " " +# Keep in mind that the order matters. For example: +# "Important Documents" = "  " +# will not be replaced, because "Documents" was already substituted before. +# So either put "Important Documents" before "Documents" or use the substituted version: +# "Important  " = "  " + +[git_branch] +symbol = "" +style = "bg:#cfd3a2 fg:#3e3e25" +format = '[[ $symbol $branch ](bg:#cfd3a2 fg:#3e3e25)]($style)' + +[git_status] +style = "bg:#cfd3a2 fg:#3e3e25" +format = '[[($all_status$ahead_behind )](bg:#cfd3a2 fg:#3e3e25)]($style)' + +[nodejs] +symbol = "" +style = "bg:#ebdbb2 fg:#3e3e25" +format = '[[ $symbol ($version) ](bg:#ebdbb2 fg:#3e3e25)]($style)' + +[python] +symbol = "" +style = "bg:#ebdbb2 fg:#3e3e25" +format = '[[ $symbol ($version) ](bg:#ebdbb2 fg:#3e3e25)]($style)' + +[rust] +symbol = "" +style = "bg:#ebdbb2 fg:#3e3e25" +format = '[[ $symbol ($version) ](bg:#ebdbb2 fg:#3e3e25)]($style)' + +#[time] +#disabled = false +#time_format = "%R" # Hour:Minute Format +#style = "bg:#33658A" +#format = '[[ ♥ $time ](bg:#33658A)]($style)' diff --git a/dotfiles/tmux/tmux.conf b/dotfiles/tmux/tmux.conf new file mode 100644 index 0000000..7209b3d --- /dev/null +++ b/dotfiles/tmux/tmux.conf @@ -0,0 +1,9 @@ +# 24-bit color support +# https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6 +set-option -g default-terminal "tmux-256color" +set-option -sg terminal-overrides ",*:RGB" + +# Swap C-b for C-a +set-option -g prefix C-a +unbind-key C-b +bind-key C-a send-prefix