Compare commits
4 commits
d93dd48a6e
...
4d046b2eaa
Author | SHA1 | Date | |
---|---|---|---|
|
4d046b2eaa | ||
|
a09273ec52 | ||
|
5dcef04d04 | ||
|
f97e70b701 |
4 changed files with 18 additions and 5 deletions
|
@ -32,17 +32,19 @@ wifi_strength() {
|
||||||
|
|
||||||
print_network_infos() {
|
print_network_infos() {
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
route_line=$(ip route show dev "$1" | awk '($1 == "default") { print }')
|
device="$1"
|
||||||
|
route_line=$(ip route show dev "$device" | awk '($1 == "default") { print }')
|
||||||
|
|
||||||
printf ',"ip":{"local":"%s","gateway":"%s"}' \
|
printf ',"ip":{"local":"%s","gateway":"%s"}' \
|
||||||
"$(echo "$route_line" | awk '{ print $7 }')" \
|
"$(echo "$route_line" | awk '{ print $7 }')" \
|
||||||
"$(echo "$route_line" | awk '{ print $3 }')"
|
"$(echo "$route_line" | awk '{ print $3 }')"
|
||||||
|
|
||||||
if [ "$state" = wireless ]; then
|
if [ "$state" = wireless ]; then
|
||||||
signal=$(nmcli -m multiline device wifi | grep '^\s*SIGNAL: ' | xargs | cut -d \ -f 2)
|
ssid=$(nmcli connection show --active | grep "$device" | cut -d \ -f1)
|
||||||
|
signal=$(nmcli dev wifi list --rescan no | awk '/\*/{if (NR!=1) {print $8}}')
|
||||||
printf ',"wifi":{"signal":"%s","ssid":"%s"}' \
|
printf ',"wifi":{"signal":"%s","ssid":"%s"}' \
|
||||||
"$(wifi_strength "$signal")" \
|
"$(wifi_strength "$signal")" \
|
||||||
"$(nmcli -m multiline device wifi | grep '^\s*SSID: ' | xargs | cut -d \ -f 2)"
|
"$ssid"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,10 @@
|
||||||
firefox
|
firefox
|
||||||
kitty
|
kitty
|
||||||
yazi
|
yazi
|
||||||
|
# Yazi requirements
|
||||||
|
ffmpegthumbnailer
|
||||||
|
poppler
|
||||||
|
imagemagick
|
||||||
];
|
];
|
||||||
|
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
|
|
|
@ -14,6 +14,7 @@ windowrule = float, ^(connman-gtk)$
|
||||||
|
|
||||||
windowrulev2 = float, class:(iwgtk)
|
windowrulev2 = float, class:(iwgtk)
|
||||||
windowrulev2 = float, class:(nm-connection-editor)
|
windowrulev2 = float, class:(nm-connection-editor)
|
||||||
|
windowrulev2 = float, class:(.blueman-manager-wrapped)
|
||||||
|
|
||||||
windowrulev2 = float, class:(localsend_app)
|
windowrulev2 = float, class:(localsend_app)
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,14 @@
|
||||||
"nvidia-settings"
|
"nvidia-settings"
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics = {
|
||||||
hardware.opengl.enable = true;
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
vaapiVdpau
|
||||||
|
libvdpau-va-gl
|
||||||
|
mesa
|
||||||
|
];
|
||||||
|
};
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue