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
|
||||
monitorrule=name:Virtual-1,width:2048,height:1152,refresh:60,x:0,y:0
|
||||
# Movement: wasd
|
||||
w = "move_visual_line_up"
|
||||
a = "move_char_left"
|
||||
s = "move_visual_line_down"
|
||||
d = "move_char_right"
|
||||
|
||||
#cursor
|
||||
cursor_theme=Bibata-Modern-Ice
|
||||
cursor_size=24
|
||||
# Insert before / after cursor
|
||||
v = "insert_mode" # insert before cursor
|
||||
b = "append_mode" # insert after cursor
|
||||
V = "select_mode" # enter select/extend mode ("v" was repurposed)
|
||||
|
||||
#color scheme
|
||||
rootcolor=0x000000ff
|
||||
bordercolor=0xfffcffff
|
||||
focuscolor=0xffabfcff
|
||||
urgentcolor=0x888888ff
|
||||
#border
|
||||
borderpx=3
|
||||
gappih=5
|
||||
gappiv=5
|
||||
gappoh=10
|
||||
gappov=10
|
||||
# Editing
|
||||
o = "open_below"
|
||||
O = "open_above"
|
||||
x = "extend_line_below" # select current line (repeat to extend down)
|
||||
J = "join_selections"
|
||||
">" = "indent"
|
||||
"<" = "unindent"
|
||||
C-z = "undo"
|
||||
C-y = "redo"
|
||||
C-s = ":w" # Ctrl+s: save file
|
||||
|
||||
#tiling type fair
|
||||
tagrule=id:1,monitor_name:Virtual-1,layout_name:fair
|
||||
# Search
|
||||
"/" = "search"
|
||||
n = "search_next"
|
||||
N = "search_prev"
|
||||
|
||||
#anims
|
||||
animations=1
|
||||
layer_animations=1
|
||||
animation_type_open=slide
|
||||
animation_type_close=slide
|
||||
layer_animation_type_open=slide
|
||||
layer_animation_type_close=slide
|
||||
# Cursor stack & deletes (shift layer)
|
||||
W = "copy_selection_on_prev_line" # Shift+w: add cursor above
|
||||
S = "copy_selection_on_next_line" # Shift+s: add cursor below
|
||||
X = ["extend_line_below", "delete_selection"] # Shift+x: delete current line (yanks)
|
||||
";" = "keep_primary_selection" # collapse multi-cursors to one (primary)
|
||||
"S-r" = "select_regex"
|
||||
"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
|
||||
exec-once=/usr/lib/xdg-desktop-portal-wlr &
|
||||
exec-once=wl-clip-persist -clipboard regular --reconnect-tries 0 &
|
||||
exec-once=wl-paste --type text --watch cliphist store &
|
||||
exec-once=swaybg -i /home/shark/walls/felix.jpg -m fill &
|
||||
exec-once=waybar
|
||||
# ─── Goto mode (g prefix) ───────────────────────────────────────────────────
|
||||
[keys.normal.g]
|
||||
g = "goto_file_start" # gg -> start of file; {num}gg -> jump to that line
|
||||
e = "goto_last_line" # ge -> end of file
|
||||
h = "goto_line_start" # gh -> start of line
|
||||
l = "goto_line_end" # gl -> end of line
|
||||
w = "goto_word" # gw -> word label jump
|
||||
|
||||
#keyboard
|
||||
repeat_rate=25
|
||||
repeat_delay=600
|
||||
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
|
||||
# ─── View mode (z prefix) ───────────────────────────────────────────────────
|
||||
[keys.normal.z]
|
||||
z = "align_view_center" # zz -> center cursor on screen
|
||||
|
||||
# ─── 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