2 sample executors; fixes to the Executor class

This commit is contained in:
piotr
2021-01-26 03:13:52 +01:00
parent c4bcc29468
commit f4b14ab78e
5 changed files with 171 additions and 33 deletions

11
nwg_panel/executors/github.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
# Based on the 'Github notifications' example from Waybar's Wiki
token=`cat ${HOME}/.config/github/notifications.token`
count=`curl -u nwg-piotr:${token} https://api.github.com/notifications -s | jq '. | length'`
if [[ "$count" != "0" ]]; then
echo /home/piotr/.config/nwg-panel/icons_light/github.svg
echo $count
fi