update network script with ntp and i3 switch to alsa
[dotfiles.git] / x / .local / bin / network
index 905ff44..4cb4f0c 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/bash
-netctl list | cut -b 3- | dmenu | ifne xargs 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"