Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use a keyboard shortcut to change Locations' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use a keyboard shortcut to change Locations
Authored by: caesurae on Jan 16, '06 10:55:08AM
i've created some tcsh aliases that select each of my network locations using the scselect command.

alias netloc_0 '/usr/sbin/scselect "Off"'
alias netloc_1 '/usr/sbin/scselect "Linksys WRT54G"'
alias netloc_2 '/usr/sbin/scselect "Motorola SB3100"'
alias netloc_3 '/usr/sbin/scselect "Motorola VT1000v"'

it would be trivial to store each command in an AppleScript, or a shell script and execute them via Apple's Script Menu or QuickSilver, Butler, etc ( i find the latter options to be unnecessary ;P ).

one could also assign them as keybindings. the following example assigns each of my locations to function keys F1, F2, F3, & F4.

bindkey -c "^[[11~" '/usr/sbin/scselect "Off"'
bindkey -c "^[[12~" '/usr/sbin/scselect "Linksys WRT54G"'
bindkey -c "^[[13~" '/usr/sbin/scselect "Motorola SB3100"'
bindkey -c "^[[14~" '/usr/sbin/scselect "Motorola VT1000v"'

fyi, i use OS X 10.3.9 (Panther), Apple X11, rxvt, & tcsh.



[ Reply to This | # ]