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",
|
"battery",
|
||||||
"custom/wakatime",
|
"custom/wakatime",
|
||||||
"clock",
|
"clock",
|
||||||
|
"custom/timewarrior",
|
||||||
|
"idle_inhibitor",
|
||||||
"custom/logout"
|
"custom/logout"
|
||||||
],
|
],
|
||||||
"wlr/taskbar": {
|
"wlr/taskbar": {
|
||||||
|
@ -199,6 +201,14 @@
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"interval": 600
|
"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": {
|
"custom/logout": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"on-click": "wlogout",
|
"on-click": "wlogout",
|
||||||
|
|
|
@ -77,7 +77,7 @@ button {
|
||||||
#user,
|
#user,
|
||||||
#bluetooth,
|
#bluetooth,
|
||||||
#custom-wakatime,
|
#custom-wakatime,
|
||||||
#custom-toggl,
|
#custom-timewarrior,
|
||||||
#custom-logout {
|
#custom-logout {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding: 3px 10px;
|
padding: 3px 10px;
|
||||||
|
@ -225,10 +225,11 @@ button {
|
||||||
color: #282828;
|
color: #282828;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-toggl.active {
|
#custom-timewarrior.active {
|
||||||
background-color: #98971a;
|
background-color: #98971a;
|
||||||
|
color: #282828;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-toggl.inactive {
|
#custom-timewarrior.inactive {
|
||||||
background-color: #928374;
|
background-color: #928374;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue