Compare commits

..

No commits in common. "4d046b2eaa622e7e907514ae7b60486aa5a0a16a" and "d93dd48a6e26146a70c79611e13b74f826eafa35" have entirely different histories.

4 changed files with 5 additions and 18 deletions

View file

@ -32,19 +32,17 @@ wifi_strength() {
print_network_infos() {
if [ -n "$1" ]; then
device="$1"
route_line=$(ip route show dev "$device" | awk '($1 == "default") { print }')
route_line=$(ip route show dev "$1" | awk '($1 == "default") { print }')
printf ',"ip":{"local":"%s","gateway":"%s"}' \
"$(echo "$route_line" | awk '{ print $7 }')" \
"$(echo "$route_line" | awk '{ print $3 }')"
if [ "$state" = wireless ]; then
ssid=$(nmcli connection show --active | grep "$device" | cut -d \ -f1)
signal=$(nmcli dev wifi list --rescan no | awk '/\*/{if (NR!=1) {print $8}}')
signal=$(nmcli -m multiline device wifi | grep '^\s*SIGNAL: ' | xargs | cut -d \ -f 2)
printf ',"wifi":{"signal":"%s","ssid":"%s"}' \
"$(wifi_strength "$signal")" \
"$ssid"
"$(nmcli -m multiline device wifi | grep '^\s*SSID: ' | xargs | cut -d \ -f 2)"
fi
fi
}

View file

@ -54,10 +54,6 @@
firefox
kitty
yazi
# Yazi requirements
ffmpegthumbnailer
poppler
imagemagick
];
home.pointerCursor = {

View file

@ -14,7 +14,6 @@ windowrule = float, ^(connman-gtk)$
windowrulev2 = float, class:(iwgtk)
windowrulev2 = float, class:(nm-connection-editor)
windowrulev2 = float, class:(.blueman-manager-wrapped)
windowrulev2 = float, class:(localsend_app)

View file

@ -57,14 +57,8 @@
"nvidia-settings"
];
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
mesa
];
};
hardware.graphics.enable = true;
hardware.opengl.enable = true;
hardware.nvidia = {
modesetting.enable = true;