add mango display manager
This commit is contained in:
1
config/mango/.gitignore
vendored
Normal file
1
config/mango/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
config.conf
|
||||||
0
config/mango/autostart.sh
Executable file
0
config/mango/autostart.sh
Executable file
268
config/mango/config.template.conf
Normal file
268
config/mango/config.template.conf
Normal file
@@ -0,0 +1,268 @@
|
|||||||
|
# More option see https://github.com/DreamMaoMao/mango/wiki/
|
||||||
|
|
||||||
|
# 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=4
|
||||||
|
no_radius_when_single=1
|
||||||
|
focused_opacity=1.0
|
||||||
|
unfocused_opacity=0.9
|
||||||
|
|
||||||
|
# Animation Configuration(support type:zoom,slide)
|
||||||
|
# tag_animation_direction: 0-horizontal,1-vertical
|
||||||
|
animations=1
|
||||||
|
layer_animations=1
|
||||||
|
animation_type_open=zoom
|
||||||
|
animation_type_close=zoom
|
||||||
|
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=100
|
||||||
|
animation_duration_open=100
|
||||||
|
animation_duration_tag=100
|
||||||
|
animation_duration_close=100
|
||||||
|
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
|
||||||
|
|
||||||
|
# Scroller Layout Setting
|
||||||
|
scroller_structs=10
|
||||||
|
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=0
|
||||||
|
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=1
|
||||||
|
axis_bind_apply_timeout=100
|
||||||
|
focus_on_activate=1
|
||||||
|
inhibit_regardless_of_visibility=0
|
||||||
|
sloppyfocus=1
|
||||||
|
warpcursor=1
|
||||||
|
focus_cross_monitor=1
|
||||||
|
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=1
|
||||||
|
xkb_rules_layout=ch
|
||||||
|
|
||||||
|
# Trackpad
|
||||||
|
# need relogin to make it apply
|
||||||
|
disable_trackpad=0
|
||||||
|
tap_to_click=0
|
||||||
|
tap_and_drag=0
|
||||||
|
drag_lock=1
|
||||||
|
trackpad_natural_scrolling=1
|
||||||
|
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=4
|
||||||
|
gappiv=4
|
||||||
|
gappoh=4
|
||||||
|
gappov=4
|
||||||
|
scratchpad_width_ratio=0.8
|
||||||
|
scratchpad_height_ratio=0.9
|
||||||
|
borderpx=2
|
||||||
|
rootcolor=0x201b14ff
|
||||||
|
bordercolor=$bordercolor
|
||||||
|
focuscolor=$focuscolor
|
||||||
|
maxmizescreencolor=0x89aa61ff
|
||||||
|
urgentcolor=$urgentcolor
|
||||||
|
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
|
||||||
|
|
||||||
|
# monitor
|
||||||
|
monitorrule=eDP-1,0.55,1,tile,0,1.6,0,0,2560,1440,60
|
||||||
|
#monitorrule=HDMI-A-1,0.55,1,tile,0,1,1925,0,2560,1440,144
|
||||||
|
|
||||||
|
# exec
|
||||||
|
exec-once=waybar
|
||||||
|
exec-once $HOME/.config/wal/wal_update.sh"
|
||||||
|
|
||||||
|
# Key Bindings
|
||||||
|
|
||||||
|
# Key Bindings
|
||||||
|
# key name refer to `xev` or `wev` command output,
|
||||||
|
# mod keys name: super,ctrl,alt,shift,none
|
||||||
|
|
||||||
|
# reload config
|
||||||
|
bind=SUPER+SHIFT,r,reload_config
|
||||||
|
|
||||||
|
# menu and terminal
|
||||||
|
bind=SUPER,d,spawn,fuzzel
|
||||||
|
bind=SUPER,Return,spawn,alacritty
|
||||||
|
|
||||||
|
bind=SUPER,r,spawn,"$HOME/.config/ranger/ranger-launcher.sh"
|
||||||
|
|
||||||
|
bind=SUPER+SHIFT,w,spawn,"$HOME/.config/wal/wal_update.sh"
|
||||||
|
|
||||||
|
# exit
|
||||||
|
bind=SUPER+SHIFT,m,quit
|
||||||
|
bind=SUPER+SHIFT,q,killclient,
|
||||||
|
|
||||||
|
# switch window focus
|
||||||
|
bind=SUPER,Tab,focusstack,next
|
||||||
|
bind=SUPER,h,focusdir,left
|
||||||
|
bind=SUPER,l,focusdir,right
|
||||||
|
bind=SUPER,k,focusdir,up
|
||||||
|
bind=SUPER,j,focusdir,down
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# switch window status
|
||||||
|
#bind=SUPER,Tab,toggleoverview,
|
||||||
|
#bind=SUPER,g,toggleglobal,
|
||||||
|
#bind=SUPER,backslash,togglefloating,
|
||||||
|
#bind=SUPER,a,togglemaxmizescreen,
|
||||||
|
bind=SUPER,f,togglefullscreen,
|
||||||
|
bind=SUPER+SHIFT,f,togglefakefullscreen,
|
||||||
|
#bind=SUPER,i,minimized,
|
||||||
|
#bind=SUPER,o,toggleoverlay,
|
||||||
|
#bind=SUPER+SHIFT,I,restore_minimized
|
||||||
|
bind=SUPER,z,toggle_scratchpad
|
||||||
|
|
||||||
|
# scroller layout
|
||||||
|
bind=SUPER,e,set_proportion,1.0
|
||||||
|
bind=SUPER,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
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# NONE mode key only work in ov mode
|
||||||
|
mousebind=SUPER,btn_left,moveresize,curmove
|
||||||
|
mousebind=NONE,btn_middle,togglemaxmizescreen,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
|
||||||
|
|
||||||
|
|
||||||
|
# layer rule
|
||||||
|
layerrule=animation_type_open:zoom,layer_name:rofi
|
||||||
|
layerrule=animation_type_close:zoom,layer_name:rofi
|
||||||
|
|
||||||
13
config/mango/generate_conf.sh
Executable file
13
config/mango/generate_conf.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
. "$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
|
export bordercolor="0x${color7:1}ff"
|
||||||
|
export focuscolor="0x${color4:1}ff"
|
||||||
|
export urgentcolor="0xad401fff"
|
||||||
|
|
||||||
|
# for simplicity, using envsubst:
|
||||||
|
envsubst <$HOME/.config/mango/config.template.conf >$HOME/.config/mango/config.conf
|
||||||
|
|
||||||
|
# optionally force Mango to reload or redraw (if needed)
|
||||||
|
mmsg -d reload_config
|
||||||
@@ -17,6 +17,7 @@ swaybg -m fill -i "$(<"${HOME}/.cache/wal/wal")" &
|
|||||||
$HOME/.config/mako/update_theme.sh
|
$HOME/.config/mako/update_theme.sh
|
||||||
|
|
||||||
$HOME/.config/niri/generate_kdl.sh
|
$HOME/.config/niri/generate_kdl.sh
|
||||||
|
$HOME/.config/mango/generate_conf.sh
|
||||||
|
|
||||||
niri msg action do-screen-transition --delay-ms 100
|
niri msg action do-screen-transition --delay-ms 100
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"reload_style_on_change": true,
|
"reload_style_on_change": true,
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"niri/workspaces",
|
"niri/workspaces",
|
||||||
|
"ext/workspaces",
|
||||||
"custom/media"
|
"custom/media"
|
||||||
],
|
],
|
||||||
"modules-center": [],
|
"modules-center": [],
|
||||||
@@ -79,6 +80,13 @@
|
|||||||
"default": ""
|
"default": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"ext/workspaces": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"ignore-hidden": true,
|
||||||
|
"on-click": "activate",
|
||||||
|
"on-click-right": "deactivate",
|
||||||
|
"sort-by-id": true
|
||||||
|
},
|
||||||
"idle_inhibitor": {
|
"idle_inhibitor": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
|
|||||||
@@ -83,7 +83,11 @@ button:hover {
|
|||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
/*color: #ffffff;*/
|
color: @content_main;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
|
background-color: @alternate1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
#workspaces button:hover {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
sudo pacman -Syu
|
sudo pacman -Syu
|
||||||
sudo pacman -S ly
|
sudo pacman -S lemurs
|
||||||
sudo systemctl enable ly
|
sudo systemctl enable lemurs
|
||||||
|
|
||||||
sudo pacman -S niri
|
sudo pacman -S niri
|
||||||
sudo pacman -S fuzzel
|
sudo pacman -S fuzzel
|
||||||
@@ -78,6 +78,9 @@ mv $HOME/.i3 $HOME/.i3_original >/dev/null 2>&1
|
|||||||
# niri config
|
# niri config
|
||||||
link_folder $econfigdir/config/niri $HOME/.config/niri
|
link_folder $econfigdir/config/niri $HOME/.config/niri
|
||||||
|
|
||||||
|
# mango config
|
||||||
|
link_folder $econfigdir/config/mango $HOME/.config/mango
|
||||||
|
|
||||||
# waybar config
|
# waybar config
|
||||||
link_folder $econfigdir/config/waybar $HOME/.config/waybar
|
link_folder $econfigdir/config/waybar $HOME/.config/waybar
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user