added some desktop files

This commit is contained in:
mpuchstein
2025-01-10 15:27:20 +01:00
parent 6278b504f6
commit 3fb32317e4
264 changed files with 23574 additions and 0 deletions

14
nwg-panel/executors/github.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/bash
# Based on the 'Github notifications' example from Waybar's Wiki
# Depends on jq Command-line JSON processor
# Obtain a notifications token at https://github.com/settings/tokens
# save it to a file as below.
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