AlphaTechnolog / dotfiles

A repository that contains a collection of various rices that i made over the time
MIT License
736 stars 34 forks source link

toggle-network.sh does not toggle because it's adding #26

Closed hamensman closed 1 year ago

hamensman commented 1 year ago

Literally nothing happens when I click on the network widget. I ran the script with this error:

Error: 'Wifi_Name --' is not an active connection.
Error: no active connection provided.

Where is it taking this -- from? Well, when I take off the sed pipe from the command in the else clause, I get this:

wlp2s0          wifi       connected               Wifi_Name     
p2p-dev-wlp2s0  wifi-p2p   disconnected            -- 

So sed here is picking up this second row, with the --.

Thus, a simple workound (for my setup) I had to do was simply pipe that to cut: wifiname=$(nmcli d | grep wifi | sed 's/^.*wifi.*connected//g' | xargs | cut -d ' ' -f 1)

And then it works.

hamensman commented 1 year ago

Unrelated issue: on multi-monitor setup, systray icons show in only one of the systrays (in only one of the monitors). And not even on the primary monitor. Other tray is empty.

And wonder how to remove titlebar on windows?

AlphaTechnolog commented 1 year ago

how's ur wifi essid called? also about the syatray, yeah that's a limitation of xorg itself to get multimonitor syatray, even if I could hide or show a systray if u focus one or another monitor, that would imply some more work, but yeah, right now it's taking a random screen for placing a systray. to remove the titlebars of clients, remove the import of the titlebars file at UI/init.lua

AlphaTechnolog commented 1 year ago

closing because of inactivity.