Compare commits

..

No commits in common. "ad013b26f2078f2c352228a30b1a28b1c12f0509" and "5a109c6c90d7fe880aac2555edff9e50479ead2a" have entirely different histories.

8 changed files with 27 additions and 32 deletions

View file

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

View file

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

View file

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

View file

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

View file

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