added jupyter-calculator
This commit is contained in:
30
i3blocks/activity
Executable file
30
i3blocks/activity
Executable 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"
|
@@ -10,6 +10,11 @@
|
||||
separator=true
|
||||
separator_block_width=15
|
||||
|
||||
[activity]
|
||||
command=./activity
|
||||
interval=10
|
||||
LABEL=
|
||||
|
||||
[volume]
|
||||
command=./volume
|
||||
LABEL=
|
||||
@@ -24,4 +29,4 @@ LABEL=
|
||||
[calendar]
|
||||
command=./calendar
|
||||
interval=1
|
||||
LABEL=
|
||||
|
||||
|
Reference in New Issue
Block a user