From bc41c5ff77a49c688cb9e5db4cf666c703caa485 Mon Sep 17 00:00:00 2001 From: Lukasz Pankowski Date: Thu, 9 Jul 2026 23:42:15 +0200 Subject: [PATCH] mango config with waybar --- mango/.config/mango/config.conf | 311 ++++++++++++++++++++++++++++++++ mango/.config/waybar/config | 20 ++ mango/.config/waybar/dark.css | 12 ++ mango/.config/waybar/light.css | 12 ++ mango/.config/waybar/style.css | 25 +++ 5 files changed, 380 insertions(+) create mode 100644 mango/.config/mango/config.conf create mode 100644 mango/.config/waybar/config create mode 100644 mango/.config/waybar/dark.css create mode 100644 mango/.config/waybar/light.css create mode 100644 mango/.config/waybar/style.css diff --git a/mango/.config/mango/config.conf b/mango/.config/mango/config.conf new file mode 100644 index 0000000..8105edc --- /dev/null +++ b/mango/.config/mango/config.conf @@ -0,0 +1,311 @@ +# More option see https://mangowm.github.io/docs/configuration + +exec-once=waybar +exec-once=openrc -q -U gui + +# 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 +edge_scroller_focus_allow_speed=0.0 +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 + +# Dwindle Layout Setting +dwindle_smart_split=0 +dwindle_drop_simple_split=1 +dwindle_manual_split=0 +dwindle_hsplit=1 +dwindle_vsplit=1 +dwindle_preserve_split=0 + +# Overview Setting +hotarea_size=10 +enable_hotarea=0 +ov_tab_mode=1 +ov_no_resize=1 +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 +drag_tile_small=1 + +# keyboard +repeat_rate=25 +repeat_delay=600 +numlockon=0 +xkb_rules_layout=pl + +# 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 +dropcolor=0x8FBA7C55 +splitcolor=0xEB441EFF +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,p,spawn,rofi -show drun +bind=SUPER,Return,spawn,foot + +# lock and toggle theme +bind=SUPER+CTRL+SHIFT,l,spawn,swaylock +bind=SUPER+CTRL+SHIFT,t,spawn,lupan-set-theme toggle + +# exit +bind=SUPER+SHIFT,q,quit +bind=SUPER+SHIFT,c,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,k,exchange_client,up +bind=SUPER+SHIFT,j,exchange_client,down +bind=SUPER+SHIFT,h,exchange_client,left +bind=SUPER+SHIFT,l,exchange_client,right + +# switch window status +bind=SUPER,g,toggleglobal, +bind=SUPER,Tab,toggleoverview, +bind=SUPER,backslash,togglefloating, +bind=SUPER,m,togglemaximizescreen, +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, +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=SUPER+shift,Return,dwindle_toggle_split_direction + +# switch layout +bind=SUPER,n,switch_layout +bind=SUPER+CTRL,c,setlayout,center_tile +bind=SUPER+CTRL,d,setlayout,deck +bind=SUPER+CTRL,e,setlayout,vertical_deck +bind=SUPER+CTRL,f,setlayout,fair +bind=SUPER+CTRL,g,setlayout,grid +bind=SUPER+CTRL,i,setlayout,vertical_fair +bind=SUPER+CTRL,r,setlayout,right_tile +bind=SUPER+CTRL,s,setlayout,scroller +bind=SUPER+CTRL,t,setlayout,tile +bind=SUPER+CTRL,u,setlayout,vertical_scroller +bind=SUPER+CTRL,v,setlayout,vertical_tile +bind=SUPER+CTRL,w,setlayout,dwindle + +# tag switch +bind=SUPER,Left,viewtoleft,0 +bind=SUPER+CTRL,Left,viewtoleft_have_client,0 +bind=SUPER,Right,viewtoright,0 +bind=SUPER+CTRL,Right,viewtoright_have_client,0 +bind=CTRL+SHIFT+SUPER,Left,tagtoleft,0 +bind=CTRL+SHIFT+SUPER,Right,tagtoright,0 + +bind=SUPER+Alt,h,viewtoleft_have_client,0 +bind=SUPER+Alt,l,viewtoright_have_client,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=SUPER+alt+shift,Left,focusmon,left +bind=SUPER+alt+shift,Right,focusmon,right +bind=SUPER+Alt,Left,tagmon,left +bind=SUPER+Alt,Right,tagmon,right + +bind=SUPER,comma,focusmon,left +bind=SUPER,period,focusmon,right +bind=SUPER+shift,comma,tagmon,left +bind=SUPER+shift,period,tagmon,right + +# gaps +bind=SUPER+SHIFT,X,incgaps,1 +bind=SUPER+SHIFT,Z,incgaps,-1 +bind=SUPER+SHIFT,R,togglegaps + +# movewin +bind=SUPER+CTRL,k,movewin,+0,-50 +bind=SUPER+CTRL,j,movewin,+0,+50 +bind=SUPER+CTRL,h,movewin,-50,+0 +bind=SUPER+CTRL,l,movewin,+50,+0 + +# resizewin +bind=SUPER+CTRL+ALT,Up,resizewin,+0,-50 +bind=SUPER+CTRL+ALT,Down,resizewin,+0,+50 +bind=SUPER+CTRL+ALT,Left,resizewin,-50,+0 +bind=SUPER+CTRL+ALT,Right,resizewin,+50,+0 + +bind=SUPER+CTRL+ALT,k,resizewin,+0,-50 +bind=SUPER+CTRL+ALT,j,resizewin,+0,+50 +bind=SUPER+CTRL+ALT,h,resizewin,-50,+0 +bind=SUPER+CTRL+ALT,l,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 + +monitorrule=name:^HDMI-A-1$,scale:2,x:0 +monitorrule=name:^HDMI-A-2$,scale:2,x:1920 diff --git a/mango/.config/waybar/config b/mango/.config/waybar/config new file mode 100644 index 0000000..6fa9e39 --- /dev/null +++ b/mango/.config/waybar/config @@ -0,0 +1,20 @@ +{ + "modules-left": [ + "ext/workspaces", + "dwl/window" + ], + "modules-right": [ + "tray", + "clock" + ], + "ext/workspaces": { + "format": "{icon}", + "ignore-hidden": true, + "on-click": "activate", + "on-click-right": "deactivate", + "sort-by-id": true + }, + "dwl/window": { + "format": "[{layout}] {title}" + } +} diff --git a/mango/.config/waybar/dark.css b/mango/.config/waybar/dark.css new file mode 100644 index 0000000..a13ee27 --- /dev/null +++ b/mango/.config/waybar/dark.css @@ -0,0 +1,12 @@ +* { + background-color: #282e38; + color: #a29e98; +} + +#workspaces button.active { + border-bottom: 3px solid #04785d; +} + +#workspaces button.urgent { + border-bottom: 3px solid #c37583; +} diff --git a/mango/.config/waybar/light.css b/mango/.config/waybar/light.css new file mode 100644 index 0000000..4861f0b --- /dev/null +++ b/mango/.config/waybar/light.css @@ -0,0 +1,12 @@ +* { + background-color: #f6ede0; + color: #696257; +} + +#workspaces button.active { + border-bottom: 3px solid #278a6e; +} + +#workspaces button.urgent { + border-bottom: 3px solid #d0818f; +} diff --git a/mango/.config/waybar/style.css b/mango/.config/waybar/style.css new file mode 100644 index 0000000..8c7f75e --- /dev/null +++ b/mango/.config/waybar/style.css @@ -0,0 +1,25 @@ +@import url("file:///home/lupan/.config/waybar/dark.css"); + +* { + font-family: HurmitNerdFont; + font-size: 12px; +} + +#workspaces { + padding: 0 0.5rem; +} + +#workspaces button { + padding: 0 3px; + border-radius: 0; + border-bottom: 3px solid transparent; +} + +#window { + border-bottom: 3px solid transparent; +} + +#clock { + padding: 0 0.5rem; + border-bottom: 3px solid transparent; +}