summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2023-10-13 12:04:14 +0100
committerdakkar <dakkar@thenautilus.net>2023-10-13 11:05:28 +0000
commit13608a19c998b57322b2e4f230dfa050887da5e4 (patch)
treef2464cda29556b1cea8fadd2d095519385dbdc2d
parenttruecolor screen (diff)
downloaddotfiles-13608a19c998b57322b2e4f230dfa050887da5e4.tar.gz
dotfiles-13608a19c998b57322b2e4f230dfa050887da5e4.tar.bz2
dotfiles-13608a19c998b57322b2e4f230dfa050887da5e4.zip
starship: gnu screen
-rw-r--r--.config/starship.toml11
1 files changed, 9 insertions, 2 deletions
diff --git a/.config/starship.toml b/.config/starship.toml
index 690b3fe..0eee1ed 100644
--- a/.config/starship.toml
+++ b/.config/starship.toml
@@ -6,7 +6,7 @@ add_newline = true
format = """
[](fg:user)\
-$username[@](bg:user fg:user_fg)$hostname\
+$username[@](bg:user fg:user_fg)$hostname${custom.screen}\
[](fg:user bg:dir)\
$directory\
[](bg:time fg:dir)\
@@ -44,6 +44,7 @@ palette = 'pastels'
user = '#9A348E'
user_fg = 'white'
user_root = '#FF0000'
+screen_fg = '#00FF00'
time = '#33658A'
time_fg = 'white'
dir = '#DA627D'
@@ -191,4 +192,10 @@ format = '[ $symbol($version)]($style)'
[vcsh]
style = "bg:vcs fg:vcs_fg"
-format = '[ $repo]($style)' \ No newline at end of file
+format = '[ $repo]($style)'
+
+[custom.screen]
+style = "bg:user fg:screen_fg"
+when = '[[ "$TERM" == screen ]]'
+command = 'echo $WINDOW'
+format = '[ 󰹑$output]($style)'