summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/linkview3
-rwxr-xr-x.local/bin/nowifi3
-rwxr-xr-x.local/bin/wifi4
3 files changed, 9 insertions, 1 deletions
diff --git a/.local/bin/linkview b/.local/bin/linkview
index 83b7cc8..20f23ae 100755
--- a/.local/bin/linkview
+++ b/.local/bin/linkview
@@ -33,6 +33,7 @@ use constant PROG_LIST => "" .
"w3m" . "\n" .
"firefox" . "\n";
use constant QUAL_LIST => "" .
+"1440" . "\n" .
"1080" . "\n" .
"720" . "\n" .
"480" . "\n" .
@@ -80,7 +81,7 @@ sub open_link
$ret = -1;
if ($a eq "youtube-dl") {
$list = QUAL_LIST;
- $quality = `printf "$list" | dmenu -i -l 7 -m 0`;
+ $quality = `printf "$list" | dmenu -i -l 8 -m 0`;
if (not $quality) {
exit 0;
}
diff --git a/.local/bin/nowifi b/.local/bin/nowifi
new file mode 100755
index 0000000..aaebcfd
--- /dev/null
+++ b/.local/bin/nowifi
@@ -0,0 +1,3 @@
+#!/usr/local/bin/dash
+
+doas pkill wpa_supplicant
diff --git a/.local/bin/wifi b/.local/bin/wifi
new file mode 100755
index 0000000..6ced27f
--- /dev/null
+++ b/.local/bin/wifi
@@ -0,0 +1,4 @@
+#!/usr/local/bin/dash
+
+doas bsdsetsid wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0
+doas dhclient wlan0