Added key-bindings to mangowm.

This commit is contained in:
Johannes Findeisen 2026-11-20 00:48:50 +01:00
commit 3397b68aa7
2 changed files with 104 additions and 86 deletions

View file

@ -166,134 +166,152 @@ tag_rule=id:9,layout_name:tile
# mod keys name: super,ctrl,alt,shift,none # mod keys name: super,ctrl,alt,shift,none
# reload config # reload config
bind=ALT+SHIFT,r,reload_config bind=SUPER+CTRL,r,reload_config
#toggle fullscreen #toggle fullscreen
bind=ALT+SHIFT,f,togglefullscreen bind=SUPER+CTRL,f,togglefullscreen
# commands key bindings # commands key bindings
bind=Alt,space,spawn,wofi --conf ~/.config/mango/wofi/config --show drun bind=SUPER,space,spawn,wofi --conf ~/.config/mango/wofi/config --show drun
#bind=Alt,space,spawn,wofi --conf ~/.config/mango/wofi/config --show drun #bind=Alt,space,spawn,wofi --conf ~/.config/mango/wofi/config --show drun
bind=ALT+SHIFT,d,spawn,wofi --conf ~/.config/mango/wofi/config --show drun #bind=SUPER+SHIFT,d,spawn,wofi --conf ~/.config/mango/wofi/config --show drun
bind=ALT+CTRL,l,spawn,swaylock
bind=ALT+CTRL,Up,spawn,xbacklight -steps 1 -inc 10 bind=SUPER+SHIFT,RETURN,spawn,swaylock
bind=ALT+CTRL,Down,spawn,xbacklight -steps 1 -dec 10
bind=ALT+CTRL,Left,spawn,~/.config/mango/scripts/vol -10 #bind=SUPER+SHIFT,Up,spawn,xbacklight -steps 1 -inc 10
bind=ALT+CTRL,Right,spawn,~/.config/mango/scripts/vol +10 #bind=SUPER+SHIFT,Down,spawn,xbacklight -steps 1 -dec 10
bind=ALT+SHIFT,s,spawn,~/.config/mango/scripts/screenshot-region #bind=SUPER+SHIFT,Left,spawn,~/.config/mango/scripts/vol -10
bind=ALT+CTRL,s,spawn,~/.config/mango/scripts/screenshot-full #bind=SUPER+SHIFT,Right,spawn,~/.config/mango/scripts/vol +10
bind=ALT+SHIFT,n,spawn,~/.config/mango/scripts/mango-move-with next bind=SUPER+SHIFT,s,spawn,~/.config/mango/scripts/screenshot-region
bind=ALT+SHIFT,p,spawn,~/.config/mango/scripts/mango-move-with prev bind=SUPER+SHIFT,f,spawn,~/.config/mango/scripts/screenshot-full
#bind=SUPER+SHIFT,n,spawn,~/.config/mango/scripts/mango-move-with next
#bind=SUPER+SHIFT,p,spawn,~/.config/mango/scripts/mango-move-with prev
# focus # focus
bind=Alt,Tab,focusstack,next bind=SUPER,Tab,focusstack,next
bind=ALT+SHIFT,Tab,focusstack,prev bind=SUPER+SHIFT,Tab,focusstack,prev
bind=Alt,j,focusstack,next bind=SUPER,j,focusstack,next
bind=Alt,k,focusstack,prev bind=SUPER,k,focusstack,prev
# focus (arrow-keys) # focus (arrow-keys)
bind=Alt,Left,focusdir,left #bind=SUPER,Left,focusdir,left
bind=Alt,Right,focusdir,right #bind=SUPER,Right,focusdir,right
bind=Alt,Up,focusdir,up #bind=SUPER,Up,focusdir,up
bind=Alt,Down,focusdir,down #bind=SUPER,Down,focusdir,down
# layout cycling # layout cycling
bind=Alt,comma,spawn_shell,~/.config/mango/scripts/cycle-layout prev bind=SUPER,comma,spawn_shell,~/.config/mango/scripts/cycle-layout prev
bind=Alt,period,spawn_shell,~/.config/mango/scripts/cycle-layout next bind=SUPER,period,spawn_shell,~/.config/mango/scripts/cycle-layout next
# gaps
bind=ALT+CTRL,j,incgaps,-10
bind=ALT+CTRL,k,incgaps,10
# master area
bind=Alt,u,incnmaster,+1
bind=Alt,i,incnmaster,-1
bind=Alt,h,setmfact,-0.05
bind=Alt,l,setmfact,+0.05
# window resize (floating windows) # window resize (floating windows)
bind=ALT+SHIFT,h,resizewin,-50,0 bind=SUPER,h,resizewin,-50,0
bind=ALT+SHIFT,l,resizewin,+50,0 bind=SUPER,l,resizewin,+50,0
# gaps
bind=SUPER+SHIFT,j,incgaps,-10
bind=SUPER+SHIFT,k,incgaps,10
# master area
#bind=SUPER,u,incnmaster,+1
#bind=SUPER,i,incnmaster,-1
#bind=SUPER,h,setmfact,-0.05
#bind=SUPER,l,setmfact,+0.05
# move window in stack # move window in stack
bind=ALT+SHIFT,j,exchange_stack_client,next #bind=SUPER+SHIFT,j,exchange_stack_client,next
bind=ALT+SHIFT,k,exchange_stack_client,prev #bind=SUPER+SHIFT,k,exchange_stack_client,prev
# kill client # kill client
bind=Alt,x,killclient bind=SUPER,x,killclient
bind=ALT+SHIFT,x,killclient #bind=SUPER+SHIFT,x,killclient
# quit # quit
bind=ALT+SHIFT,q,quit bind=SUPER+SHIFT,q,quit
bind=ALT+CTRL,BackSpace,quit bind=SUPER+SHIFT,BackSpace,quit
# toggle floating # toggle floating
bind=ALT+SHIFT,space,togglefloating bind=SUPER+SHIFT,space,togglefloating
# scratchpad # scratchpad
#bind=Alt,grave,toggle_scratchpad #bind=Alt,grave,toggle_scratchpad
# tag switching # tag switching
bind=Alt,p,viewtoleft bind=SUPER,LEFT,viewtoleft
bind=Alt,n,viewtoright bind=SUPER,RIGHT,viewtoright
# tag moving # tag moving
bind=ALT+SHIFT,Left,tagtoleft bind=SUPER+SHIFT,LEFT,tagtoleft
bind=ALT+SHIFT,Right,tagtoright bind=SUPER+SHIFT,RIGHT,tagtoright
# tag view
bind=Alt,1,view,1,0
bind=Alt,2,view,2,0
bind=Alt,3,view,3,0
bind=Alt,4,view,4,0
bind=Alt,5,view,5,0
bind=Alt,6,view,6,0
bind=Alt,7,view,7,0
bind=Alt,8,view,8,0
bind=Alt,9,view,9,0
# tag: move client to tag and follow
bind=ALT+SHIFT,1,tag,1,0
bind=ALT+SHIFT,2,tag,2,0
bind=ALT+SHIFT,3,tag,3,0
bind=ALT+SHIFT,4,tag,4,0
bind=ALT+SHIFT,5,tag,5,0
bind=ALT+SHIFT,6,tag,6,0
bind=ALT+SHIFT,7,tag,7,0
bind=ALT+SHIFT,8,tag,8,0
bind=ALT+SHIFT,9,tag,9,0
# view all tags
bind=Alt,0,view,0
# monitor focus
bind=ALT+SHIFT,comma,tagmon,left
bind=ALT+SHIFT,period,tagmon,right
# cycle monitor focus (Alt+- cycles through physical outputs)
bind=Alt,code:61,spawn_shell,~/.config/mango/scripts/cycle-monitor
# cycle monitor with focused window (Alt+Shift+- moves window to next monitor and follows)
bind=ALT+SHIFT,code:61,spawn_shell,~/.config/mango/scripts/cycle-monitor-with-client
# terminal
#bind=Alt,Return,spawn,foot zsh
bind=SUPER,Return,spawn,uxterm -bg black -fg grey -sb -leftbar -si -bc -cr orange -fa "Noto Sans Mono"i -fs 14
bind=SUPER,a,spawn,/home/hanez/cargo/bin/zoha
# toggle overview (to select window with mouse)
bind=Alt+SHIFT,o,toggleoverview
# Mouse Button Bindings (DWM-style: Mod+Button1 = move, Mod+Button3 = resize)
mousebind=ALT,btn_left,moveresize,curmove
mousebind=ALT,btn_right,moveresize,curresize
# Axis Bindings (scroll on desktop = switch tag) # Axis Bindings (scroll on desktop = switch tag)
#axisbind=ALT,UP,viewtoleft #axisbind=ALT,UP,viewtoleft
#axisbind=ALT,DOWN,viewtoright #axisbind=ALT,DOWN,viewtoright
#axisbind=ALT,UP,viewtoleft #axisbind=ALT,UP,viewtoleft
#axisbind=ALT,DOWN,viewtoright #axisbind=ALT,DOWN,viewtoright
axisbind=ALT,UP,viewtoleft_have_client #axisbind=SUPER+SHIFT,LEFT,viewtoleft_have_client
axisbind=ALT,DOWN,viewtoright_have_client #axisbind=SUPER+SHIFT,RIGHT,viewtoright_have_client
# tag view
bind=SUPER,1,view,1,0
bind=SUPER,2,view,2,0
bind=SUPER,3,view,3,0
bind=SUPER,4,view,4,0
bind=SUPER,5,view,5,0
bind=SUPER,6,view,6,0
bind=SUPER,7,view,7,0
bind=SUPER,8,view,8,0
bind=SUPER,9,view,9,0
# tag: move client to tag and follow
bind=SUPER+SHIFT,2,tag,2,0
bind=SUPER+SHIFT,3,tag,3,0
bind=SUPER+SHIFT,4,tag,4,0
bind=SUPER+SHIFT,5,tag,5,0
bind=SUPER+SHIFT,6,tag,6,0
bind=SUPER+SHIFT,7,tag,7,0
bind=SUPER+SHIFT,8,tag,8,0
bind=SUPER+SHIFT,9,tag,9,0
# view all tags
bind=SUPER,0,view,0
# monitor focus/moving
#bind=SUPER+ALT,comma,tagmon,left
#bind=SUPER+ALT,period,tagmon,right
bind=SUPER+CTRL,LEFT,tagmon,left
bind=SUPER+CTRL,RIGHT,tagmon,right
# cycle monitor focus (Alt+- cycles through physical outputs)
#bind=Alt,code:61,spawn_shell,~/.config/mango/scripts/cycle-monitor
# cycle monitor with focused window (Alt+Shift+- moves window to next monitor and follows)
#bind=ALT+SHIFT,code:61,spawn_shell,~/.config/mango/scripts/cycle-monitor-with-client
# terminal
#bind=Alt,Return,spawn,foot zsh
#bind=SUPER,q,spawn,uxterm -bg black -fg grey -sb -leftbar -si -bc -cr orange -fa "Noto Sans Mono"i -fs 14
#window_rule=is_floating:1,width:800,height:600,x:100,y:100,app_id:foot
# Match this terminal and set its floating size
window_rule=is_named_scratchpad:1,width:1560,height:1000,offset_x:0,offset_y:0,app_id:term-scratch
# # SUPER+q toggles it; launch foot only if it isn't already running
bind=SUPER,q,toggle_named_scratchpad,term-scratch,none,foot --app-id=term-scratch
bind=SUPER,Return,spawn,uxterm -bg black -fg grey -sb -leftbar -si -bc -cr orange -fa "Noto Sans Mono"i -fs 14
#bind=SUPER,a,spawn,zoha -s
bind=SUPER,b,spawn,firefox
bind=SUPER,v,spawn,brave
bind=SUPER,y,spawn,Thunar
#bind=SUPER,b,spawn,firefox
#bind=SUPER,b,spawn,firefox
#bind=SUPER,b,spawn,firefox
# toggle overview (to select window with mouse)
bind=SUPER,o,toggleoverview
# Mouse Button Bindings (DWM-style: Mod+Button1 = move, Mod+Button3 = resize)
mousebind=SUPER,btn_left,moveresize,curmove
mousebind=SUPER,btn_right,moveresize,curresize
# Monitor configuration (swapped: DP-2 left, DP-1 right) # Monitor configuration (swapped: DP-2 left, DP-1 right)
#monitorrule=name:^DP-1$,width:2560,height:1440,refresh:60,x:0,y:0,scale:2.5 #monitorrule=name:^DP-1$,width:2560,height:1440,refresh:60,x:0,y:0,scale:2.5

