Conversation

sayori_dislike cnetworkmanager
sayori_dislike nmcli
sayori_dislike nmtui
sayori_dislike nm-applet
sayori_dislike nm-tray
sayori_like plasmawindowed org.kde.plasma.networkmanagement

1
0
0
@mia meanwhile on my machine
1
0
0

@lucy zsh tho

wifi=("${(f)"$(/usr/sbin/iw dev wlp4s0 link)"}")
wifi_ssid=${wifi[(r)[^:]SSID:*]//[^:]*: /}
wifi_strength=$((2 * (${${wifi[(r)[^:]signal:*]//[^:]*: /}/ *} + 100)))

print "$wifi_ssid ($wifi_strength%)"
2
0
0
@mia abolish all shell scripting ngl
1
0
2

@lucy could actually parse the output into an associative array here too

0
0
0

@mia@shrimptest.0x0.st @lucy@netzsphaere.xyz arguably less comprehensible, would it at least be faster?

1
0
1
@mia @zvava speed for this doesn't matter and trading it for readability is dumb imo
0
0
0

@lucy @zvava it only runs one command, not 5, and zsh is also a much faster script interpreter than bash

2
0
0
@mia @zvava but it looks terrible shrug
0
0
1
@mia @zvava using C for this would be faster and easier to read
1
0
0

@lucy @zvava okay just do it in lua then smh

1
0
0
@mia @zvava if i had enough fucks left over to give about how quickly it updates the networking status bar entry sure, i would
1
0
0

@lucy @zvava fun fact i’m angry with waybar because it wastes so many cpu cycles it’s not even funny

just because it uses gnome libraries

2
0
1
@mia @zvava in world where webbrowsers exist this isn't the worst offendor on my system.. saddercat
1
0
0
@mia @zvava doesn't niri use gnomelibs
1
0
0
@mia @zvava for the screensharing stuff it does
1
0
0

@lucy @zvava yeah i just don’t like when my laptop uses more than 5W when it’s not even doing any real work

0
0
1

@lucy @zvava that’s just the desktop portal stuff and you don’t have to use the gnome versions

0
0
1