Tomatimer, un cosito de dmenu para tutos, xset con y sin bateria
This commit is contained in:
parent
a01da9fcfa
commit
3382daa6c3
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ -d /sys/class/power_supply/BAT0/ ] && xset s 0 550 || xset s 0 900
|
|
@ -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 &)"
|
|
@ -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
|
Reference in New Issue