this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

hammerspoon: change app shortcut numbers

+11 -11
+11 -11
hammerspoon/init.lua
··· 1 1 local appBindings = { 2 - ["1"] = "Ghostty", 3 - ["2"] = "Firefox", 4 - ["3"] = "Obsidian", 5 - ["4"] = "Todoist", 6 - ["5"] = "Slack", 7 - ["6"] = "Spotify", 2 + ["1"] = "Firefox", 3 + ["2"] = "Slack", 4 + ["3"] = "Discord", 5 + ["4"] = "Spotify", 6 + ["9"] = "Obsidian", 7 + ["0"] = "Ghostty", 8 8 } 9 9 10 10 for key, app in pairs(appBindings) do ··· 50 50 if not win then return end 51 51 local s = win:screen():frame() 52 52 local positions = { 53 - { x = s.x + s.w * 2/3, y = s.y, w = s.w / 3, h = s.h }, 54 - { x = s.x + s.w / 3, y = s.y, w = s.w / 3, h = s.h }, 55 - { x = s.x, y = s.y, w = s.w / 3, h = s.h }, 53 + { x = s.x + s.w * 2 / 3, y = s.y, w = s.w / 3, h = s.h }, 54 + { x = s.x + s.w / 3, y = s.y, w = s.w / 3, h = s.h }, 55 + { x = s.x, y = s.y, w = s.w / 3, h = s.h }, 56 56 } 57 57 cycleState.g = (cycleState.g % #positions) + 1 58 58 win:setFrame(positions[cycleState.g]) ··· 64 64 if not win then return end 65 65 local s = win:screen():frame() 66 66 local positions = { 67 - { x = s.x, y = s.y, w = s.w * 2/3, h = s.h }, 68 - { x = s.x + s.w / 3, y = s.y, w = s.w * 2/3, h = s.h }, 67 + { x = s.x, y = s.y, w = s.w * 2 / 3, h = s.h }, 68 + { x = s.x + s.w / 3, y = s.y, w = s.w * 2 / 3, h = s.h }, 69 69 } 70 70 cycleState.e = (cycleState.e % #positions) + 1 71 71 win:setFrame(positions[cycleState.e])