Jan. 16th, 2014

elfs: (Default)

I ride a bus to and from the office every day. While I love Ubuntu, getting a constant barrage of “WiFi Available” popups whenever we pass by a coffee shop is annoying as hell. Digging into the network manager every day is a chore. Solution: A simple command line handler with a memorable name:


#!/bin/bash
MODE='off'
if [[ -n "$1" ]]; then
    MODE=on
fi
nmcli nm wifi $MODE

Typing airplane will turn off your wi-fi stack; typing airplane off will turn it back on. (Actually, typing airplay four score and seven years ago will turn it back on. Any argument is accepted as turning airplane mode off. Even airplane on.)

Profile

elfs: (Default)
Elf Sternberg

March 2026

S M T W T F S
1234567
8910111213 14
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 21st, 2026 01:41 am
Powered by Dreamwidth Studios