generated from 2KAbhishek/bare-minimum
-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reapply "Add support for olimorris/tmux-pomodoro-plus tmux plugin. (#22…
…)" This reverts commit 012d830.
- Loading branch information
1 parent
b34b38f
commit 74214e6
Showing
3 changed files
with
26 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/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 |
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