summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-07-25 12:54:03 +0200
committercashmere <cashmere@autistici.org>2026-07-25 12:54:03 +0200
commit6812d2e0518fd607d07a98c6460db1120301fc66 (patch)
tree9f747aeeb033e109d425f87c1f5ac4347cf4e587
parent351015a73885d4a967d7173416c5ee016bf64925 (diff)
downloadports-6812d2e0518fd607d07a98c6460db1120301fc66.tar.gz
mangowm related configs
-rw-r--r--dotfiles.org300
1 files changed, 300 insertions, 0 deletions
diff --git a/dotfiles.org b/dotfiles.org
index 8e92182..746a8da 100644
--- a/dotfiles.org
+++ b/dotfiles.org
@@ -292,6 +292,306 @@ account default : autistici
#+begin_src sh
mu init --maildir=$HOME/Mails --my-address=cashmeresamurai@autistici.org --my-address=cashmere@cashmere.rs
#+end_src
+* mangowm
+
+#+begin_src conf :tangle ~/.config/mango/config.conf
+env=LIBVA_DRIVER_NAME,nvidia
+env=GBM_BACKEND,nvidia-drm
+env=__GLX_VENDOR_LIBRARY_NAME,nvidia
+syncobj_enable=1
+
+monitorrule=name:HEADLESS-.*,width:1920,height:1080,refresh:144,x:0,y:0,scale:1,rr:0,vrr:0
+
+exec-once=sh -c 'mmsg dispatch create_virtual_output && sleep 0.5 && wayvnc -g -f 60 -o HEADLESS-1 0.0.0.0 5900'
+exec-once=emacs --fg-daemon
+exec-once=sh -c "while true; do sunshine-nvenc; sleep 2; done"
+exec-once=pipewire
+exec-once=wireplumber
+exec-once=pipewire-pulse
+exec-once=wl-paste --watch cliphist store
+exec-once=i3bar-river
+
+# 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=6
+no_radius_when_single=0
+focused_opacity=1.0
+unfocused_opacity=1.0
+
+# Animation Configuration(support type:zoom,slide)
+# tag_animation_direction: 1-horizontal,0-vertical
+animations=1
+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.4
+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
+animation_curve_opafadeout=0.5,0.5,0.5,0.5
+animation_curve_opafadein=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
+idleinhibit_ignore_visible=0
+sloppyfocus=1
+warpcursor=1
+focus_cross_monitor=0
+focus_cross_tag=0
+enable_floating_snap=0
+snap_distance=30
+cursor_size=24
+drag_tile_to_tile=1
+
+# keyboard
+repeat_rate=25
+repeat_delay=600
+numlockon=0
+xkb_rules_layout=us
+
+# 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=5
+gappiv=5
+gappoh=10
+gappov=10
+scratchpad_width_ratio=0.8
+scratchpad_height_ratio=0.9
+borderpx=4
+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
+
+# reload config
+bind=super,r,reload_config
+
+# menu and terminal
+bind=super,space,spawn,wmenu-run -f "Maple Mono NF 18"
+bind=SUPER,b,spawn,helium
+bind=SUPER,i,spawn,halloy
+bind=SUPER,p,spawn,passmenu
+bind=SUPER,s,spawn,powermenu
+bind=SUPER,v,spawn_shell,cliphist list | wmenu -f "Maple Mono NF 18" | cliphist decode | wl-copy
+bind=SUPER,Print,spawn_shell,grim -g "$(slurp)" - | wl-copy
+bind=super,Return,spawn,emacsclient -c
+
+# exit
+bind=SUPER,m,quit
+bind=SUPER,q,killclient,
+
+# swap window
+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
+
+
+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=Alt,1,tag,1,0
+bind=Alt,2,tag,2,0
+bind=Alt,3,tag,3,0
+bind=Alt,4,tag,4,0
+bind=Alt,5,tag,5,0
+bind=Alt,6,tag,6,0
+bind=Alt,7,tag,7,0
+bind=Alt,8,tag,8,0
+bind=Alt,9,tag,9,0
+
+# monitor switch
+bind=alt+shift,Left,focusmon,left
+bind=alt+shift,Right,focusmon,right
+bind=SUPER+Alt,Left,tagmon,left
+bind=SUPER+Alt,Right,tagmon,right
+
+# gaps
+bind=ALT+SHIFT,X,incgaps,1
+bind=ALT+SHIFT,Z,incgaps,-1
+bind=ALT+SHIFT,R,togglegaps
+
+# md layout
+bind=SUPER+SHIFT,r,reload_config
+bind=SUPER+SHIFT,e,quit
+bind=SUPER,h,focusdir,left
+bind=SUPER,j,focusstack,next
+bind=SUPER,k,focusstack,prev
+bind=SUPER,l,focusdir,right
+bind=SUPER+SHIFT,h,spawn,/home/cashmere/.config/mango/smart-move.sh left
+bind=SUPER+SHIFT,j,exchange_client,down
+bind=SUPER+SHIFT,k,exchange_client,up
+bind=SUPER+SHIFT,l,spawn,/home/cashmere/.config/mango/smart-move.sh right
+bind=SUPER,Tab,spawn,/home/cashmere/.config/mango/smart-cycle.sh next
+bind=SUPER+SHIFT,Tab,spawn,/home/cashmere/.config/mango/smart-cycle.sh prev
+bind=SUPER,t,spawn,/home/cashmere/.config/mango/tabbed-toggle.sh
+bind=SUPER,g,groupjoin,right
+bind=SUPER+SHIFT,g,groupleave,
+bind=SUPER+CTRL,g,groupfocus,next
+bind=SUPER+CTRL+SHIFT,g,groupfocus,prev
+bind=SUPER,Escape,switch_layout,
+bind=SUPER,o,toggleoverview
+bind=SUPER,f,togglefullscreen,
+bind=SUPER+SHIFT,f,togglefloating,
+bind=SUPER,grave,focuslast
+bind=SUPER,comma,viewtoleft_have_client
+bind=SUPER,period,viewtoright_have_client
+bind=SUPER+SHIFT,comma,tagtoleft
+bind=SUPER+SHIFT,period,tagtoright
+bind=SUPER+SHIFT,0,tag,0,0
+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
+bind=SUPER,x,spawn,emacsclient -e '(my/org-capture-float)
+bind=NONE,XF86AudioLowerVolume,spawn,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
+bind=NONE,XF86AudioRaiseVolume,spawn,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
+bind=NONE,XF86AudioMute,spawn,wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
+bind=NONE,XF86AudioPlay,spawn,playerctl play-pause
+bind=NONE,XF86AudioNext,spawn,playerctl next
+bind=NONE,XF86AudioPrev,spawn,playerctl previous
+circle_layout=tile,monocle
+# 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
+
+
+# layer rule
+layerrule=animation_type_open:zoom,layer_name:rofi
+layerrule=animation_type_close:zoom,layer_name:rofi
+#+end_src
+
+** display command
+
+command when connecting with x12
+
+#+begin_src sh
+wlr-randr --output HEADLESS-1 --custom-mode 1920x1280@60Hz --scale 1.5
+#+end_src
* Tasks
** Services