Made it working with stow

This commit is contained in:
2021-07-08 14:15:30 +02:00
parent ee1c963f54
commit fb116c6f4d
25 changed files with 0 additions and 0 deletions

30
all/.config/i3blocks/activity Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/sh
NONE="None"
get_current_activity() {
activity=$(hamster current)
if [ "$activity" = "No activity" ]; then
echo $NONE
else
IFS=' '
read -ra ADDR <<< "$activity"
echo "${ADDR[2]}"
fi
}
case "$BLOCK_BUTTON" in
1|2|3)
current_activity=$(get_current_activity)
if [ "$current_activity" = "$NONE" ]; then
hamster start "Comu@Work#Flexibill App"
else
hamster stop
fi
esac
current_activity=$(get_current_activity)
echo "$LABEL $current_activity"
echo "$LABEL $current_activity"