Files
Hyprland-config/scripts/getIp.sh
2026-02-02 10:14:06 -06:00

4 lines
100 B
Bash
Executable File

#!/bin/bash
ip=$(ip a show wlan0 | sed -n 's/inet \([0-9.]*\..*\)\/.*/\1 /p' | tr -d ' ')
echo $ip