vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
#!/usr/bin/env bash
# Usage: net-toggle.sh on|off -- switches networking and refreshes the tile right away.
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
nmcli networking "$1" >/dev/null 2>&1
sleep 0.4
eww --config "$DIR" update net="$(bash "$DIR/scripts/network.sh")" >/dev/null 2>&1