Skip to content

Commit

Permalink
config: 🥄Small app changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Oct 1, 2024
1 parent 2dec71d commit 8e1ef29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions roles/hammerspoon/files/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ local macros = {
a = function() hs.eventtap.keyStroke({ 'cmd' }, '`') end, -- next window of focused app
c = function() hs.eventtap.keyStroke({ 'cmd', 'ctrl' }, 'c') end, -- color picker app
x = function() hs.eventtap.keyStroke({ 'cmd', 'ctrl' }, 'x') end, -- color picker eye dropper
b = function() hs.eventtap.keyStroke({ 'cmd', 'shift', 'ctrl', 'alt'}, 'b') end, -- browser bookmark search
}

registerModalBindings(nil, 'f16', macros, true)
Expand All @@ -66,9 +67,9 @@ local layout = hs.loadSpoon('GridLayout')
:setGrid(positions.full_grid)
-- :setMargins('15x15')

-- if (hs.screen.primaryScreen():name() == 'LG HDR WQHD') then
-- layout:setMargins('30x30')
-- end
if (hs.screen.primaryScreen():name() ~= 'Built-in Retina Display') then
layout.selectLayout('Standard Dev')
end

local windowManagementBindings = {
['h'] = function() hs.window.focusedWindow():focusWindowWest(nil, true) end,
Expand Down
14 changes: 7 additions & 7 deletions roles/hammerspoon/files/config/layouts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ return {
{
name = 'Standard Dev',
cells = {
positions.standard.top_left, -- 1
positions.standard.bottom_left, -- 2
positions.standard.left_center, -- 3
positions.standard.center, -- 4
positions.standard.right, -- 5
positions.standard.left_hidden, -- 6
positions.standard.right_hidden, -- 7
{ positions.standard.top_left },
{ positions.standard.bottom_left },
{ positions.standard.left_center },
{ positions.standard.center },
{ positions.standard.right },
{ positions.standard.left_hidden },
{ positions.standard.right_hidden },
},
apps = {
MatterMost = { cell = 1, open = true },
Expand Down

0 comments on commit 8e1ef29

Please sign in to comment.