commit 85dcbdd
hovercats
·
2024-06-19 06:11:43 +0000 UTC
parent 660c2ad
rc/*: set flag e + across the board
12 files changed,
+24,
-0
+2,
-0
1@@ -1,5 +1,7 @@
2 #!/bin/rc
3
4+flag e +
5+
6 switch($1) {
7 case n
8 wid=`{lsw | grep -v `{pfw} | sed '1 p;d'}
M
rc/batt
+2,
-0
1@@ -1,4 +1,6 @@
2 #!/bin/rc
3
4+flag e +
5+
6 for (file in capacity status)
7 cat /sys/class/power_supply/BAT1/$file
M
rc/bri
+2,
-0
1@@ -1,6 +1,8 @@
2 #!/bin/rc
3 # A simple script to change screen brightness.
4
5+flag e +
6+
7 file=/sys/class/backlight/amdgpu_bl0/brightness
8 val=`{cat $file}
9
M
rc/cg
+2,
-0
1@@ -1,3 +1,5 @@
2 #!/bin/rc
3
4+flag e +
5+
6 exec st -e catgirl libera
M
rc/dmpv
+2,
-0
1@@ -2,6 +2,8 @@
2
3 # A tiny script for launching videos inside Videos dir with mpv
4
5+flag e +
6+
7 cd $HOME/usr/vid
8
9 switch($1) {
M
rc/dpdf
+2,
-0
1@@ -2,6 +2,8 @@
2
3 # open pdfs in mupdf with dmenu
4
5+flag e +
6+
7 cd $HOME/usr/doc
8
9 switch($1) {
+2,
-0
1@@ -3,6 +3,8 @@
2 # Search the web from dmenu
3 # Does not handle URLs
4
5+flag e +
6+
7 ENGINE='https://duckduckgo.com/?q='
8
9 # Spaces are not allowed, so substitute them to correct string
M
rc/holup
+2,
-0
1@@ -1,5 +1,7 @@
2 #!/bin/rc
3
4+flag e +
5+
6 # just wait a bit
7 while() {
8 wait $pid
M
rc/shot
+2,
-0
1@@ -1,5 +1,7 @@
2 #!/bin/rc
3
4+flag e +
5+
6 dir=$HOME/usr/scrots
7 filename=`{date +scrot-%Y%m%d-%H-%M}
8 out=$dir/$filename.png
M
rc/smus
+2,
-0
1@@ -1,3 +1,5 @@
2 #!/bin/rc
3
4+flag e +
5+
6 exec st -e cmus
+2,
-0
1@@ -2,6 +2,8 @@
2
3 # download .torrent files to a directory where transmission will find them
4
5+flag e +
6+
7 cd $HOME/usr/transmission
8
9 curl -fLO $1
M
rc/ytdl
+2,
-0
1@@ -3,6 +3,8 @@
2 # Simple script to download videos
3 # Requires yt-dlp
4
5+flag e +
6+
7 DLDIR=$HOME/usr/vid
8 proxy='&local=true'
9