aboutsummaryrefslogtreecommitdiff
path: root/flavors/linux-mango/.config/mango/config.conf
blob: 9d36641326ce55c41ee8eb758c496819b55b2b99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
# MangoWM port of ~/.config/hypr.
# Mango uses SUPER as the main modifier, matching the Hyprland setup.

# Appearance and effects
blur=1
blur_layer=1
blur_optimized=1
blur_params_num_passes=1
blur_params_radius=3
blur_params_noise=0.0117
blur_params_brightness=0.8172
blur_params_contrast=0.8916
blur_params_saturation=1.1696

shadows=1
layer_shadows=0
shadow_only_floating=1
shadows_size=12
shadows_blur=20
shadows_position_x=0
shadows_position_y=0

no_radius_when_single=0
focused_opacity=1.0
unfocused_opacity=1.0

# Animation settings, using curves close to the Hyprland setup.
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=250
animation_duration_open=250
animation_duration_tag=250
animation_duration_close=250
animation_duration_focus=0
animation_curve_open=0.23,1.0,0.32,1.0
animation_curve_move=0.23,1.0,0.32,1.0
animation_curve_tag=0.65,0.05,0.36,1.0
animation_curve_close=0.15,0.0,0.1,1.0
animation_curve_focus=0.15,0.0,0.1,1.0
animation_curve_opafadeout=0.5,0.5,0.5,0.5
animation_curve_opafadein=0.46,1.0,0.29,1.0

# Layout defaults
new_is_master=1
default_mfact=0.55
default_nmaster=1
tag_num=10
smartgaps=0

gappih=5
gappiv=5
gappoh=5
gappov=5

# Scroller layout
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

# Dwindle layout
dwindle_smart_split=0
dwindle_drop_simple_split=1
dwindle_manual_split=0
dwindle_hsplit=1
dwindle_vsplit=1
dwindle_preserve_split=1

# Overview
hotarea_size=10
enable_hotarea = 1
overviewgappi=5
overviewgappo=30
overcircle_center_ratio=0.5

# Input and general behaviour
focus_on_activate=1
idleinhibit_ignore_visible=0
sloppyfocus=1
warpcursor=0
focus_cross_monitor=0
focusdir_only_zone_overlap=1
focus_cross_tag=0
enable_floating_snap=0
snap_distance=30
drag_tile_to_tile=1
drag_tile_small=1
cursor_size=24
repeat_rate=25
repeat_delay=600
numlockon=0
xkb_rules_layout=es

# Touchpad and mouse
trackpad_natural_scrolling=0
trackpad_disable_while_typing=1
tap_to_click=1
tap_and_drag=1
drag_lock=1
mouse_natural_scrolling=0

# Theme values are generated by cwal.
source-optional=$HOME/.config/mango/generated-theme.conf

# Colors and borders
no_border_when_single=0
allow_tearing=0
hdr_depth = 2

# Every tag starts in the Hyprland master-like tile layout.
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
tagrule=id:10,layout_name:tile

# Named scratchpad. The first SUPER+S starts it; subsequent presses show/hide it.
windowrule=appid:foot-scratchpad,isnamedscratchpad:1,isfloating:1,width:0.80,height:0.90

# Gamescope: always open fullscreen so the game fills the whole 4K panel.
windowrule=appid:gamescope,isfullscreen:1

# No window decorations
windowrule=allow_csd:0

# Keep the Rofi layer animated like the Hyprland setup.
layerrule=animation_type_open:zoom,layer_name:rofi
layerrule=animation_type_close:zoom,layer_name:rofi

# Startup
exec-once=waybar
exec-once=~/.config/mango/wallpaper-rotate.sh
exec-once=swayidle -w timeout 200 'swaylock -f -c 000000' timeout 210 'mmsg dispatch sleep_monitor' resume 'mmsg dispatch wakeup_monitor' before-sleep 'swaylock -f -c 000000'

env=XCURSOR_SIZE,24

# Lock screen bro
bind=CTRL+ALT,L,spawn,sh -c "swaylock -f -c 000000"

# Applications
bind=SUPER,r,spawn,rofi -show drun -theme ~/.config/rofi/config.rasi
bind=SUPER+SHIFT,Return,spawn,foot
bind=SUPER+CTRL,l,spawn,hyprlock
bind=SUPER,w,spawn,plumb
bind=SUPER,e,spawn,dolphin
bind=SUPER,f,spawn,firefox

# Focus and window actions
bind=SUPER,j,focusstack,next
bind=SUPER,k,focusstack,prev
bind=SUPER+SHIFT,c,killclient,0
bind=SUPER+SHIFT,space,togglefloating,0
bind=SUPER,Tab,focuslast,0
bind=SUPER,p,zoom,0
bind=SUPER,g,togglefullscreen,0
bind=SUPER,Left,focusdir,left
bind=SUPER,Right,focusdir,right
bind=SUPER,Up,focusdir,up
bind=SUPER,Down,focusdir,down

# Monitors
bind=SUPER,comma,focusmon,left
bind=SUPER,period,focusmon,right
bind=SUPER+SHIFT,comma,tagmon,left,0
bind=SUPER+SHIFT,period,tagmon,right,0

# Tags/workspaces 1-10. Mango uses tag 10 for the 0 key.
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
bind=SUPER,0,view,10,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+SHIFT,0,tag,10,0

# Native named scratchpad.
bind=SUPER,s,toggle_named_scratchpad,foot-scratchpad,,foot --app-id=foot-scratchpad

# Layout switching: tile ~= master, dwindle and scroller are native Mango layouts.
bind=SUPER+CTRL,d,setlayout,dwindle
bind=SUPER+CTRL,m,setlayout,tile
bind=SUPER+CTRL,s,setlayout,scroller
bind=SUPER+CTRL,n,setlayout,monocle

# Master layout controls
bind=SUPER,i,incnmaster,+1
bind=SUPER,d,incnmaster,-1
bind=SUPER,h,setmfact,-0.05
bind=SUPER,l,setmfact,+0.05
bind=SUPER,Return,zoom,0

# Dwindle split direction
bind=SUPER+SHIFT,j,dwindle_toggle_split_direction,0

# Toggle borders as the Mango equivalent of the Hyprland gamemode visual toggle.
bind=SUPER,F1,toggle_render_border,0
bind=SUPER,F2,spawn,killall -SIGUSR1 waybar
bind=SUPER+SHIFT,q,quit,0

# Mouse: move, toggle floating, resize.
mousebind=SUPER,btn_left,moveresize,curmove
mousebind=SUPER,btn_middle,togglefloating,0
mousebind=SUPER,btn_right,moveresize,curresize

# Multimedia and brightness, available while locked too.
bindl=none,XF86AudioRaiseVolume,spawn,wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
bindl=none,XF86AudioLowerVolume,spawn,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindl=none,XF86AudioMute,spawn,wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl=none,XF86AudioMicMute,spawn,wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindl=none,XF86MonBrightnessUp,spawn,brightnessctl -e4 -n2 set 5%+
bindl=none,XF86MonBrightnessDown,spawn,brightnessctl -e4 -n2 set 5%-
bindl=none,XF86AudioNext,spawn,playerctl next
bindl=none,XF86AudioPause,spawn,playerctl play-pause
bindl=none,XF86AudioPlay,spawn,playerctl play-pause
bindl=none,XF86AudioPrev,spawn,playerctl previous

# Three-finger horizontal gestures switch tags.
gesturebind=none,left,3,viewtoleft,0
gesturebind=none,right,3,viewtoright,0

hotarea_corner = 0
mouse_accel_profile = 1
touch_enable = 0
scratchpad_cross_monitor = 1