Compare commits

...

7 commits

8 changed files with 32 additions and 27 deletions

View file

@ -53,7 +53,6 @@
(defwidget connectivity [] (defwidget connectivity []
(eventbox (eventbox
:onclick "bash -c 'iwgtk &> /dev/null &'"
(label (label
:class "connectivity" :class "connectivity"
:text "${ :text "${

View file

@ -11,7 +11,6 @@
home.packages = [ home.packages = [
pkgs.eww pkgs.eww
# Script dependencies # Script dependencies
pkgs.iw
pkgs.jq pkgs.jq
pkgs.dash pkgs.dash
pkgs.socat pkgs.socat

View file

@ -9,6 +9,9 @@ print_network_state() {
wlan*) wlan*)
echo wireless echo wireless
;; ;;
wlp*)
echo wireless
;;
usb*) usb*)
echo tethering echo tethering
;; ;;
@ -19,10 +22,10 @@ print_network_state() {
} }
wifi_strength() { wifi_strength() {
if [ "$1" -le -80 ]; then echo terrible if [ "$1" -le 20 ]; then echo terrible
elif [ "$1" -le -70 ]; then echo bad elif [ "$1" -le 40 ]; then echo bad
elif [ "$1" -le -60 ]; then echo mediocre elif [ "$1" -le 60 ]; then echo mediocre
elif [ "$1" -le -40 ]; then echo good elif [ "$1" -le 80 ]; then echo good
else echo excellent else echo excellent
fi fi
} }
@ -36,10 +39,10 @@ print_network_infos() {
"$(echo "$route_line" | awk '{ print $3 }')" "$(echo "$route_line" | awk '{ print $3 }')"
if [ "$state" = wireless ]; then if [ "$state" = wireless ]; then
signal=$(iw dev "$1" link | awk '($1 == "signal:") { print $2}') signal=$(nmcli -m multiline device wifi | grep '^\s*SIGNAL: ' | xargs | cut -d \ -f 2)
printf ',"wifi":{"signal":"%s","ssid":"%s"}' \ printf ',"wifi":{"signal":"%s","ssid":"%s"}' \
"$(wifi_strength "$signal")" \ "$(wifi_strength "$signal")" \
"$(iw dev wlan0 info | grep '^\s*ssid ' | xargs | cut -d \ -f 2-)" "$(nmcli -m multiline device wifi | grep '^\s*SSID: ' | xargs | cut -d \ -f 2)"
fi fi
fi fi
} }

View file

@ -37,22 +37,23 @@
}; };
}; };
home.packages = [ home.packages = with pkgs; [
pkgs.egl-wayland # For NVIDIA compatibility egl-wayland # For NVIDIA compatibility
pkgs.xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
# Common DE packages required in config # Common DE packages required in config
pkgs.wl-clipboard wl-clipboard
pkgs.grim grim
pkgs.slurp slurp
pkgs.hyprpicker hyprpicker
pkgs.udiskie udiskie
pkgs.swww swww
pkgs.swaylock-effects swaylock-effects
pkgs.brightnessctl brightnessctl
networkmanagerapplet
# Apps launchable from bindings # Apps launchable from bindings
pkgs.firefox firefox
pkgs.kitty kitty
pkgs.yazi yazi
]; ];
home.pointerCursor = { home.pointerCursor = {

View file

@ -1,9 +1,10 @@
# Startup # Startup
exec-once = artix-pipewire-launcher restart exec-once = artix-pipewire-launcher restart
exec-once = end-rs daemon
exec-once = wallpaperctl daemon exec-once = wallpaperctl daemon
exec-once = swayosd-server exec-once = swayosd-server
exec-once = nm-applet
exec-once = udiskie exec-once = udiskie
exec-once = eww-bard exec-once = eww-bard
exec-once = end-rs daemon
exec-once = dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

View file

@ -13,6 +13,7 @@ windowrulev2 = workspace 8 silent, class:(Deezer)
windowrule = float, ^(connman-gtk)$ windowrule = float, ^(connman-gtk)$
windowrulev2 = float, class:(iwgtk) windowrulev2 = float, class:(iwgtk)
windowrulev2 = float, class:(nm-connection-editor)
windowrulev2 = float, class:(localsend_app) windowrulev2 = float, class:(localsend_app)

View file

@ -1,7 +1,6 @@
{ {
inputs, inputs,
pkgs, pkgs,
lib,
... ...
}: { }: {
imports = [ imports = [
@ -31,8 +30,9 @@
neofetch neofetch
bottom bottom
htop htop
iwgtk wg-netmanager
podman-compose podman-compose
udisks
]; ];
#Podman #Podman
@ -56,6 +56,7 @@
"video" "video"
"seat" "seat"
"audio" "audio"
"networkmanager"
]; ];
group = "gaspard"; group = "gaspard";
}; };

View file

@ -34,7 +34,7 @@
}; };
# Network & Bluetooth # Network & Bluetooth
networking.wireless.iwd.enable = true; networking.networkmanager.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true; hardware.bluetooth.powerOnBoot = true;