dots

Personal dotfiles
git clone git://git.gormless.xyz/dots.git
Log | Files | Refs

dmenuwireless (276B)


      1 #!/bin/sh
      2 
      3 # Select a WAP to connect to.
      4 
      5 wap="$(grep name /etc/wireless.cfg | cut -f 2 -d '=')" || exit 1
      6 chosen="$(echo "$wap" | dmenu -i -p "Connect to which? ")" || exit 1
      7 
      8 notify-send "Connecting..."
      9 doas wireless "$chosen" 2>/dev/null
     10 notify-send "Connected to $chosen"