dgy
/
hexagons
Archived
1
0
Fork 0

Tomatimer, un cosito de dmenu para tutos, xset con y sin bateria

This commit is contained in:
deadguy 2020-05-18 06:45:09 -03:00
parent a01da9fcfa
commit 3382daa6c3
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
3 changed files with 29 additions and 0 deletions

3
.local/bin/equiset Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
[ -d /sys/class/power_supply/BAT0/ ] && xset s 0 550 || xset s 0 900

12
.local/bin/pom Executable file
View File

@ -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 &)"

14
.local/bin/tutos Executable file
View File

@ -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