dynamic color by wal support in tmux/powerline theme

This commit is contained in:
2019-01-13 16:48:17 +01:00
parent ef6928d257
commit 9db9e2b5c4
6 changed files with 50 additions and 25 deletions

View File

@ -2,7 +2,7 @@ set :timer, 25*60 # 25 minute pomodoros
set :timer_break, 5*60 # 5 minute breaks
set :warning, 5*60 # show warning color in tmux at <5 minutes, 0 to disable
set :warning_color, 'red,bold' # warning color for tmux is red/bold
set :break_color, 'magenta' # break color is blue
set :break_color, 'magenta' # break color is blue
set :interval, 1 # refresh timer every 1 second
set :tmux, true # turn on tmux integration
set :tmux_theme, "#[fg=mycolor,bg=mycolor]#[fg=%s]%s#[fg=mycolor,bg=mycolor]"
@ -31,12 +31,17 @@ end
# execute hook after each pomodoro
after do |seconds_left|
`notify-send 'Pomidor skończony' 'Zrób sobie chwilę przerwy, pooddychaj, zapal, napij sie kawy, kogoś wkurz - nie wiem, zajmij się sobią :)'` if seconds_left == 0
`notify-send 'Pomidor skończony' 'Zrób sobie chwilę przerwy, pooddychaj, zapal, napij sie kawy, kogoś wkurz - nie wiem, zajmij się sobą :)'` if seconds_left == 0
`tmux new-window -n _screensaver_ "~/bin/pipes.sh -r 0 -p 50 -t 3 -s 10; tmux set -g status on"` if seconds_left == 0
end
# execute hook after thyme program quits
after(:all) do
`notify-send 'Zrobiłeś pomidory' 'Jesteś z siebie dumny? \nTo dobrze, a teraz walcz dalej.'`
`notify-send 'Zrobiłeś pomidory' 'Pomidorek zakończony......'`
end
option :t, :today, 'open today sheet' do
`vim ~/.thyme_today.md < \`tty\` > \`tty\``
end