summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2021-09-05 14:00:57 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2021-09-05 14:00:57 +0200
commitea615f19f8f26f1c43ce4cf33d2909a497ed4cb5 (patch)
treef6c042950cbd627b4603c379586d47c0f37e966d /.local
parentupdate (diff)
downloaddotfiles-bsd-ea615f19f8f26f1c43ce4cf33d2909a497ed4cb5.tar.gz
dotfiles-bsd-ea615f19f8f26f1c43ce4cf33d2909a497ed4cb5.tar.bz2
dotfiles-bsd-ea615f19f8f26f1c43ce4cf33d2909a497ed4cb5.tar.xz
dotfiles-bsd-ea615f19f8f26f1c43ce4cf33d2909a497ed4cb5.tar.zst
dotfiles-bsd-ea615f19f8f26f1c43ce4cf33d2909a497ed4cb5.zip
update, new scripts
Diffstat (limited to '.local')
-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