aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGravatar Matheus R <matheusrbarros03@gmail.com> 2021-07-06 21:23:14 +0000
committerGravatar Matheus R <matheusrbarros03@gmail.com> 2021-07-06 21:23:14 +0000
commit995700a46dfd62c35b983748e2b15c47ffd37c33 (patch)
treec000e5352e3c1c6f22ae7f38c4452bc3a8ae90d9 /bin
parent6243a18ef6433ae8516c97bd788425ac70fcf60a (diff)
Mudanças gerais nas configurações, criação do script spt
Diffstat (limited to 'bin')
-rwxr-xr-xbin/connect_wlan4
-rwxr-xr-xbin/spt5
l---------bin/xbacklight1
3 files changed, 8 insertions, 2 deletions
diff --git a/bin/connect_wlan b/bin/connect_wlan
index 7d27878..62aabc2 100755
--- a/bin/connect_wlan
+++ b/bin/connect_wlan
@@ -1,9 +1,11 @@
-#!/bin/env dash
+#!/bin/env bash
# script to pipe scanned networks to dmenu, using iwd
station="$(iwctl device list | grep station | awk ' { print $1 } ')"
+iwctl station "$station" disconnect
+
iwctl station "$station" scan
ssid="$(iwctl station "$station" get-networks | dmenu -l 6 -p "Connect to a network:" | sed -e 's/psk.*$//g' -e 's/^\W*//g' -e 's/\W*$//g')"
diff --git a/bin/spt b/bin/spt
new file mode 100755
index 0000000..ca6d8d6
--- /dev/null
+++ b/bin/spt
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+pgrep spotifyd || spotifyd --no-daemon &
+
+spotify-tui
diff --git a/bin/xbacklight b/bin/xbacklight
deleted file mode 120000
index fb1aec0..0000000
--- a/bin/xbacklight
+++ /dev/null
@@ -1 +0,0 @@
-/home/math/.local/repos/acpilight/xbacklight \ No newline at end of file