-
-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fail tests if test scripts exit's with none 0 code - don't expand option by default - check all if colors are expanded - check if module text is not expanded
- Loading branch information
Showing
5 changed files
with
35 additions
and
8 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
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 +1 @@ | ||
@catppuccin_status_application #[fg=#f5c2e7,bg=default,nobold,nounderscore,noitalics] #[fg=#11111b,bg=#f5c2e7] #[fg=#cdd6f4,bg=#45475a,nobold] <application>#[fg=#45475a,bg=default]█ | ||
E:@catppuccin_status_application #[fg=#f5c2e7,bg=default,nobold,nounderscore,noitalics] #[fg=#11111b,bg=#f5c2e7] #[fg=#cdd6f4,bg=#45475a,nobold] <application>#[fg=#45475a,bg=default]█ |
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
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,16 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Returns the value of given tmux option. | ||
# First argument is the option name, e.g. @catppuccin_flavor. | ||
# | ||
# Usage: `get_option @catppuccin_flavor` | ||
# Would return: `mocha` | ||
# | ||
# The option is given as a format string. | ||
get_option() { | ||
local option | ||
option=$1 | ||
|
||
tmux display-message -p "#{${option}}" | ||
} | ||
|
||
# Prints the given tmux option to stdout. | ||
# First argument is the option name, e.g. @catppuccin_flavor. | ||
# | ||
# Usage: `print-option @catppuccin_flavor` | ||
# Usage: `print_option @catppuccin_flavor` | ||
# Would print: `@catppuccin_flavor mocha` | ||
# | ||
# The variable given is expanded as a format string. | ||
# The option is given as a format string. | ||
print_option() { | ||
local option | ||
option=$1 | ||
|
||
printf "\n%s " "${option}" | ||
tmux display-message -p "#{E:${option}}" | ||
get_option "$option" | ||
} |