documentation

This commit is contained in:
Ethan Edwards 2020-08-10 08:04:51 -04:00
parent e290571fee
commit b662f2e10d
5 changed files with 8 additions and 0 deletions

View file

@ -21,6 +21,7 @@ Customize the status bar by adding any of these lines to your .tmux.conf as desi
* Switch from default fahrenheit to celsius: `set -g @dracula-show-fahrenheit false` * Switch from default fahrenheit to celsius: `set -g @dracula-show-fahrenheit false`
* Enable powerline symbols: `set -g @dracula-show-powerline true` * Enable powerline symbols: `set -g @dracula-show-powerline true`
* Switch powerline symbols `set -g @dracula-show-left-sep ` for left and `set -g @dracula-show-right-sep ` for right symbol (can set any symbol you like as seperator) * Switch powerline symbols `set -g @dracula-show-left-sep ` for left and `set -g @dracula-show-right-sep ` for right symbol (can set any symbol you like as seperator)
* Adjust the refresh rate for the bar `set -g @dracula-refresh-rate 5` the default is 5, it can accept any number
* Enable military time: `set -g @dracula-military-time true` * Enable military time: `set -g @dracula-military-time true`
* Disable timezone: `set -g @dracula-show-timezone false` * Disable timezone: `set -g @dracula-show-timezone false`
* Switch the left smiley icon `set -g @dracula-show-left-icon session` it can accept `session`, `smiley`, `window`, or any character. * Switch the left smiley icon `set -g @dracula-show-left-icon session` it can accept `session`, `smiley`, `window`, or any character.

View file

@ -19,6 +19,7 @@ Configuration and options can be found at [draculatheme.com/tmux](https://dracul
* Current location based on network with temperature and forecast icon (if available) * Current location based on network with temperature and forecast icon (if available)
* Network connection status and SSID * Network connection status and SSID
* Battery percentage and AC power connection status * Battery percentage and AC power connection status
* Refresh rate control
* CPU usage * CPU usage
* RAM usage * RAM usage
* GPU usage * GPU usage

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# function for getting the refresh rate
get_tmux_option() { get_tmux_option() {
local option=$1 local option=$1
local default_value=$2 local default_value=$2
@ -32,6 +33,7 @@ get_percent()
main() main()
{ {
# storing the refresh rate in the variable RATE, default is 5
RATE=$(get_tmux_option "@dracula-refresh-rate" 5) RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
cpu_percent=$(get_percent) cpu_percent=$(get_percent)
echo "CPU $cpu_percent" echo "CPU $cpu_percent"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# function for getting the refresh rate
get_tmux_option() { get_tmux_option() {
local option=$1 local option=$1
local default_value=$2 local default_value=$2
@ -38,6 +39,7 @@ get_gpu()
} }
main() main()
{ {
# storing the refresh rate in the variable RATE, default is 5
RATE=$(get_tmux_option "@dracula-refresh-rate" 5) RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
gpu_usage=$(get_gpu) gpu_usage=$(get_gpu)
echo "GPU $gpu_usage" echo "GPU $gpu_usage"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# function for getting the refresh rate
get_tmux_option() { get_tmux_option() {
local option=$1 local option=$1
local default_value=$2 local default_value=$2
@ -48,6 +49,7 @@ get_percent()
main() main()
{ {
# storing the refresh rate in the variable RATE, default is 5
RATE=$(get_tmux_option "@dracula-refresh-rate" 5) RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
ram_percent=$(get_percent) ram_percent=$(get_percent)
echo "RAM $ram_percent" echo "RAM $ram_percent"