Changeset 198 for trunk/LocationDo
- Timestamp:
- 11/09/05 18:15:40 (19 years ago)
- Location:
- trunk/LocationDo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocationDo
- Property svn:ignore
-
old new 1 1 brightness 2 2 *.pyc 3 build 4 dist
-
- Property svn:ignore
-
trunk/LocationDo/LocationDo.py
r196 r198 70 70 if '4111 SC' in location: 71 71 action.openInBackground('~/Documents/MSSP/MSSP progress.oo3') 72 action.terminalDo('kswitch -p njriley@ACM.UIUC.EDU;(sleep 10;kswitch -p njriley@AD.UIUC.EDU)&!;clear;ssh yt') 72 73 action.setDisplayBrightnessPercent(0.9) 73 74 action.setAdiumStatus('Working in 4111 SC') … … 80 81 action.setVolumePercent(0.5) 81 82 action.setAdiumStatus('At home') 82 if '13 20 DCL' in location:83 if '13[12]0 DCL' in location: 83 84 action.setDisplayBrightnessPercent(0.2) 84 85 action.setVolumePercent(0) 85 action.setAdiumStatus('In 13 20 DCL')86 action.setAdiumStatus('In 13[12]0 DCL') 86 87 if 'UIUCnet' in location: 87 88 action.startVPNC('UIUCnet-oncampus') … … 140 141 location.add('Champaign') 141 142 elif bssid == '00:13:c4:ce:66:a0': 142 location.add('13 20 DCL')143 location.add('13[12]0 DCL') 143 144 elif bssid in ['00:14:1c:ad:5c:80', '00:14:1c:ad:64:50']: 144 145 location.add('MEB') -
trunk/LocationDo/action.py
r196 r198 72 72 73 73 def stopVPNC(): 74 authorizationDo('/usr/bin/killall', 'vpnc') 74 # killall uses your uid, not your euid to determine which user's 75 # processes to kill; without '-u root', this fails 76 authorizationDo('/usr/bin/killall', '-u', 'root', 'vpnc') 75 77 76 78 def startVPNC(vpncProfile=None):
Note:
See TracChangeset
for help on using the changeset viewer.