mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Finished script to set wireless nic
This commit is contained in:
parent
ecc9365a1e
commit
b7069be978
@ -200,7 +200,7 @@ bar-volume-empty-foreground = ${colors.gray}
|
||||
|
||||
[module/wifi]
|
||||
type = internal/network
|
||||
interface = wlo1
|
||||
interface = wlp2s0
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <label-connected>
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#!/bin/zsh
|
||||
|
||||
echo `lshw 2>/dev/null | grep -A 5 'description: Wireless interface' | tail -n 1 | awk '{print $3}'`
|
||||
nic=`lshw 2>/dev/null | grep -A 5 'description: Wireless interface' | tail -n 1 | awk '{print $3}'`
|
||||
|
||||
sed -i "/wifi/{N;N;s/interface =.*/interface = $nic/;}" ~/.config/polybar/config
|
||||
|
||||
echo "Set wireless nic to $nic"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user