add lens
This commit is contained in:
parent
4a5255f127
commit
255086e61b
2 changed files with 17 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue