add functions

This commit is contained in:
TheK4n 2022-11-01 20:46:12 +03:00
parent 845867e20e
commit cb432b45aa
2 changed files with 9 additions and 0 deletions

4
functions/killer Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
pidd="$(ps -u $USER -o pid,%mem,%cpu,comm | sort -b -k2 -r | sed -n '1!p' | dmenu -i -l 15 | awk '{print $1}')"
kill -15 "$pidd"

5
functions/wifi Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
bssid="$(nmcli -f BSSID,SSID,SIGNAL,RATE,BARS,SECURITY dev wifi list | sed -n '1!p' | dmenu -p "WiFi: " -l 20 | cut -d' ' -f1)"
pass="$(echo "" | dmenu -p "Password: ")"
nmcli device wifi connect "$bssid" "password" "$pass"