Compare commits

...

4 commits

Author SHA1 Message Date
GaspardCulis
4d046b2eaa fix(Zephyrus): Tweak hardware graphics 2024-10-15 09:30:39 +02:00
GaspardCulis
a09273ec52 fix(eww -> get-connectivity-info): Fixed wifi ssid and signal info 2024-10-15 09:29:21 +02:00
GaspardCulis
5dcef04d04 chore(hypr -> windowrules): Made blueman-manager floaty 2024-10-14 14:59:09 +02:00
GaspardCulis
f97e70b701 feat(hypr -> nix): Added yazi requirements 2024-10-12 20:08:27 +02:00
4 changed files with 18 additions and 5 deletions

View file

@ -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
} }

View file

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

View file

@ -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)

View file

@ -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;