@@ -6,13 +6,9 @@ local wu = require("win-management.window-utils")
66local aw = hs .application .watcher
77local wf = hs .window .filter
88
9- --- VIDEO CALLS------------------------------------------------------------------
10- -- remove leftover tabs
11- M .wf_zoom = wf .new ({ " zoom.us" , " Webex" }):subscribe (wf .windowCreated , function (_newWin )
12- u .defer (4 , function ()
13- u .closeBrowserTabsWith (" zoom.us" )
14- u .closeBrowserTabsWith (" webex.com" )
15- end )
9+ --- ZOOM------------------------------------------------------------------
10+ M .wf_zoom = wf .new (" zoom.us" ):subscribe (wf .windowCreated , function (_newWin )
11+ u .defer (4 , function () u .closeBrowserTabsWith (" zoom.us" ) end )
1612end )
1713
1814--- FINDER-----------------------------------------------------------------------
@@ -37,13 +33,6 @@ M.aw_pdfreaders = aw.new(function(appName, event, app)
3733 elseif event == aw .launched and appName == " Preview" then
3834 local isPdf = app :mainWindow ():title ():find (" %.pdf" )
3935 if isPdf then app :selectMenuItem { " View" , " Thumbnails" } end
40- elseif event == aw .launched and appName == " PDF Expert" then
41- app :selectMenuItem { " View" , " Theme" , u .isDarkMode () and " Night" or " Day" }
42- app :selectMenuItem { " Annotate" , " Highlight" }
43-
44- local shellCmd =
45- ' rm -rf "$HOME/Library/Mobile Documents/3L68KQB4HG~com~readdle~CommonDocuments/Documents/"'
46- hs .execute (shellCmd )
4736 end
4837end ):start ()
4938
0 commit comments