Compare commits

...

2 Commits

Author SHA1 Message Date
b56f5b8753 Update 2025-07-22 02:38:31 -07:00
2aef84e604 Add dotfiles 2025-07-22 02:36:39 -07:00
3 changed files with 58 additions and 0 deletions

34
dot_gitmux.conf Normal file
View File

@ -0,0 +1,34 @@
tmux:
symbols:
branch: '  '
hashprefix: ':'
ahead: 'ahead '
behind: 'behind '
staged: 'staged '
conflict: 'conflict '
modified: 'modified '
untracked: 'untracked '
stashed: 'stashed '
clean: 'clean'
insertions: Σ
deletions: Δ
styles:
clear: '#[fg=#000000]'
state: '#[fg=#000000]'
branch: '#[fg=#000000]'
remote: '#[fg=#000000]'
divergence: '#[fg=#000000]'
staged: '#[fg=#000000]'
conflict: '#[fg=#000000]'
modified: '#[fg=#000000]'
untracked: '#[fg=#000000]'
stashed: '#[fg=#000000]'
clean: '#[fg=#000000]'
insertions: '#[fg=#000000]'
deletions: '#[fg=#000000]'
layout: [remote-branch, branch]
options:
branch_max_len: 0
branch_trim: right
ellipsis: …
hide_clean: true

View File

24
dot_hammerspoon/init.lua Normal file
View File

@ -0,0 +1,24 @@
-- Function to simulate key presses
local function pressFn(mods, key)
if key == nil then
key = mods
mods = {}
end
return function() hs.eventtap.keyStroke(mods, key, 1000) end
end
-- Function to remap keys
local function remap(mods, key, pressFn)
hs.hotkey.bind(mods, key, pressFn, nil, pressFn)
end
-- Define Caps Lock as the Hyperkey
local hyper = {'ctrl', 'alt', 'cmd'}
-- Remap HJKL to arrow keys using Caps Lock as a Hyperkey
remap(hyper, 'h', pressFn({}, 'left')) -- Move left
remap(hyper, 'j', pressFn({}, 'down')) -- Move down
remap(hyper, 'k', pressFn({}, 'up')) -- Move up
remap(hyper, 'l', pressFn({}, 'right')) -- Move right