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

February 2026

S M T W T F S
1234567
891011121314
151617181920 21
22232425262728

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 28th, 2026 03:56 am
Powered by Dreamwidth Studios