Compare commits
7 commits
5a109c6c90
...
ad013b26f2
Author | SHA1 | Date | |
---|---|---|---|
|
ad013b26f2 | ||
|
4277531d56 | ||
|
a5df1080c8 | ||
|
2451d5c389 | ||
|
740d4e82c2 | ||
|
dc8f7c3385 | ||
|
fb3da5ff45 |
8 changed files with 32 additions and 27 deletions
|
@ -53,7 +53,6 @@
|
|||
|
||||
(defwidget connectivity []
|
||||
(eventbox
|
||||
:onclick "bash -c 'iwgtk &> /dev/null &'"
|
||||
(label
|
||||
:class "connectivity"
|
||||
:text "${
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
home.packages = [
|
||||
pkgs.eww
|
||||
# Script dependencies
|
||||
pkgs.iw
|
||||
pkgs.jq
|
||||
pkgs.dash
|
||||
pkgs.socat
|
||||
|
|
|
@ -9,6 +9,9 @@ print_network_state() {
|
|||
wlan*)
|
||||
echo wireless
|
||||
;;
|
||||
wlp*)
|
||||
echo wireless
|
||||
;;
|
||||
usb*)
|
||||
echo tethering
|
||||
;;
|
||||
|
@ -19,10 +22,10 @@ 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
|
||||
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
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
};
|
||||
|
||||
# Network & Bluetooth
|
||||
networking.wireless.iwd.enable = true;
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
|
|
Loading…
Reference in a new issue