# More option see https://github.com/DreamMaoMao/mango/wiki/ # AUTOSTART exec-once = dbus-update-activation-environment --all exec-once = foot --server exec-once = dwlb exec-once = someblocks -b exec-once = start-pipewire exec-once = mpd exec-once = fnott exec-once = swayidle exec-once = singboxwrap exec-once = gpg-agent --daemon exec-once = gnome-keyring-daemon --start --components=secrets exec-once = portal exec-once = stmpdup # MONITORS monitorrule=DP-2, 0.55, 1, tile, 0,1,0,0,2560,1440,165 monitorrule=DP-3, 0.55, 1, tile, 0,1.5,2560,0,3840,2160,165 # INPUT accel_profile = 1 # keyboard numlockon=0 xkb_rules_layout=us xkb_rules_options=caps:escape repeat_rate = 45 repeat_delay = 300 windowrule=isterm:1,appid:footclient windowrule=isfloating:1,width:1200,height:900,appid:termfilechooser # Window effect blur=0 blur_layer=0 blur_optimized=1 blur_params_num_passes = 2 blur_params_radius = 5 blur_params_noise = 0.02 blur_params_brightness = 0.9 blur_params_contrast = 0.9 blur_params_saturation = 1.2 shadows = 0 layer_shadows = 0 shadow_only_floating = 1 shadows_size = 10 shadows_blur = 15 shadows_position_x = 0 shadows_position_y = 0 shadowscolor= 0x000000ff border_radius=0 no_radius_when_single=0 focused_opacity=1.0 unfocused_opacity=1.0 # Animation Configuration(support type:zoom,slide) # tag_animation_direction: 0-horizontal,1-vertical animations=0 layer_animations=1 animation_type_open=slide animation_type_close=slide animation_fade_in=1 animation_fade_out=1 tag_animation_direction=1 zoom_initial_ratio=0.3 zoom_end_ratio=0.8 fadein_begin_opacity=0.5 fadeout_begin_opacity=0.8 animation_duration_move=500 animation_duration_open=400 animation_duration_tag=350 animation_duration_close=800 animation_duration_focus=0 animation_curve_open=0.46,1.0,0.29,1 animation_curve_move=0.46,1.0,0.29,1 animation_curve_tag=0.46,1.0,0.29,1 animation_curve_close=0.08,0.92,0,1 animation_curve_focus=0.46,1.0,0.29,1 # Scroller Layout Setting scroller_structs=20 scroller_default_proportion=0.8 scroller_focus_center=0 scroller_prefer_center=0 edge_scroller_pointer_focus=1 scroller_default_proportion_single=1.0 scroller_proportion_preset=0.5,0.8,1.0 # Master-Stack Layout Setting new_is_master=1 default_mfact=0.55 default_nmaster=1 smartgaps=0 # Overview Setting hotarea_size=10 enable_hotarea=1 ov_tab_mode=0 overviewgappi=5 overviewgappo=30 # Misc no_border_when_single=0 axis_bind_apply_timeout=100 focus_on_activate=1 inhibit_regardless_of_visibility=0 sloppyfocus=1 warpcursor=0 focus_cross_monitor=0 focus_cross_tag=0 enable_floating_snap=0 snap_distance=30 cursor_size=24 drag_tile_to_tile=1 # Trackpad # need relogin to make it apply disable_trackpad=0 tap_to_click=1 tap_and_drag=1 drag_lock=1 trackpad_natural_scrolling=0 disable_while_typing=1 left_handed=0 middle_button_emulation=0 swipe_min_threshold=1 # mouse # need relogin to make it apply mouse_natural_scrolling=0 # Appearance gappih=0 gappiv=0 gappoh=0 gappov=0 scratchpad_width_ratio=0.8 scratchpad_height_ratio=0.9 borderpx=3 rootcolor=0x201b14ff bordercolor=0x444444ff focuscolor=0xc9b890ff maximizescreencolor=0x89aa61ff urgentcolor=0xad401fff scratchpadcolor=0x516c93ff globalcolor=0xb153a7ff overlaycolor=0x14a57cff # layout support: # tile,scroller,grid,deck,monocle,center_tile,vertical_tile,vertical_scroller tagrule=id:1,layout_name:tile tagrule=id:2,layout_name:tile tagrule=id:3,layout_name:tile tagrule=id:4,layout_name:tile tagrule=id:5,layout_name:tile tagrule=id:6,layout_name:tile tagrule=id:7,layout_name:tile tagrule=id:8,layout_name:tile tagrule=id:9,layout_name:tile # Key Bindings # key name refer to `xev` or `wev` command output, # mod keys name: super,ctrl,alt,shift,none bind=SUPER,grave,spawn,bookmarks bind=SUPER,minus,spawn_shell,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; pkill -RTMIN+10 someblocks bind=SUPER+SHIFT,minus,spawn_shell, wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%-; pkill -RTMIN+10 someblocks bind=SUPER,equal,spawn_shell,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; pkill -RTMIN+10 someblocks bind=SUPER+SHIFT,equal,spawn_shell, wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%+; pkill -RTMIN+10 someblocks bind=SUPER,BackSpace,spawn,sysact bind=SUPER+SHIFT,BackSpace,spawn,sysact bind=SUPER,Tab,spawn,chooseprofile # bind=SUPER+SHIFT,Tab,spawn, bind=SUPER,q,killclient bind=SUPER+Shift,Q,spawn,sysact bind=SUPER,w,spawn,$BROWSER # bind=SUPER,W,spawn,$TERMINAL -e nmtui bind=SUPER,e,spawn_shell,$TERMINAL -T neomutt -a neomutt -e neomutt; pkill -RTMIN+12 someblocks; rmdir ~/.abook 2>/dev/null bind=SUPER+SHIFT,E,spawn,$TERMINAL -e abook -C ~/.config/abook/abookrc --datafile ~/.config/abook/addressbook bind=SUPER,r,spawn,$TERMINAL -e yazi bind=SUPER+SHIFT,R,spawn,$TERMINAL -e btop # bind=SUPER,t, # bind=SUPER+SHIFT,t, # bind=SUPER,y, # bind=SUPER+SHIFT,Y, # bind=SUPER,u, # bind=SUPER+SHIFT,U, # bind=SUPER,i, # bind=SUPER+SHIFT,I, # bind=SUPER,o, # bind=SUPER+SHIFT,O, bind=SUPER,p,spawn,mpc toggle bind=SUPER+SHIFT,P,spawn_shell,mpc toggle; pauseallmpv bind=SUPER,bracketleft,spawn,mpc seek -10 bind=SUPER+SHIFT,bracketleft,spawn, mpc seek -60 bind=SUPER,bracketright,spawn,mpc seek +10 bind=SUPER+SHIFT,bracketright,spawn, mpc seek +60 # bind=SUPER,backslash, # bind=SUPER+SHIFT,backslash, # bind=SUPER,a, # bind=SUPER+SHIFT,A, # bind=SUPER,s, # bind=SUPER+SHIFT,S, bind=SUPER,d,spawn,mew-run bind=SUPER+SHIFT,D,spawn,tessen bind=SUPER,f,togglefullscreen bind=SUPER+SHIFT,f,togglefakefullscreen # bind=SUPER,g, # bind=SUPER+SHIFT,G, bind=SUPER,h,resizewin,-50,+0 bind=SUPER,j,focusstack,prev bind=SUPER+SHIFT,J,resizewin,+50,+0 bind=SUPER,k,focusstack,next bind=SUPER+SHIFT,K,resizewin,+0,-50 bind=SUPER,l,resizewin,+50,+0 # bind=SUPER,semicolon, # bind=SUPER+SHIFT,semicolon, # bind=SUPER,apostrophe, # bind=SUPER+SHIFT,apostrophe, bind=SUPER,Return,spawn,$TERMINAL # bind=SUPER+SHIFT,Return, # bind=SUPER,z, # bind=SUPER+SHIFT,Z, # bind=SUPER,x, # bind=SUPER+SHIFT,X, # bind=SUPER,c, # bind=SUPER+SHIFT,C, # bind=SUPER,b, # bind=SUPER+SHIFT,B, # bind=SUPER,n, bind=SUPER+SHIFT,N,spawn_shell,$TERMINAL -T newsraft -a newsraft -e newsraft; pkill -RTMIN+6 someblocks bind=SUPER,m,spawn,$TERMINAL -e rmpc bind=SUPER+SHIFT,m,spawn_shell,wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44 $(pidof someblocks) bind=SUPER,comma,spawn,rmpc prev bind=SUPER,period,spawn,rmpc next bind=SUPER+SHIFT,comma,spawn,mpc seek 0% bind=SUPER+SHIFT,period,spawn,mpc repeat bind=SUPER,Left,focusmon,left bind=SUPER+SHIFT,Left,tagmon,left bind=SUPER,Right,focusmon,right bind=SUPER+SHIFT,Right,tagmon,right # bind=SUPER,Page_Up, # bind=SUPER+SHIFT,Page_Up, # bind=SUPER,Page_Down, # bind=SUPER+SHIFT,Page_Down, # bind=SUPER,Insert,spawn, bind=SUPER,F1,spawn,singboxwrap menu # bind=SUPER,F2, # bind=SUPER,F3, bind=SUPER,F4,spawn,$TERMINAL -e pulsemixer # bind=SUPER,F5,spawn, bind=SUPER,F6,spawn,torwrap bind=SUPER,F7,spawn,td-toggle bind=SUPER,F8,spawn,mailup bind=SUPER,F9,spawn,mounter bind=SUPER,F10,spawn,unmounter # bind=SUPER,F11, # bind=SUPER,F12, bind=SUPER,space,exchange_client bind=SUPER+SHIFT,space,togglefloating bind=NONE,Print,spawn_shell,grim pic-full-$(date '+%y%m%d-%H%M-%S').png bind=SHIFT,Print,spawn,maimpick bind=SUPER,Print,spawn,dmenurecord bind=SUPER+SHIFT,Print,spawn,dmenurecord kill bind=SUPER,Delete,spawn,dmenurecord kill # bind=SUPER,Scroll_Lock, # switch window status bind=SUPER,g,toggleglobal, bind=ALT,Tab,toggleoverview, bind=ALT,backslash,togglefloating, bind=ALT,a,togglemaximizescreen, bind=SUPER,i,minimized, bind=SUPER,o,toggleoverlay, bind=SUPER+SHIFT,I,restore_minimized bind=ALT,z,toggle_scratchpad # # scroller layout # bind=ALT,e,set_proportion,1.0 # bind=ALT,x,switch_proportion_preset, # 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=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 the tag and focus it # tagsilent: move client to the tag and not focus it # bind=Alt,1,tagsilent,1 bind=SUPER+SHIFT,1,tag,1,0 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 # monitor switch # gaps bind=ALT+SHIFT,X,incgaps,1 bind=ALT+SHIFT,Z,incgaps,-1 bind=ALT+SHIFT,R,togglegaps # 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 # Mouse Button Bindings # NONE mode key only work in ov mode mousebind=SUPER,btn_left,moveresize,curmove # mousebind=NONE,btn_middle,togglemaximizescreen,0 mousebind=SUPER,btn_right,moveresize,curresize mousebind=NONE,btn_left,toggleoverview,1 mousebind=NONE,btn_right,killclient,0 # Axis Bindings axisbind=SUPER,UP,viewtoleft_have_client axisbind=SUPER,DOWN,viewtoright_have_client