Compare commits

...

7 commits

8 changed files with 32 additions and 27 deletions

View file

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

View file

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

View file

@ -9,6 +9,9 @@ print_network_state() {
wlan*)
echo wireless
;;
wlp*)
echo wireless
;;
usb*)
echo tethering
;;
@ -19,11 +22,11 @@ print_network_state() {
}
wifi_strength() {
if [ "$1" -le -80 ]; then echo terrible
elif [ "$1" -le -70 ]; then echo bad
elif [ "$1" -le -60 ]; then echo mediocre
elif [ "$1" -le -40 ]; then echo good
else echo excellent
if [ "$1" -le 20 ]; then echo terrible
elif [ "$1" -le 40 ]; then echo bad
elif [ "$1" -le 60 ]; then echo mediocre
elif [ "$1" -le 80 ]; then echo good
else echo excellent
fi
}
@ -36,10 +39,10 @@ print_network_infos() {
"$(echo "$route_line" | awk '{ print $3 }')"
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"}' \
"$(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
}

View file

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

View file

@ -1,9 +1,10 @@
# Startup
exec-once = artix-pipewire-launcher restart
exec-once = end-rs daemon
exec-once = wallpaperctl daemon
exec-once = swayosd-server
exec-once = nm-applet
exec-once = udiskie
exec-once = eww-bard
exec-once = end-rs daemon
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)$
windowrulev2 = float, class:(iwgtk)
windowrulev2 = float, class:(nm-connection-editor)
windowrulev2 = float, class:(localsend_app)

View file

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

View file

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