power menu, redshift, polybar
This commit is contained in:
15
.config/polybar/scripts/info-eyestrain/README.md
Normal file
15
.config/polybar/scripts/info-eyestrain/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Script: info-eyestrain
|
||||
|
||||
A script for avoiding digital eye strain.
|
||||
|
||||
It follows the 20-20-20 rule. The timer displays how long it is until the next break. You can add this to send a notification and play a sound when the time is up.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-eyestrain]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-eyestrain.sh
|
||||
interval = 60
|
||||
```
|
||||
10
.config/polybar/scripts/info-eyestrain/info-eyestrain.sh
Normal file
10
.config/polybar/scripts/info-eyestrain/info-eyestrain.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
time=$((20 - $(date '+%-M') % 20))
|
||||
|
||||
#if [ $time -eq 20 ]; then
|
||||
# notify-send 'Break' &
|
||||
# ogg123 beep.ogg &> /dev/null &
|
||||
#fi
|
||||
|
||||
echo "$time"
|
||||
Reference in New Issue
Block a user