diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-03-13 22:20:02 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-03-13 22:20:02 +0200 |
| commit | 1817d865fb1a7e106f9d40ce63615e53f424bb17 (patch) | |
| tree | de7cb81146b6d2940ff16459dd3a5d70af50384f | |
| parent | fe549e4bcadc94529bc6c8371b3bd2c0c7ef3ebd (diff) | |
| download | dotfiles-1817d865fb1a7e106f9d40ce63615e53f424bb17.tar.gz dotfiles-1817d865fb1a7e106f9d40ce63615e53f424bb17.zip | |
Improved look
| -rwxr-xr-x | update-title | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/update-title b/update-title index 60efe12..e01e34f 100755 --- a/update-title +++ b/update-title @@ -1,21 +1,26 @@ #!/bin/bash while true; do - bg_color="#000000" # Initial background color - text_color="#979286" - font="%{T1}" + bg_color="#000000" # Initial background color (white) + #bg_color="#FFFFFF" # Initial background color (white) + text_color="#FFFFFF" # Initial text color (black) + #text_color="#000000" # Initial text color (black) + font="%{T1}" # Initial font setting active_node=$(xdotool getactivewindow) if [[ "$1" -eq "$active_node" ]]; then - bg_color="#000000" # Change the background color when the window is active - text_color="#FFFFFF" - font="%{T2}" + bg_color="#000000" # Change the background color when the window is active (white) + #bg_color="#FFFFFF" # Change the background color when the window is active (white) + text_color="#FFFFFF" # Change the text color when the window is active (black) + #text_color="#000000" # Change the text color when the window is active (black) + font="%{T2}" # Change the font setting when the window is active fi title=$(xtitle "$1") - echo -e "%{B$bg_color}%{F$text_color}$font%{c}%{A1:bspc node $1 -f:}%{A2:bspc node $1 -c:}%{A5:bspc node $1 -d last:}%{A4:bspc node $1 -s biggest && ~/.scripts/title-bar:}$title%{A}%{A}%{A}%{A}%{F#909090}%{r}%{A:bspc node $1 -c:}x %{A}" + echo -e "%{B$bg_color}%{F$text_color}$font%{c}%{A1:bspc node $1 -f:}%{A2:bspc node $1 -c:}%{A5:bspc node $1 -d last:}%{A4:bspc node $1 -s biggest && ~/.scripts/title-bar:} $title%{A}%{A}%{A}%{A}%{F#FFFFFF}%{r}%{A:bspc node $1 -c:}x %{A}" + #echo -e "%{B$bg_color}%{F$text_color}$font%{c}%{A1:bspc node $1 -f:}%{A2:bspc node $1 -c:}%{A5:bspc node $1 -d last:}%{A4:bspc node $1 -s biggest && ~/.scripts/title-bar:}$title%{A}%{A}%{A}%{A}%{F#000000}%{r}%{A:bspc node $1 -c:}x %{A}" sleep 0.5 done |
