Delete .config/waybar directory

This commit is contained in:
OdiousImp2604
2021-02-05 15:40:38 +00:00
committed by GitHub
parent 9b026da9f2
commit 0041c76846
16 changed files with 0 additions and 1119 deletions

View File

@@ -1,3 +0,0 @@
#!/bin/bash
echo '{"text": "'$(playerctl metadata title)'", "alt": "'$(playerctl status)'", "tooltip": "'$(playerctl metadata --format "{{ playerName }} : {{ artist }} - {{ title }}")'", "class": "'$(playerctl status)'" }'

View File

@@ -1,16 +0,0 @@
#!/bin/bash
entries="Logout Suspend Reboot Shutdown"
selected=$(printf '%s\n' $entries | wofi --conf=$HOME/.config/wofi/config.power --style=$HOME/.config/wofi/style.widgets.css | awk '{print tolower($1)}')
case $selected in
logout)
swaymsg exit;;
suspend)
exec systemctl suspend;;
reboot)
exec systemctl reboot;;
shutdown)
exec systemctl poweroff -i;;
esac

View File

@@ -1,7 +0,0 @@
#!/bin/bash
if pgrep river; then
wlogout -p layer-shell
else
nwgbar -o 0.4
fi

View File

@@ -1,11 +0,0 @@
#!/bin/bash
pid=`pgrep wf-recorder`
status=$?
if [ $status != 0 ]
then
echo '{"class": "nothing"}'
else
echo '{"class": "recording"}'
fi;

View File

@@ -1,13 +0,0 @@
#!/bin/bash
LOC="$1"
# HTML encode string as %20
LOCATION=$(sed -e "s/ /%20/g" <<<"$LOC")
content=$(curl -sS "https://thisdavej.azurewebsites.net/api/weather/current?loc=$LOCATION&deg=C")
ICON=$(curl -s 'https://wttr.in/?format=1' | sed 's/[+0-9a-cA-Z°-]//g' )
# echo $ICON
TEMP=$(echo $content | jq -r '. | "\(.temperature)°\(.degType)"' | sed 's/"//g')
TOOLTIP=$(echo $content | jq -r '. | "\(.temperature)°\(.degType)\n\(.skytext)"' | sed 's/"//g')
CLASS=$(echo $content | jq .skytext)
echo '{"text": "'$TEMP'", "tooltip": "'$ICON $TOOLTIP $LOC'", "class": '$CLASS' }'