From 995700a46dfd62c35b983748e2b15c47ffd37c33 Mon Sep 17 00:00:00 2001 From: Matheus R Date: Tue, 6 Jul 2021 18:23:14 -0300 Subject: Mudanças gerais nas configurações, criação do script spt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/connect_wlan | 4 +++- bin/spt | 5 +++++ bin/xbacklight | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 bin/spt delete mode 120000 bin/xbacklight (limited to 'bin') 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 -- cgit v1.2.3