Compare commits
2 Commits
144b36e098
...
b56f5b8753
| Author | SHA1 | Date | |
|---|---|---|---|
| b56f5b8753 | |||
| 2aef84e604 |
34
dot_gitmux.conf
Normal file
34
dot_gitmux.conf
Normal 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
|
||||
0
dot_hammerspoon/Spoons/.keep
Normal file
0
dot_hammerspoon/Spoons/.keep
Normal file
24
dot_hammerspoon/init.lua
Normal file
24
dot_hammerspoon/init.lua
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user