mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-11 23:50:08 +01:00
Revert "Add support for olimorris/tmux-pomodoro-plus tmux plugin. (#22)"
This reverts commit 4646757c9e.
This commit is contained in:
parent
52e3405b67
commit
012d830953
3 changed files with 0 additions and 26 deletions
|
|
@ -119,7 +119,6 @@ set -g @tmux2k-yellow '#f8c800' # change yellow color
|
||||||
- `time`: Show current time and date
|
- `time`: Show current time and date
|
||||||
- `weather`: Show weather information
|
- `weather`: Show weather information
|
||||||
- `window`: tmux window list
|
- `window`: tmux window list
|
||||||
- `pomodoro`: Shows the `#{pomodoro_status}` of the [tmux-pomodoro-plus](https://github.com/olimorris/tmux-pomodoro-plus) plugin (if installed)
|
|
||||||
|
|
||||||
To use plugins:
|
To use plugins:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [ -z "$TMUX" ]; then
|
|
||||||
echo "No tmux session."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check for olimorris/tmux-pomodoro-plus scripts
|
|
||||||
POMODORO_SCRIPT="$HOME/.tmux/plugins/tmux-pomodoro-plus/scripts/pomodoro.sh"
|
|
||||||
POMODORO_HELPER="$HOME/.tmux/plugins/tmux-pomodoro-plus/scripts/helpers.sh"
|
|
||||||
|
|
||||||
if [ -f "$POMODORO_SCRIPT" ]; then
|
|
||||||
. "$POMODORO_SCRIPT"
|
|
||||||
. "$POMODORO_HELPER"
|
|
||||||
fi
|
|
||||||
|
|
||||||
main() {
|
|
||||||
pomodoro_status="$(pomodoro_status)"
|
|
||||||
RATE=$(get_tmux_option "@tmux2k-ping-rate" 5)
|
|
||||||
sleep "$RATE"
|
|
||||||
}
|
|
||||||
|
|
||||||
main
|
|
||||||
|
|
@ -49,7 +49,6 @@ declare -A plugin_colors=(
|
||||||
["weather"]="yellow text"
|
["weather"]="yellow text"
|
||||||
["time"]="light_blue text"
|
["time"]="light_blue text"
|
||||||
["window"]="bg_main blue"
|
["window"]="bg_main blue"
|
||||||
["pomodoro"]="bg_main green"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
get_plugin_colors() {
|
get_plugin_colors() {
|
||||||
|
|
@ -166,7 +165,6 @@ set_theme() {
|
||||||
["weather"]="text yellow"
|
["weather"]="text yellow"
|
||||||
["time"]="text light_blue"
|
["time"]="text light_blue"
|
||||||
["window"]="blue bg_main"
|
["window"]="blue bg_main"
|
||||||
["pomodoro"]="text bg_main"
|
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue