diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/app_populator | 9 | ||||
-rwxr-xr-x | .local/bin/notify_phone | 2 | ||||
-rwxr-xr-x | .local/bin/td | 2 | ||||
-rwxr-xr-x | .local/bin/toggle_notifications.sh | 16 | ||||
-rw-r--r-- | .local/share/yadm/archive | bin | 2940 -> 3313 bytes |
5 files changed, 17 insertions, 12 deletions
diff --git a/.local/bin/app_populator b/.local/bin/app_populator new file mode 100755 index 0000000..6182b98 --- /dev/null +++ b/.local/bin/app_populator | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | # https://www.reddit.com/r/commandline/comments/q9skbh/how_to_remember_what_applications_you_have/ | ||
3 | #< Populates the applist | ||
4 | # cat ~/.local/share/applist | fzf | ||
5 | |||
6 | ls /usr/share/man/man1 2> /dev/null | | ||
7 | sed -e 's/\.1.*//' | | ||
8 | xargs whatis 2> /dev/null | | ||
9 | sed -e '/unknown subject/d' -e 's/ *- / - /' > ~/.local/share/applist | ||
diff --git a/.local/bin/notify_phone b/.local/bin/notify_phone index 6228f73..adf1464 100755 --- a/.local/bin/notify_phone +++ b/.local/bin/notify_phone | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | TOKEN=795983515:AAHAPgakm-BbRKNodF9a0z_OH2VDsIxpm_Q | 3 | TOKEN=$(pass telegram/notifier) |
4 | CHAT_ID=4903620 | 4 | CHAT_ID=4903620 |
5 | INPUT=$@ | 5 | INPUT=$@ |
6 | MESSAGE=${INPUT:-"all done"} | 6 | MESSAGE=${INPUT:-"all done"} |
diff --git a/.local/bin/td b/.local/bin/td index f15c0c6..dad71f1 100755 --- a/.local/bin/td +++ b/.local/bin/td | |||
@@ -21,6 +21,6 @@ if [[ $? -ne 0 ]]; then | |||
21 | exit 0 | 21 | exit 0 |
22 | fi | 22 | fi |
23 | 23 | ||
24 | echo REM "${task_date}" AT "${task_time}" +45 *15 MSG %\""${task_description}"%\" %c% >> "${HOME}/nextcloud/remind/050-events.rem" | 24 | echo REM "${task_date}" AT "${task_time}" +45 *15 MSG %\""${task_description}"%\" %c% >> "${HOME}/nextcloud/virtuals/remind/050-events.rem" |
25 | 25 | ||
26 | notify-send "notification set!" "${task_date} at ${task_time}" --app-name="remind" --icon="checkmark" | 26 | notify-send "notification set!" "${task_date} at ${task_time}" --app-name="remind" --icon="checkmark" |
diff --git a/.local/bin/toggle_notifications.sh b/.local/bin/toggle_notifications.sh index 9b700b5..6818728 100755 --- a/.local/bin/toggle_notifications.sh +++ b/.local/bin/toggle_notifications.sh | |||
@@ -1,14 +1,10 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | TOGGLE=$HOME/.local/share/.pause_notifications | 3 | if $(dunstctl is-paused); then |
4 | |||
5 | if [ ! -e $TOGGLE ]; then | ||
6 | touch $TOGGLE | ||
7 | dunstify --appname="notifications" --icon="chronometer-pause" "pausing" -u low | ||
8 | sleep 3 | ||
9 | killall -SIGUSR1 dunst # pause | ||
10 | else | ||
11 | rm $TOGGLE | ||
12 | killall -SIGUSR2 dunst # resume | ||
13 | dunstify --appname="notifications" --icon="chronometer-start" "here's what happened" -u low | 4 | dunstify --appname="notifications" --icon="chronometer-start" "here's what happened" -u low |
5 | dunstctl set-paused false | ||
6 | else | ||
7 | dunstify --appname="notifications" --icon="chronometer-pause" "pausing" -u low | ||
8 | sleep 2 | ||
9 | dunstctl set-paused true | ||
14 | fi | 10 | fi |
diff --git a/.local/share/yadm/archive b/.local/share/yadm/archive index b5ea7de..b68d190 100644 --- a/.local/share/yadm/archive +++ b/.local/share/yadm/archive | |||
Binary files differ | |||