elfs: (Default)
[personal profile] elfs

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.)

Date: 2014-01-16 07:58 pm (UTC)
From: [identity profile] casualprofessor.livejournal.com
What about Fn-F5?

Date: 2014-01-18 05:16 am (UTC)
From: [identity profile] elfs.livejournal.com
Doesn't seem to work on my machine. Besides, that's actually an alien set of keystrokes to me, whereas a CLI tool is just me happily typing along on an interface I'm already friends with.

Date: 2014-01-17 12:19 am (UTC)
From: [identity profile] nojay.livejournal.com
I get "Wifi available" popups appear when a bus drives past our front window -- the express coaches have "Free Wifi" stickers on the side (a bit like "Free Mumia" T-shirts), basically a 3G mobile connection serving an on-board WAP. I used to get popups from trains stopped at the platforms in the station across the street (same 3G/WAP deal) but they rebuilt the station and that has blocked my line-of-sight to the platforms so no more "trains"itory wifi for me.

Date: 2014-01-18 05:16 am (UTC)
From: [identity profile] elfs.livejournal.com
Heh, I see what you did there.

Profile

elfs: (Default)
Elf Sternberg

December 2025

S M T W T F S
 12345 6
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 18th, 2026 02:36 am
Powered by Dreamwidth Studios