update helix binds
This commit is contained in:
@@ -1,104 +1,70 @@
|
|||||||
#shark's mostly stolen mangowm conffig
|
theme = "catppuccin_frappe"
|
||||||
|
# ─── Normal mode ────────────────────────────────────────────────────────────
|
||||||
|
[keys.normal]
|
||||||
|
|
||||||
#monitor config, change as needed
|
# Movement: wasd
|
||||||
monitorrule=name:Virtual-1,width:2048,height:1152,refresh:60,x:0,y:0
|
w = "move_visual_line_up"
|
||||||
|
a = "move_char_left"
|
||||||
|
s = "move_visual_line_down"
|
||||||
|
d = "move_char_right"
|
||||||
|
|
||||||
#cursor
|
# Insert before / after cursor
|
||||||
cursor_theme=Bibata-Modern-Ice
|
v = "insert_mode" # insert before cursor
|
||||||
cursor_size=24
|
b = "append_mode" # insert after cursor
|
||||||
|
V = "select_mode" # enter select/extend mode ("v" was repurposed)
|
||||||
|
|
||||||
#color scheme
|
# Editing
|
||||||
rootcolor=0x000000ff
|
o = "open_below"
|
||||||
bordercolor=0xfffcffff
|
O = "open_above"
|
||||||
focuscolor=0xffabfcff
|
x = "extend_line_below" # select current line (repeat to extend down)
|
||||||
urgentcolor=0x888888ff
|
J = "join_selections"
|
||||||
#border
|
">" = "indent"
|
||||||
borderpx=3
|
"<" = "unindent"
|
||||||
gappih=5
|
C-z = "undo"
|
||||||
gappiv=5
|
C-y = "redo"
|
||||||
gappoh=10
|
C-s = ":w" # Ctrl+s: save file
|
||||||
gappov=10
|
|
||||||
|
|
||||||
#tiling type fair
|
# Search
|
||||||
tagrule=id:1,monitor_name:Virtual-1,layout_name:fair
|
"/" = "search"
|
||||||
|
n = "search_next"
|
||||||
|
N = "search_prev"
|
||||||
|
|
||||||
#anims
|
# Cursor stack & deletes (shift layer)
|
||||||
animations=1
|
W = "copy_selection_on_prev_line" # Shift+w: add cursor above
|
||||||
layer_animations=1
|
S = "copy_selection_on_next_line" # Shift+s: add cursor below
|
||||||
animation_type_open=slide
|
X = ["extend_line_below", "delete_selection"] # Shift+x: delete current line (yanks)
|
||||||
animation_type_close=slide
|
";" = "keep_primary_selection" # collapse multi-cursors to one (primary)
|
||||||
layer_animation_type_open=slide
|
"S-r" = "select_regex"
|
||||||
layer_animation_type_close=slide
|
"S-q" = "extend_to_line_start" # Shift+q: extend selection to start of line
|
||||||
|
"S-e" = "extend_to_line_end" # Shift+e: extend selection to end of line
|
||||||
|
"S-a" = "move_prev_word_start" # Shift+a: jump left one word
|
||||||
|
"S-d" = "move_next_word_start" # Shift+d: jump right one word
|
||||||
|
"C-S-c" = "yank" # Ctrl+Shift+c: copy selection
|
||||||
|
"C-S-v" = "paste_after" # Ctrl+Shift+v: paste after cursor
|
||||||
|
|
||||||
#startup
|
# ─── Goto mode (g prefix) ───────────────────────────────────────────────────
|
||||||
exec-once=/usr/lib/xdg-desktop-portal-wlr &
|
[keys.normal.g]
|
||||||
exec-once=wl-clip-persist -clipboard regular --reconnect-tries 0 &
|
g = "goto_file_start" # gg -> start of file; {num}gg -> jump to that line
|
||||||
exec-once=wl-paste --type text --watch cliphist store &
|
e = "goto_last_line" # ge -> end of file
|
||||||
exec-once=swaybg -i /home/shark/walls/felix.jpg -m fill &
|
h = "goto_line_start" # gh -> start of line
|
||||||
exec-once=waybar
|
l = "goto_line_end" # gl -> end of line
|
||||||
|
w = "goto_word" # gw -> word label jump
|
||||||
|
|
||||||
#keyboard
|
# ─── View mode (z prefix) ───────────────────────────────────────────────────
|
||||||
repeat_rate=25
|
[keys.normal.z]
|
||||||
repeat_delay=600
|
z = "align_view_center" # zz -> center cursor on screen
|
||||||
numlockon=0
|
|
||||||
xkb_rules_layout=us,de
|
|
||||||
xkb_rules_options=grp:alt_caps_toggle
|
|
||||||
|
|
||||||
#binds
|
|
||||||
#core
|
|
||||||
bind=SUPER,R,spawn,kitty
|
|
||||||
bind=SUPER,d,spawn,librewolf
|
|
||||||
bind=SUPER,w,killclient
|
|
||||||
|
|
||||||
#focusing
|
|
||||||
bind=SUPER,Tab,focusstack,next
|
|
||||||
bind=ALT,Left,focusdir,left
|
|
||||||
bind=ALT,Right,focusdir,right
|
|
||||||
bind=ALT,Up,focusdir,up
|
|
||||||
bind=ALT,Down,focusdir,down
|
|
||||||
|
|
||||||
#swapping
|
|
||||||
bind=SUPER+SHIFT,Up,exchange_client,up
|
|
||||||
bind=SUPER+SHIFT,Down,exchange_client,down
|
|
||||||
bind=SUPER+SHIFT,Left,exchange_client,left
|
|
||||||
bind=SUPER+SHIFT,Right,exchange_client,right
|
|
||||||
|
|
||||||
#floating
|
|
||||||
bind=SUPER+SHIFT,f,togglefloating
|
|
||||||
|
|
||||||
#tag switch
|
|
||||||
bind=SUPER,Left,viewtoleft,0
|
|
||||||
bind=SUPER,Right,viewtoright,0
|
|
||||||
bind=CTRL+SUPER,Left,tagtoleft,0
|
|
||||||
bind=CTRL+SUPER,Right,tagtoright,0
|
|
||||||
|
|
||||||
#view tags
|
|
||||||
bind=Ctrl,1,view,1,0
|
|
||||||
bind=Ctrl,2,view,2,0
|
|
||||||
bind=Ctrl,3,view,3,0
|
|
||||||
bind=Ctrl,4,view,4,0
|
|
||||||
bind=Ctrl,5,view,5,0
|
|
||||||
bind=Ctrl,6,view,6,0
|
|
||||||
bind=Ctrl,7,view,7,0
|
|
||||||
bind=Ctrl,8,view,8,0
|
|
||||||
bind=Ctrl,9,view,9,0
|
|
||||||
|
|
||||||
#screenshot
|
|
||||||
bind=NONE,Print,spawn_shell,g=$(slurp -d) && [ -n "$g" ] && grim -g "$g" $HOME/Pictures/Screenshots/$(date +%d%H%M%S).png
|
|
||||||
|
|
||||||
#audio
|
|
||||||
bind=NONE,XF86AudioRaiseVolume,spawn,wpctl set-volume @DEFAULT_SINK@ 5%+
|
|
||||||
bind=NONE,XF86AudioLowerVolume,spawn,wpctl set-volume @DEFAULT_SINK@ 5%-
|
|
||||||
bind=NONE,XF86AudioMute,spawn,wpctl set-mute @DEFAULT_SINK@ toggle
|
|
||||||
bind=SHIFT,XF86AudioMute,spawn,wpctl set-mute @DEFAULT_SOURCE@ toggle
|
|
||||||
|
|
||||||
#resize
|
|
||||||
mousebind=SUPER,btn_left,moveresize,curmove
|
|
||||||
mousebind=NONE,btn_middle,togglemaximizescreen,0
|
|
||||||
mousebind=SUPER,btn_right,moveresize,curresize
|
|
||||||
|
|
||||||
#etc keybinds, DONT REMOVE!!!
|
|
||||||
bind=SUPER+SHIFT,R,reload_config
|
|
||||||
bind=SUPER+SHIFT,M,quit
|
|
||||||
|
|
||||||
|
# ─── Insert mode ────────────────────────────────────────────────────────────
|
||||||
|
[keys.insert]
|
||||||
|
|
||||||
|
# ─── Select / extend mode (entered via V) ───────────────────────────────────
|
||||||
|
[keys.select]
|
||||||
|
# wasd movement consistent with normal mode
|
||||||
|
w = "extend_visual_line_up"
|
||||||
|
a = "extend_char_left"
|
||||||
|
s = "extend_visual_line_down"
|
||||||
|
d = "extend_char_right"
|
||||||
|
"S-a" = "extend_prev_word_start" # Shift+a: extend to previous word
|
||||||
|
"S-d" = "extend_next_word_start" # Shift+d: extend to next word
|
||||||
|
"S-q" = "extend_to_line_start" # Shift+q: extend selection to start of line
|
||||||
|
"S-e" = "extend_to_line_end" # Shift+e: extend selection to end of line
|
||||||
|
|||||||
Reference in New Issue
Block a user