waybar: tweak Time Warrior integration
This commit is contained in:
parent
b1da46dcb0
commit
f2baa47bed
2 changed files with 14 additions and 3 deletions
|
@ -20,6 +20,8 @@
|
|||
"battery",
|
||||
"custom/wakatime",
|
||||
"clock",
|
||||
"custom/timewarrior",
|
||||
"idle_inhibitor",
|
||||
"custom/logout"
|
||||
],
|
||||
"wlr/taskbar": {
|
||||
|
@ -199,6 +201,14 @@
|
|||
"return-type": "json",
|
||||
"interval": 600
|
||||
},
|
||||
"custom/timewarrior": {
|
||||
"exec": "python3 $HOME/.config/waybar/resources/custom_modules/time_warrior_waybar.py",
|
||||
"format": "{}",
|
||||
"on-click": "timew stop && notify-send 'Time Warrior' 'Timer stopped'",
|
||||
"on-click-right": "timew continue && notify-send 'Time Warrior' 'Timer resumed'",
|
||||
"return-type": "json",
|
||||
"interval": 5
|
||||
},
|
||||
"custom/logout": {
|
||||
"format": "",
|
||||
"on-click": "wlogout",
|
||||
|
|
|
@ -77,7 +77,7 @@ button {
|
|||
#user,
|
||||
#bluetooth,
|
||||
#custom-wakatime,
|
||||
#custom-toggl,
|
||||
#custom-timewarrior,
|
||||
#custom-logout {
|
||||
font-weight: 400;
|
||||
padding: 3px 10px;
|
||||
|
@ -225,10 +225,11 @@ button {
|
|||
color: #282828;
|
||||
}
|
||||
|
||||
#custom-toggl.active {
|
||||
#custom-timewarrior.active {
|
||||
background-color: #98971a;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#custom-toggl.inactive {
|
||||
#custom-timewarrior.inactive {
|
||||
background-color: #928374;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue