# Key Bindings # key name refer to `xev` or `wev` command output, # mod keys name: super,ctrl,alt,shift,none # reload config bind=SUPER,r,reload_config # menu and terminal bind=Alt,space,spawn,rofi -show drun bind=Alt,Return,spawn,wezterm # exit bind=ALT+SHIFT,q,quit bind=ALT,q,killclient, # switch window focus bind=SUPER,Tab,focusstack,next bind=ALT,h,focusdir,left bind=ALT,l,focusdir,right bind=ALT,k,focusdir,up bind=ALT,j,focusdir,down # swap window bind=Alt+SHIFT,k,exchange_client,up bind=Alt+SHIFT,j,exchange_client,down bind=Alt+SHIFT,h,exchange_client,left bind=Alt+SHIFT,l,exchange_client,right # switch window status bind=SUPER,g,toggleglobal, bind=ALT,Tab,togglejump, bind=ALT,backslash,togglefloating, bind=ALT,a,togglemaximizescreen, bind=ALT,f,togglefullscreen, bind=ALT+SHIFT,f,togglefakefullscreen, bind=SUPER,m,minimized, bind=SUPER,o,toggleoverlay, bind=SUPER+SHIFT,m,restore_minimized bind=ALT,z,toggle_scratchpad # scroller layout bind=ALT,e,set_proportion,1.0 bind=ALT,x,switch_proportion_preset, bind=alt+super+ctrl,Left,scroller_stack,left bind=alt+super+ctrl,Right,scroller_stack,right bind=alt+super+ctrl,Up,scroller_stack,up bind=alt+super+ctrl,Down,scroller_stack,down #dwindle layout(manual split mode) bind=alt+shift,Return,dwindle_toggle_split_direction # switch layout bind=SUPER,n,switch_layout # tag switch bind=SUPER,Left,viewtoleft,0 bind=CTRL,Left,viewtoleft_have_client,0 bind=SUPER,Right,viewtoright,0 bind=CTRL,Right,viewtoright_have_client,0 bind=CTRL+SUPER,Left,tagtoleft,0 bind=CTRL+SUPER,Right,tagtoright,0 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 the tag and focus it # tagsilent: move client to the tag and not focus it # bind=Alt,1,tagsilent,1 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 # monitor switch bind=alt,code:59,focusmon,left # alt + , like dwm bind=alt,code:60,focusmon,right # alt + . like dwm bind=Alt+Shift,code:59,tagmon,left # alt + < like dwm bind=Alt+Shift,code:60,tagmon,right # alt + > like dwm # gaps bind=ALT+SHIFT,X,incgaps,1 bind=ALT+SHIFT,Z,incgaps,-1 bind=ALT+SHIFT,R,togglegaps # waybar bind=CTRL+ALT,b,spawn,pkill -SIGUSR1 waybar # movewin bind=CTRL+SHIFT,Up,movewin,+0,-50 bind=CTRL+SHIFT,Down,movewin,+0,+50 bind=CTRL+SHIFT,Left,movewin,-50,+0 bind=CTRL+SHIFT,Right,movewin,+50,+0 # resizewin bind=CTRL+ALT,Up,resizewin,+0,-50 bind=CTRL+ALT,Down,resizewin,+0,+50 bind=CTRL+ALT,Left,resizewin,-50,+0 bind=CTRL+ALT,Right,resizewin,+50,+0 # Mouse Button Bindings # btn_left and btn_right can't bind none mod key mousebind=SUPER,btn_left,moveresize,curmove #mousebind=NONE,btn_middle,togglemaximizescreen,0 mousebind=SUPER,btn_right,moveresize,curresize # Axis Bindings axisbind=SUPER,UP,viewtoleft_have_client axisbind=SUPER,DOWN,viewtoright_have_client # Gesture Bindings gesturebind=none,left,3,focusdir,left gesturebind=none,right,3,focusdir,right gesturebind=none,up,3,focusdir,up gesturebind=none,down,3,focusdir,down gesturebind=none,right,4,viewprev_have_client gesturebind=none,left,4,viewnext_have_client gesturebind=none,up,4,enteroverview gesturebind=none,down,4,leaveoverview # media/sound keys bind=none,XF86AudioPlay,spawn,playerctl play-pause bind=shift,XF86AudioPlay,spawn,playerctl -a pause bind=none,XF86AudioNext,spawn,playerctl next bind=none,XF86AudioPrev,spawn,playerctl previous bind=none,XF86AudioMute,spawn,wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bind=none,XF86AudioMicMute,spawn,wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle bind=none,XF86AudioRaiseVolume,spawn,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ bind=none,XF86AudioLowerVolume,spawn,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- bind=shift,XF86AudioRaiseVolume,spawn,wpctl set-volume @DEFAULT_AUDIO_SINK@ 10%+ bind=shift,XF86AudioLowerVolume,spawn,wpctl set-volume @DEFAULT_AUDIO_SINK@ 10%- # brightness # #disable keybind mode bind=SUPER,Escape,setkeymode,disabled keymode=disabled bind=NONE,Escape,setkeymode,default bind=NONE,q,setkeymode,default