View file

@ -10,7 +10,7 @@ term=xterm-256color
# locked-title=no # locked-title=no
#font=JetBrains Mono NL Medium:size=14 #font=JetBrains Mono NL Medium:size=14
font=JetBrainsMono:size=16 font=Noto Sans Mono:size=44
# font-bold=<bold variant of regular font> # font-bold=<bold variant of regular font>
# font-italic=<italic variant of regular font> # font-italic=<italic variant of regular font>
# font-bold-italic=<bold+italic variant of regular font> # font-bold-italic=<bold+italic variant of regular font>
@ -74,9 +74,9 @@ hide-when-typing=yes
[colors-dark] [colors-dark]
# background opacity # background opacity
#alpha=1.0 alpha=1.0
#alpha=0.97 #alpha=0.97
alpha=0.9 #alpha=0.9
cursor=eeeeee 9f515a cursor=eeeeee 9f515a
#color=eeeeee 9f515a #color=eeeeee 9f515a
# blink=no # blink=no
@ -119,10 +119,10 @@ selection-background=3e4450
# button-close-color=<regular1> # button-close-color=<regular1>
[key-bindings] [key-bindings]
# scrollback-up-page=Shift+Page_Up scrollback-up-page=Shift+Page_Up
# scrollback-up-half-page=none # scrollback-up-half-page=none
# scrollback-up-line=none # scrollback-up-line=none
# scrollback-down-page=Shift+Page_Down scrollback-down-page=Shift+Page_Down
# scrollback-down-half-page=none # scrollback-down-half-page=none
# scrollback-down-line=none # scrollback-down-line=none
#clipboard-copy=Control+Shift+c #clipboard-copy=Control+Shift+c