mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Adding comment screwed up script
This commit is contained in:
parent
60a34b66a4
commit
df1136d0bc
@ -200,8 +200,7 @@ bar-volume-empty-foreground = ${colors.gray}
|
||||
|
||||
[module/wifi]
|
||||
type = internal/network
|
||||
; Set interface with ~/.local/bin/polybar_scripts/set_wireless_nic script
|
||||
interface = wlp2s0
|
||||
interface = wlo1
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <label-connected>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
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
|
||||
sed -i "/wifi/{N;N;s/interface =.*/interface = $nic/;}" /home/vlad/.config/polybar/config
|
||||
|
||||
echo "Set wireless nic to $nic"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user