Skip to content

Instantly share code, notes, and snippets.

@pas-calc
Created April 15, 2021 15:36
Show Gist options
  • Save pas-calc/c0d0cb33b5723ce9aa4aa8f43783f809 to your computer and use it in GitHub Desktop.
Save pas-calc/c0d0cb33b5723ce9aa4aa8f43783f809 to your computer and use it in GitHub Desktop.
activate WiFi hotspot at computer (internet connected via cable, and has additional WLAN network card)
[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Icon=/usr/share/icons/Adwaita/scalable/status/network-wireless-hotspot-symbolic.svg
Exec=bash -c 'echo "Connecting..." && sleep 3 && echo "Set Networking ON..." && nmcli networking on && sleep 3 && echo "Set WIFI on..." && nmcli radio wifi on && sleep 3 && echo "Set Hotspot UP..." && nmcli connection up "Hotspot" && echo "done." && sleep 3 && read -t1 -n 1 -s -r -p "Press any key to continue"'
Name=Hotspot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment