This commit is contained in:
Philipp Hochkamp 2022-03-04 14:15:49 +01:00
parent 4a5255f127
commit 255086e61b
No known key found for this signature in database
GPG key ID: 3676AB4CB36E5641
2 changed files with 17 additions and 16 deletions

View file

@ -12,7 +12,7 @@ with lib.my;
homebrew = { homebrew = {
enable = true; enable = true;
autoUpdate = true; autoUpdate = true;
casks = [ "hammerspoon" "amethyst" "android-platform-tools" "alfred" "ukelele" "homebrew/cask-drivers/zsa-wally" ]; casks = [ "hammerspoon" "amethyst" "android-platform-tools" "alfred" "ukelele" "homebrew/cask-drivers/zsa-wally" "lens" ];
masApps = { # Install Mac App Store apps (install them manually and then do `mas list` to get the id) masApps = { # Install Mac App Store apps (install them manually and then do `mas list` to get the id)
"AdGuard for Safari" = 1440147259; "AdGuard for Safari" = 1440147259;
"Xcode" = 497799835; "Xcode" = 497799835;

View file

@ -56,21 +56,22 @@ end):start()
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
-- mount ds9 via tailscale -- mount ds9 via tailscale
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
function mountDS9() -- meesa broke
local ssid = hs.wifi.currentNetwork() --function mountDS9()
if ssid ~= nil and ssid ~= 'vim' then -- not at home -- local ssid = hs.wifi.currentNetwork()
if os.execute("mount | grep //ragon@ds9._smb._tcp.local/data") == nil then -- check if mounted via mdns -- if ssid ~= nil and ssid ~= 'vim' then -- not at home
os.execute("diskutil umount /Volumes/data") -- umount share if it exists -- if os.execute("mount | grep //ragon@ds9._smb._tcp.local/data") == nil then -- check if mounted via mdns
hs.osascript.applescript('mount volume "smb://ragon@ds9.ragon000.github.beta.tailscale.net/data"') -- mount share via tailscale -- os.execute("diskutil umount /Volumes/data") -- umount share if it exists
end -- hs.osascript.applescript('mount volume "smb://ragon@ds9.ragon000.github.beta.tailscale.net/data"') -- mount share via tailscale
end -- end
end -- end
--end
mountDS9() --
--mountDS9()
hs.wifi.watcher.new(function(watcher, message, interface) --
mountDS9() --hs.wifi.watcher.new(function(watcher, message, interface)
end):start() -- mountDS9()
--end):start()
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
-- Scratchpad -- Scratchpad