diff --git a/waybar-config.jsonc b/waybar-config.jsonc new file mode 100644 index 0000000..f254a4e --- /dev/null +++ b/waybar-config.jsonc @@ -0,0 +1,19 @@ +{ + // Add "custom/timetrack" to whichever module list you use, e.g.: + "modules-center": ["custom/timetrack"], + + "custom/timetrack": { + // Update this path to wherever you placed time_track.py + "exec": "/home/fegger/Code/projects/time_track/time_track.py status", + "interval": 5, + + // IMPORTANT: do not leave this empty. "{}" is replaced by the + // "text" field from the JSON emitted by the script. + "format": "{}", + + "return-type": "json", + "on-click": "/home/fegger/Code/projects/time_track/time_track.py toggle", + "on-click-right": "/home/fegger/Code/projects/time_track/time_track.py timesheet week", + "tooltip": true + } +}