logseq
This commit is contained in:
parent
31b1c03740
commit
eb5617bc08
1 changed files with 16 additions and 16 deletions
|
|
@ -56,22 +56,21 @@ end):start()
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
-- mount ds9 via tailscale
|
-- mount ds9 via tailscale
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
-- meesa broke
|
function mountDS9()
|
||||||
--function mountDS9()
|
local ssid = hs.wifi.currentNetwork()
|
||||||
-- local ssid = hs.wifi.currentNetwork()
|
if ssid ~= nil and ssid ~= 'vim' then -- not at home
|
||||||
-- 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
|
||||||
-- 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
|
||||||
-- 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
|
||||||
-- hs.osascript.applescript('mount volume "smb://ragon@ds9.ragon000.github.beta.tailscale.net/data"') -- mount share via tailscale
|
end
|
||||||
-- end
|
end
|
||||||
-- end
|
end
|
||||||
--end
|
|
||||||
--
|
mountDS9()
|
||||||
--mountDS9()
|
|
||||||
--
|
hs.wifi.watcher.new(function(watcher, message, interface)
|
||||||
--hs.wifi.watcher.new(function(watcher, message, interface)
|
mountDS9()
|
||||||
-- mountDS9()
|
end):start()
|
||||||
--end):start()
|
|
||||||
|
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
-- Scratchpad
|
-- Scratchpad
|
||||||
|
|
@ -90,6 +89,7 @@ end
|
||||||
local hyperModifier = {"cmd", "shift", "ctrl", "alt"}
|
local hyperModifier = {"cmd", "shift", "ctrl", "alt"}
|
||||||
hs.hotkey.bind(hyperModifier, "b", function() showHideBundleId("com.bitwarden.desktop") end)
|
hs.hotkey.bind(hyperModifier, "b", function() showHideBundleId("com.bitwarden.desktop") end)
|
||||||
hs.hotkey.bind(hyperModifier, "p", function() showHideBundleId("com.timeular.zei") end)
|
hs.hotkey.bind(hyperModifier, "p", function() showHideBundleId("com.timeular.zei") end)
|
||||||
|
hs.hotkey.bind(hyperModifier, "l", function() showHideBundleId("com.electron.logseq") end)
|
||||||
|
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
-- Tiling
|
-- Tiling
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue