refactor: new system basics

This commit is contained in:
2025-05-29 18:18:25 +02:00
parent f4ea18dc1a
commit c0ca42d166
92 changed files with 190009 additions and 12 deletions

17
polybar/scripts/wifi_status.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Author by : Daniel Heras
# Mail : dani.heras@hotmail.com
n=$(nmcli device status | grep -wc connected)
#id=$(nmcli device status | grep -w connected | awk '{print $4}')
id=$(nmcli -t -f active,ssid dev wifi | grep -E '^yes' | cut -d\' -f2)
final_id=$(echo "${id#*:}")
if test $n -gt 1; then
echo "%{F#ffffff} %{F#ced4da}$final_id"
elif test $n -eq 0; then
echo "%{F#a4133c} %{F#ced4da}Sin conexión"
else
echo "%{F#ffffff} %{F#ced4da}$final_id"
fi