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 = {
enable = 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)
"AdGuard for Safari" = 1440147259;
"Xcode" = 497799835;

View file

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