diff --git a/.local/bin/equiset b/.local/bin/equiset new file mode 100755 index 0000000..cdc8333 --- /dev/null +++ b/.local/bin/equiset @@ -0,0 +1,3 @@ +#!/bin/sh + +[ -d /sys/class/power_supply/BAT0/ ] && xset s 0 550 || xset s 0 900 diff --git a/.local/bin/pom b/.local/bin/pom new file mode 100755 index 0000000..f350791 --- /dev/null +++ b/.local/bin/pom @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +set -euf -o pipefail + +TITLE="Tomatimer!" +ICON1="$HOME/img/.icn/tomate1.png" +ICON2="$HOME/img/.icn/tomate2.png" +BEEP="paplay ~/snd/.notification.ogg" +TIMER=1800 + +notify-send "$TITLE" --icon="$ICON2" "Te aviso en $((TIMER/60)) minutos :)" + +eval "(sleep $TIMER && notify-send '$TITLE' --icon=$ICON1 'Hora del recreo. Sali de la compu' && $BEEP &)" diff --git a/.local/bin/tutos b/.local/bin/tutos new file mode 100755 index 0000000..2a65e11 --- /dev/null +++ b/.local/bin/tutos @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +set -euf -o pipefail + +MAINDIR="$HOME/vid/Learning/" + +cd "$MAINDIR" +SEL=$(fd -d 1 'ztm' | dmenu -p "Tuto ") +cd "$MAINDIR/$SEL" +PLAY=$(fd -d 1 | dmenu -p "Play ") +if [[ $PLAY == "" ]]; then + exit 0 +else + mpv "$PLAY" +fi