-
-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve transparent background (#175)
* feat: improve transparent background * fix: fix for config2 * chore: remove status right separator invert * chore: update config presets in documentation
- Loading branch information
Showing
7 changed files
with
83 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,44 @@ | ||
#!/bin/sh | ||
|
||
build_status_module() { | ||
local index=$1 | ||
local icon=$2 | ||
local color=$3 | ||
local text=$4 | ||
|
||
if [ "$status_fill" = "icon" ] | ||
then | ||
local show_left_separator="#[fg=$color,bg=$thm_gray,nobold,nounderscore,noitalics]$status_left_separator" | ||
local index="$1" | ||
local icon="$2" | ||
local color="$3" | ||
local text="$4" | ||
|
||
if [ "$status_fill" = "icon" ]; then | ||
local show_icon="#[fg=$thm_bg,bg=$color,nobold,nounderscore,noitalics]$icon " | ||
local show_text="#[fg=$thm_fg,bg=$thm_gray] $text" | ||
|
||
local show_right_separator="#[fg=$thm_gray,bg=$thm_bg,nobold,nounderscore,noitalics]$status_right_separator" | ||
|
||
if [ "$status_connect_separator" = "yes" ] | ||
then | ||
if [ "$status_connect_separator" = "yes" ]; then | ||
local show_left_separator="#[fg=$color,bg=$thm_gray,nobold,nounderscore,noitalics]$status_left_separator" | ||
local show_right_separator="#[fg=$thm_gray,bg=$thm_gray,nobold,nounderscore,noitalics]$status_right_separator" | ||
|
||
else | ||
local show_left_separator="#[fg=$color,bg=$thm_bg,nobold,nounderscore,noitalics]$status_left_separator" | ||
local show_right_separator="#[fg=$thm_gray,bg=$thm_bg,nobold,nounderscore,noitalics]$status_right_separator" | ||
local show_left_separator="#[fg=$color,bg=default,nobold,nounderscore,noitalics]$status_left_separator" | ||
local show_right_separator="#[fg=$thm_gray,bg=default,nobold,nounderscore,noitalics]$status_right_separator" | ||
fi | ||
|
||
fi | ||
|
||
if [ "$status_fill" = "all" ] | ||
then | ||
local show_left_separator="#[fg=$color,bg=$thm_gray,nobold,nounderscore,noitalics]$status_left_separator" | ||
|
||
if [ "$status_fill" = "all" ]; then | ||
local show_icon="#[fg=$thm_bg,bg=$color,nobold,nounderscore,noitalics]$icon " | ||
local show_text="#[fg=$thm_bg,bg=$color]$text" | ||
|
||
local show_right_separator="#[fg=$color,bg=$thm_gray,nobold,nounderscore,noitalics]$status_right_separator" | ||
|
||
if [ "$status_connect_separator" = "yes" ] | ||
then | ||
if [ "$status_connect_separator" = "yes" ]; then | ||
local show_left_separator="#[fg=$color,nobold,nounderscore,noitalics]$status_left_separator" | ||
local show_right_separator="#[fg=$color,bg=$color,nobold,nounderscore,noitalics]$status_right_separator" | ||
|
||
else | ||
local show_left_separator="#[fg=$color,bg=$thm_bg,nobold,nounderscore,noitalics]$status_left_separator" | ||
local show_right_separator="#[fg=$color,bg=$thm_bg,nobold,nounderscore,noitalics]$status_right_separator" | ||
local show_left_separator="#[fg=$color,bg=default,nobold,nounderscore,noitalics]$status_left_separator" | ||
local show_right_separator="#[fg=$color,bg=default,nobold,nounderscore,noitalics]$status_right_separator" | ||
fi | ||
|
||
fi | ||
|
||
if [ "$status_right_separator_inverse" = "yes" ] | ||
then | ||
if [ "$status_connect_separator" = "yes" ] | ||
then | ||
local show_right_separator="#[fg=$thm_gray,bg=$color,nobold,nounderscore,noitalics]$status_right_separator" | ||
else | ||
local show_right_separator="#[fg=$thm_bg,bg=$color,nobold,nounderscore,noitalics]$status_right_separator" | ||
fi | ||
fi | ||
|
||
if [ $(($index)) -eq 0 ] | ||
then | ||
local show_left_separator="#[fg=$color,bg=$thm_bg,nobold,nounderscore,noitalics]$status_left_separator" | ||
if [ $(($index)) -eq 0 ]; then | ||
local show_left_separator="#[fg=$color,bg=default,nobold,nounderscore,noitalics]$status_left_separator" | ||
fi | ||
|
||
echo "$show_left_separator$show_icon$show_text$show_right_separator" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters