Files
dotfiles/.config/polybar/scripts/pub_ipv4.sh
druckdev 1d3adc30e5 polybar: Make hardcoded paths dependant from XDG
Instead of hardcoding the paths of all the scripts, use env variables
that are set in launch.sh. This way the config also works with
XDG_CONFIG_HOME not set to ~/.config.
Sadly polybar only accepts references that stand on their own.
(So something like ${env:XDG_CONFIG_HOME:~/.config}/polybar/<script>
does not work.) Hence the mess with the associative array and the
variables for every module.
2020-09-28 18:08:03 +02:00

4 lines
50 B
Bash
Executable File

#!/bin/bash
echo $(curl -s https://ipinfo.io/ip)