X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.local%2Fbin%2Fnetwork;h=4cb4f0c21857bf230aed8e984898c3e780cb4844;hb=139a21003b07452b08c8d721d1f9342c5320d10e;hp=7debf89c8d94a5a19cae224564412297b70e22f8;hpb=4b021b869204bbe0f663b748a7f66d94ef61ec9a;p=dotfiles.git diff --git a/x/.local/bin/network b/x/.local/bin/network index 7debf89..4cb4f0c 100755 --- a/x/.local/bin/network +++ b/x/.local/bin/network @@ -1,3 +1,3 @@ #!/bin/bash -find /etc/netctl -maxdepth 1 -type f | xargs basename | dmenu | \ - xargs -I{} sudo -A netctl switch-to {} +netctl list | cut -b 3- | dmenu | ifne xargs -I{}\ + sudo -A bash -c "netctl switch-to {} && ntpd -qg && hwclock -w"