2 sample executors; fixes to the Executor class
This commit is contained in:
11
nwg_panel/executors/github.sh
Executable file
11
nwg_panel/executors/github.sh
Executable 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
|
Reference in New Issue
Block a user