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 []
(eventbox
:onclick "bash -c 'iwgtk &> /dev/null &'"
(label
:class "connectivity"
:text "${

View file

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

View file

@ -9,9 +9,6 @@ print_network_state() {
wlan*)
echo wireless
;;
wlp*)
echo wireless
;;
usb*)
echo tethering
;;
@ -22,11 +19,11 @@ print_network_state() {
}
wifi_strength() {
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
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
fi
}
@ -39,10 +36,10 @@ print_network_infos() {
"$(echo "$route_line" | awk '{ print $3 }')"
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"}' \
"$(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
}

View file

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

View file

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

View file

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