From 8ecd3e944720a74cd08a4d562c7836aa41988f0b Mon Sep 17 00:00:00 2001 From: hanez Date: Thu, 19 Nov 2026 18:36:16 +0100 Subject: [PATCH] Added some basic mangowm configuration. --- .config/mango/LICENSE | 18 + .config/mango/README.md | 336 +++++++++++++++++ .config/mango/config.conf | 344 ++++++++++++++++++ .config/mango/foot/foot.ini | 180 +++++++++ .config/mango/scripts/cycle-layout | 14 + .config/mango/scripts/cycle-monitor | 11 + .../mango/scripts/cycle-monitor-with-client | 11 + .config/mango/scripts/mango-move-with | 20 + .config/mango/scripts/screenshot-full | 2 + .config/mango/scripts/screenshot-region | 5 + .config/mango/scripts/vol | 4 + .config/mango/waybar/config.jsonc | 180 +++++++++ .config/mango/waybar/style.css | 319 ++++++++++++++++ .config/mango/wofi/config | 16 + .config/mango/wofi/style.css | 69 ++++ .gitignore | 3 + 16 files changed, 1532 insertions(+) create mode 100644 .config/mango/LICENSE create mode 100644 .config/mango/README.md create mode 100644 .config/mango/config.conf create mode 100644 .config/mango/foot/foot.ini create mode 100755 .config/mango/scripts/cycle-layout create mode 100755 .config/mango/scripts/cycle-monitor create mode 100755 .config/mango/scripts/cycle-monitor-with-client create mode 100755 .config/mango/scripts/mango-move-with create mode 100755 .config/mango/scripts/screenshot-full create mode 100755 .config/mango/scripts/screenshot-region create mode 100755 .config/mango/scripts/vol create mode 100644 .config/mango/waybar/config.jsonc create mode 100644 .config/mango/waybar/style.css create mode 100644 .config/mango/wofi/config create mode 100644 .config/mango/wofi/style.css diff --git a/.config/mango/LICENSE b/.config/mango/LICENSE new file mode 100644 index 00000000..d43c046c --- /dev/null +++ b/.config/mango/LICENSE @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) 2026 armin@codeberg.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/.config/mango/README.md b/.config/mango/README.md new file mode 100644 index 00000000..c8dba2ad --- /dev/null +++ b/.config/mango/README.md @@ -0,0 +1,336 @@ +# Armin's MangoWM (MangoWC) Config + +My personal config for **[MangoWM](https://github.com/DreamMaoMao/mango/)** (also known as MangoWC) - a Wayland compositor built on `wlroots`. This setup tries to replicate my custom **DWM (Dynamic Window Manager)** workflow (including most of my custom keybinds) onto Wayland, bringing that keyboard-driven tiling window experience I've been living in for MANY years to the modern world. + +![mangoprint.jpg](mangoprint.jpg) + +## The big idea: DWM for Wayland, but make it bling + +[DWM](https://dwm.suckless.org/) is an absolute legend in the Unix world. Seriously minimalist, dynamic tiling, almost entirely keyboard-driven via **Alt (Mod1)** or **Super (Win)**. It basically invented the **master-stack** layout - a big "master" zone on the left, a "stacking" zone on the right. DWM also gave us **tags** (virtual desktops you flip through with `Mod+1..9`), **scratchpads**, and a whole "do one thing well" ethos for window management. + +**MangoWM** is the closest thing to a spiritual DWM successor on Wayland. MangoWM just tries to stay out of your way. This config pushes it into DWM-replacement territory for me: basically every keybind I've accumulated over the last ~7-8 years is here. Master resize (`Alt+h/l`), stack navigation (`Alt+j/k`), tag-based window wrangling (`Alt+Shift+1..9`). All that muscle memory transfers one-to-one, but now finally with those cool Wayland goodies: **tearing-free rendering, per-display fractional scaling, proper hardware cursor support, seamless GPU integration, no screen-tearing.** + +If you're coming from Xorg and want a Wayland compositor that feels like DWM instead of i3 or Sway - then Mango might be worth an evening of fiddling. + +## Color scheme: NORD + +Colors follow the awesome [NORD palette](https://www.nordtheme.com/) by [Arctic Ice Studio](https://github.com/arcticicestudio/nord). I've been switching forth and back in terms of color palettes, but NORD is one I come back to on a regular basis. + +- **High contrast, but low harshness** - Polar Night backgrounds + Snow Storm foregrounds = readable even after 12-hour coding sessions. +- **Frost accents** - the Frost biome (`#8FBCBB`, `#88C0D0`, `#81A1C1`, `#5E81AC`) gives us four distinct accent tones for focused windows, borders, UI elements. +- **Aurora for attention** - the Aurora biome (`#BF616A`, `#D08770`, `#EBCB8B`, `#A3BE8C`, `#B48EAD`) handles urgency, maximize, and split indicators without some too distracting visual clashing. + +| Token | Hex | NORD Definition | +|---------------------|-----------|-------------------------------| +| Root background | `#2E3440` | `nord0` - Polar Night | +| Borders (inactive) | `#4C566A` | `nord3` - Polar Night lighter | +| Focused border | `#5E81AC` | `nord10` - Frost | +| Split indicator | `#BF616A` | `nord11` - Aurora red | +| Maximize indicator | `#A3BE8C` | `nord14` - Aurora green | +| Urgency | `#BF616A` | `nord11` - Aurora red | +| Scratchpad border | `#81A1C1` | `nord9` - Frost | + +Links: [Nord Homepage](https://www.nordtheme.com/) · [Nord Docs](https://www.nordtheme.com/docs) · [Nord Ports](https://www.nordtheme.com/ports) + +## Built on + +- **Fedora 44**, May 2026 +- **MangoWM** (git main) +- **Wayland** (wlroots-based) + +## Keybindings + +Modifier key is **Alt** (a.k.a. Mod1 in X11). Every binding has its DWM equivalent listed so you can cross-reference. + +### General + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + Shift + r` | `Mod + Shift + r` | **Reload config** - hot-reloads `config.conf` without restarting. | +| `Alt + Shift + q` | `Mod + Shift + q` | **Quit** MangoWM entirely. | +| `Alt + Ctrl + Backspace`| `Ctrl + Alt + Bksp` | Secondary quit (classic Xorg muscle memory). | + +### Application launcher + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + space` | - | **Launch wofi** app runner (drun mode). | +| `Alt + Shift + d` | - | **Launch wofi** (alternative binding). | +| `Alt + Return` | `Mod + Return` | **Spawn foot terminal** - the main terminal emulator. | + +### Tag / workspace navigation + +Tags = DWM's name for virtual desktops. 9 numbered tags plus a "view all" tag. + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + 1` through `9` | `Mod + 1..9` | **Switch to tag N** - views that tag. | +| `Alt + 0` | `Mod + 0` | **View all tags** - shows every window everywhere (handy for overview). | +| `Alt + p` | - | **Previous tag** - cycles to the tag on the left. | +| `Alt + n` | - | **Next tag** - cycles to the tag on the right. | +| `Alt + ScrollUp` | - | **Scroll to previous tag** - scroll on desktop bg. | +| `Alt + ScrollDown` | - | **Scroll to next tag** - same deal, opposite direction. | + +### Moving windows between tags + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + Shift + 1..9` | `Mod + Shift + 1..9` | **Move focused client to tag N and follow** - teleports the active window there and switches to it. | +| `Alt + Shift + Left` | `Mod + Shift + Left` | **Move client to tag on the left** (`tagtoleft`). | +| `Alt + Shift + Right` | `Mod + Shift + Right`| **Move client to tag on the right** (`tagtoright`). | + +### Multi-monitor + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + Shift + ,` | `Mod + Shift + ,` | **Send client to monitor on the left** (`tagmon`). | +| `Alt + Shift + .` | `Mod + Shift + .` | **Send client to monitor on the right** (`tagmon`). | +| `Alt + Shift + -` | - | **Send client to next monitor and follow** (cycles monitors in list order, wrapping). | + +### Focus & stack navigation + +DWM's `j`/`k` stack traversal and `Tab` cycling, all here. + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + j` | `Mod + j` | **Focus next window** in the stack (down). | +| `Alt + k` | `Mod + k` | **Focus previous window** in the stack (up). | +| `Alt + Tab` | `Mod + Tab` | **Focus next** (wraps around). | +| `Alt + Shift + Tab` | `Mod + Shift + Tab` | **Focus previous** (wraps around). | + +### Directional focus + +For moving focus in cardinal directions - handy in floating or non-linear tiling layouts. + +| Binding | Action | +|-------------------------|------------------------------------------------------| +| `Alt + Left` | **Focus window to the left**. | +| `Alt + Right` | **Focus window to the right**. | +| `Alt + Up` | **Focus window above**. | +| `Alt + Down` | **Focus window below**. | + +### Moving windows in stack + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + Shift + j` | `Mod + Shift + j` | **Move window down** in stack order. | +| `Alt + Shift + k` | `Mod + Shift + k` | **Move window up** in stack order. | + +### Master area management + +Classic DWM master-stack layout: master zone on the left, stack zone on the right. + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + h` | `Mod + h` | **Shrink master area** by 5% (`mfact -0.05`). | +| `Alt + l` | `Mod + l` | **Grow master area** by 5% (`mfact +0.05`). | +| `Alt + u` | `Mod + u` | **Increase number of masters** (`nmaster +1`). | +| `Alt + i` | `Mod + i` | **Decrease number of masters** (`nmaster -1`). | + +### Window resize (floating) + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + Shift + h` | - | **Resize floating window left** by 10px. | +| `Alt + Shift + l` | - | **Resize floating window right** by 10px. | + +### Gaps + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + Ctrl + j` | `Mod + Ctrl + j` | **Decrease inner gaps** by 1px. | +| `Alt + Ctrl + k` | `Mod + Ctrl + k` | **Increase inner gaps** by 1px. | + +### Layout cycling + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + ,` (comma) | - | **Previous layout** - cycles backward through tile, scroller, grid, deck, monocle, center_tile, vertical_tile, vertical_scroller. | +| `Alt + .` (period) | - | **Next layout** - cycles forward through the same list. | + +### Floating / scratchpad + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + Shift + space` | `Mod + Shift + space` | **Toggle floating** - switches window between tiled and floating mode. | +| `Alt + grave` | `Mod + grave` | **Toggle scratchpad** - opens/closes a persistent scratchpad terminal (floating, centered, great for quick commands). | + +### Killing windows + +| Binding | DWM Equivalent | Action | +|-------------------------|-----------------------|------------------------------------------------------| +| `Alt + x` | `Mod + x` | **Kill focused client** - sends a close signal. | +| `Alt + Shift + x` | `Mod + Shift + x` | **Force kill focused client** (same effect in Mango).| + +### System control + +| Binding | Action | +|-------------------------|------------------------------------------------------| +| `Alt + Ctrl + l` | **Lock screen** - invokes `swaylock`. | +| `Alt + Ctrl + Up` | **Increase brightness** - via `xbacklight`. | +| `Alt + Ctrl + Down` | **Decrease brightness** - via `xbacklight`. | +| `Alt + Ctrl + Right` | **Volume up** - invokes `scripts/vol +10`. | +| `Alt + Ctrl + Left` | **Volume down** - invokes `scripts/vol -10`. | + +### Screenshots + +| Binding | Action | +|-------------------------|------------------------------------------------------| +| `Alt + Shift + s` | **Screenshot region** - interactive area selection. | +| `Alt + Ctrl + s` | **Screenshot full** - captures all monitors. | + +### Mouse + +| Binding | Action | +|--------------------------------------|------------------------------------------------------| +| `Alt + Left-click` | **Move window** - drag to reposition (works on any client, tiled included). | +| `Alt + Right-click` | **Resize window** - drag to resize. | + +## Animation & visual config + +MangoWM supports per-action animations with configurable curves and durations. This config enables smooth **slide** transitions for window open/close and **horizontal tag switching**. Key parameters: + +| Parameter | Value | Effect | +|-------------------------------------|----------|-----------------------------------------------------| +| `animation_duration_*` | 250ms | All animations in a quarter-second - fast enough to be useful, slow enough to feel polished. | +| `animation_curve_open` | `0.46,1,0.29,1` | Ease-out cubic bezier - windows "settle" into place. | +| `animation_curve_close` | `0.08,0.92,0,1` | Ease-in cubic bezier - windows fade out snappy. | +| `blur` | On | Background blur with 5px radius, subtle noise, brightness/contrast tweaks for transparent surface readability. | +| `shadows` | On (floating only) | Drop shadows on floating windows only - tiled windows stay flat, keeping DWM's no-nonsense look. | +| `border_radius` | 6px | Rounded corners on all windows for a modern, polished feel. | + +## Supported layouts + +The default is DWM's classic `tile` layout on all 9 tags, but MangoWM comes with more layouts you can flip through with `Alt + ,` and `Alt + .`: + +- **tile** - The classic DWM master-stack. Master left, stack right. +- **scroller** - Horizontal scrolling layout; windows laid out left-to-right with focus-on-scroll. +- **grid** - All windows in an equally-sized grid. +- **deck** - Only the focused window fully visible; the rest stack like a deck of cards (monocle with previews). +- **monocle** - All windows maximized; only the focused one visible; `Alt+j/k` cycles through them. +- **center_tile** - Master centered instead of left-aligned. +- **vertical_tile** - Master on top, stack below (classic tile flipped). +- **vertical_scroller** - Scrollable vertical layout with a master area. + +## Monitor setup + +This config targets the 2x 4k 32" dual-monitor setup of my Fedora desktop machine: + +| Monitor | Resolution | Scale | Position | +|---------|--------------------|-------|-------------| +| DP-2 | 3840×2160 (4K) | 1.5 | `x:0, y:0` (left) | +| DP-1 | 3840×2160 (4K) | 1.5 | `x:2560, y:0` (right - the offset accounts for 2560px effective width at 1.5× scale) | + +Both monitors are 4K at 1.5× fractional scaling, giving a comfy 2560×1440 logical resolution. The `x:2560` offset on DP-1 lines things up right at scaled resolutions. + +> Tip: `find . | less` in this repo to poke around the file tree. + +## Requirements + +- **MangoWM** - built from source: https://github.com/DreamMaoMao/mango/ +- **Wayland session** - Fedora 44 (or any distro with a modern wlroots stack) +- **waybar** - status bar +- **wofi** - app launcher +- **foot** - terminal emulator +- **swaybg** - wallpaper +- **grim / slurp** - screenshots +- **swaylock** - screen locking (optional) +- **xbacklight** - backlight control (optional, probably only makes sense with acpilight) + +## Installation + +### Fedora + +MangoWM is available via the [Terra](https://terra.fyralabs.com/) repo and a [COPR](https://copr.fedorainfracloud.org/coprs/dennemann/MangoWC/): + +```bash +# Terra repo (recommended) +sudo dnf install --nogpgcheck --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' terra-release +sudo dnf install mangowm + +# COPR (alternative) +sudo dnf copr enable denneman/MangoWC +sudo dnf install mangowm +``` + +### Arch Linux + +In the AUR - stable and git variants: + +| Package | Type | +|---------|------| +| `mangowm` | AUR (stable release) | +| `mangowm-git` | AUR (git master) | + +```bash +yay -S mangowm # stable release +yay -S mangowm-git # git version (latest) +``` + +[ArchWiki page](https://wiki.archlinux.org/title/MangoWM) has detailed setup guides. + +### Debian / Ubuntu + +No official packages yet. Build from source: + +```bash +sudo apt install git meson ninja-build libwayland-dev wayland-protocols \ + libinput-dev libdrm-dev libxkbcommon-dev libpixman-1-dev \ + libdisplay-info-dev libliftoff-dev hwdata libpcre2-dev libxcb-dev \ + libxcb-util-dev seatd xwayland +git clone https://github.com/DreamMaoMao/mango.git +cd mango +meson setup build --prefix=/usr --buildtype=release +ninja -C build +sudo ninja -C build install +``` + +### Void Linux + +Available in the main repo: + +```bash +sudo xbps-install mangowc +``` + +### Other distributions + +| Distribution | Package | Source | +|---|---|---| +| **Alpine Linux** | `mangowc` | edge/community | +| **Gentoo** | `gui-wm/mangowm` | GURU overlay | +| **NixOS** | `mangowm` | Flake with NixOS module | +| **openSUSE** | `mangowc-git` | OBS `home:darix:playground` | +| **FreeBSD** | `x11-wm/mangowc` | FreshPorts | + +### Build from source (universal) + +Deps: `meson`, `ninja`, `wayland`, `wayland-protocols`, `libinput`, `libdrm`, `libxkbcommon`, `pixman`, `libdisplay-info`, `libliftoff`, `hwdata`, `seatd`, `pcre2`, `xwayland`, `libxcb` + +```bash +git clone https://github.com/DreamMaoMao/mango.git +cd mango +meson setup build --prefix=/usr --buildtype=release +ninja -C build +sudo ninja -C build install +``` + +### Installing this config + +```bash +git clone https://github.com/armin/mango-config.git +cd mango-config +# Symlink or copy the config to MangoWM's config directory: +# mkdir -p ~/.config/mangowm +# ln -sf "$(pwd)/config.conf" ~/.config/mangowm/config.conf +``` + +> **Note:** Adjust paths and deps for your installation. Check the [MangoWM repo](https://github.com/DreamMaoMao/mango/) for the latest build instructions. + +### IRC + +So far I'm not aware of some IRC channel for Mango. :-( If you come across one, please let me know. Thank you. + +## License + +[MIT](LICENSE) diff --git a/.config/mango/config.conf b/.config/mango/config.conf new file mode 100644 index 00000000..4f8aeb14 --- /dev/null +++ b/.config/mango/config.conf @@ -0,0 +1,344 @@ +# More option see https://github.com/DreamMaoMao/mango/wiki/ + +# Window effect +blur=1 +blur_layer=0 +blur_optimized=1 +blur_params_num_passes = 3 +blur_params_radius = 5 +blur_params_noise = 0.02 +blur_params_brightness = 0.85 +blur_params_contrast = 0.95 +blur_params_saturation = 1.2 + +shadows = 1 +layer_shadows = 0 +shadow_only_floating = 0 +shadows_size = 4 +shadows_blur = 8 +shadows_position_x = -3 +shadows_position_y = -3 +shadows_color=0x000000aa + +# rounded corners +border_radius=8 +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=0 +layer_animations=0 +animation_type_open=zoom +animation_type_close=zoom +animation_fade_in=0 +animation_fade_out=0 +tag_animation_direction=1 +zoom_initial_ratio=0.4 +zoom_end_ratio=0.8 +fade_in_begin_opacity=0.5 +fade_out_begin_opacity=0.5 +animation_duration_move=350 +animation_duration_open=350 +animation_duration_tag=0 +animation_duration_close=350 +animation_duration_focus=350 +animation_curve_open=0.46,1.0,0.29,0.99 +animation_curve_close=0.46,1.0,0.29,0.99 +animation_curve_move=0.46,1.0,0.29,1 +animation_curve_tag=0.46,1.0,0.29,1 +animation_curve_focus=0.46,1.0,0.29,1 +animation_curve_opacity_fade_out=0.5,0.5,0.5,0.5 +animation_curve_opacity_fade_in=0.46,1.0,0.29,1 + +# Scroller Layout Setting +scroller_structs=20 +scroller_default_proportion=0.9 +scroller_focus_center=1 +scroller_prefer_center=0 +# this seems to have no effect, check (https://mangowm.github.io/docs/window-management/layouts#configuration): +scroller_prefer_overspread=1 +edge_scroller_pointer_focus=0 +scroller_default_proportion_single=0.8 +scroller_proportion_preset=0.5,0.7,0.9 + +# Master-Stack Layout Setting +new_is_master=1 +default_master_factor=0.50 +default_master_count=1 +tag_num=9 +smart_gaps=0 + +# Dwindle Layout Setting +dwindle_smart_split=0 +dwindle_drop_simple_split=1 +dwindle_manual_split=0 +dwindle_horizontal_split=1 +dwindle_vertical_split=1 +dwindle_preserve_split=0 + +# Overview Setting +hotarea_size=30 +enable_hotarea=0 +#overview_tab_mode=1 +overview_gap_inner=5 +overview_gap_outer=30 + +# Misc +no_border_when_single=0 +axis_bind_apply_timeout=10 +focus_on_activate=1 +idle_inhibit_ignore_visible=0 +sloppy_focus=1 +warp_cursor=0 +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=0 + +# keyboard +repeat_rate=35 +repeat_delay=240 +numlock_on=0 +xkb_rules_layout=de +xkb_rules_options=caps:escape_shifted_capslock + +# mouse +mouse_accel_profile=2 +mouse_accel_speed=5.0 +mouse_natural_scrolling=0 +#left_handed=0 +axis_scroll_factor=1.0 + +# mouse cursor +cursor_size=32 +cursor_theme=Adwaita + +# 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 + +# Appearance +gap_inner_horizontal=8 +gap_inner_vertical=8 +gap_outer_horizontal=8 +gap_outer_vertical=8 +scratchpad_width_ratio=0.8 +scratchpad_height_ratio=0.9 +border_px=2 +root_color=0x2E3440ff +border_color=0x4C566Aff +drop_color=0x4C566A55 +split_color=0xBF616Aff +focus_color=0x5E81ACff +maximized_screen_color=0xA3BE8Cff +urgent_color=0xBF616Aff +scratchpad_color=0x81A1C1ff +global_color=0xB48EADff +overlay_color=0x8FBCBBff + +# layout support: +# tile,scroller,grid,deck,monocle,center_tile,vertical_tile,vertical_scroller +tag_rule=id:1,layout_name:tile +tag_rule=id:2,layout_name:tile +tag_rule=id:3,layout_name:tile +tag_rule=id:4,layout_name:tile +tag_rule=id:5,layout_name:tile +tag_rule=id:6,layout_name:tile +tag_rule=id:7,layout_name:tile +tag_rule=id:8,layout_name:tile +tag_rule=id:9,layout_name:tile + +# key bindings +# key names refer to `wev` command output, +# mod keys name: super,ctrl,alt,shift,none + +# reload config +bind=ALT+SHIFT,r,reload_config + +#toggle fullscreen +bind=ALT+SHIFT,f,togglefullscreen + +# commands key bindings +bind=Alt,space,spawn,wofi --conf ~/.config/mango/wofi/config --show drun +#bind=Alt,space,spawn,wofi --conf ~/.config/mango/wofi/config --show drun +bind=ALT+SHIFT,d,spawn,wofi --conf ~/.config/mango/wofi/config --show drun +bind=ALT+CTRL,l,spawn,swaylock +bind=ALT+CTRL,Up,spawn,xbacklight -steps 1 -inc 10 +bind=ALT+CTRL,Down,spawn,xbacklight -steps 1 -dec 10 +bind=ALT+CTRL,Left,spawn,~/.config/mango/scripts/vol -10 +bind=ALT+CTRL,Right,spawn,~/.config/mango/scripts/vol +10 +bind=ALT+SHIFT,s,spawn,~/.config/mango/scripts/screenshot-region +bind=ALT+CTRL,s,spawn,~/.config/mango/scripts/screenshot-full +bind=ALT+SHIFT,n,spawn,~/.config/mango/scripts/mango-move-with next +bind=ALT+SHIFT,p,spawn,~/.config/mango/scripts/mango-move-with prev + +# focus +bind=Alt,Tab,focusstack,next +bind=ALT+SHIFT,Tab,focusstack,prev +bind=Alt,j,focusstack,next +bind=Alt,k,focusstack,prev + +# focus (arrow-keys) +bind=Alt,Left,focusdir,left +bind=Alt,Right,focusdir,right +bind=Alt,Up,focusdir,up +bind=Alt,Down,focusdir,down + +# layout cycling +bind=Alt,comma,spawn_shell,~/.config/mango/scripts/cycle-layout prev +bind=Alt,period,spawn_shell,~/.config/mango/scripts/cycle-layout next + +# gaps +bind=ALT+CTRL,j,incgaps,-10 +bind=ALT+CTRL,k,incgaps,10 + +# master area +bind=Alt,u,incnmaster,+1 +bind=Alt,i,incnmaster,-1 +bind=Alt,h,setmfact,-0.05 +bind=Alt,l,setmfact,+0.05 + +# window resize (floating windows) +bind=ALT+SHIFT,h,resizewin,-50,0 +bind=ALT+SHIFT,l,resizewin,+50,0 + +# move window in stack +bind=ALT+SHIFT,j,exchange_stack_client,next +bind=ALT+SHIFT,k,exchange_stack_client,prev + +# kill client +bind=Alt,x,killclient +bind=ALT+SHIFT,x,killclient + +# quit +bind=ALT+SHIFT,q,quit +bind=ALT+CTRL,BackSpace,quit + +# toggle floating +bind=ALT+SHIFT,space,togglefloating + +# scratchpad +#bind=Alt,grave,toggle_scratchpad + +# tag switching +bind=Alt,p,viewtoleft +bind=Alt,n,viewtoright + +# tag moving +bind=ALT+SHIFT,Left,tagtoleft +bind=ALT+SHIFT,Right,tagtoright + +# tag view +bind=Alt,1,view,1,0 +bind=Alt,2,view,2,0 +bind=Alt,3,view,3,0 +bind=Alt,4,view,4,0 +bind=Alt,5,view,5,0 +bind=Alt,6,view,6,0 +bind=Alt,7,view,7,0 +bind=Alt,8,view,8,0 +bind=Alt,9,view,9,0 + +# tag: move client to tag and follow +bind=ALT+SHIFT,1,tag,1,0 +bind=ALT+SHIFT,2,tag,2,0 +bind=ALT+SHIFT,3,tag,3,0 +bind=ALT+SHIFT,4,tag,4,0 +bind=ALT+SHIFT,5,tag,5,0 +bind=ALT+SHIFT,6,tag,6,0 +bind=ALT+SHIFT,7,tag,7,0 +bind=ALT+SHIFT,8,tag,8,0 +bind=ALT+SHIFT,9,tag,9,0 + +# view all tags +bind=Alt,0,view,0 + +# monitor focus +bind=ALT+SHIFT,comma,tagmon,left +bind=ALT+SHIFT,period,tagmon,right + +# cycle monitor focus (Alt+- cycles through physical outputs) +bind=Alt,code:61,spawn_shell,~/.config/mango/scripts/cycle-monitor +# cycle monitor with focused window (Alt+Shift+- moves window to next monitor and follows) +bind=ALT+SHIFT,code:61,spawn_shell,~/.config/mango/scripts/cycle-monitor-with-client + +# terminal +#bind=Alt,Return,spawn,foot zsh +bind=SUPER,Return,spawn,uxterm -bg black -fg grey -sb -leftbar -si -bc -cr orange -fa "Noto Sans Mono"i -fs 14 +bind=SUPER,a,spawn,/home/hanez/cargo/bin/zoha + +# toggle overview (to select window with mouse) +bind=Alt+SHIFT,o,toggleoverview + +# Mouse Button Bindings (DWM-style: Mod+Button1 = move, Mod+Button3 = resize) +mousebind=ALT,btn_left,moveresize,curmove +mousebind=ALT,btn_right,moveresize,curresize + +# Axis Bindings (scroll on desktop = switch tag) +#axisbind=ALT,UP,viewtoleft +#axisbind=ALT,DOWN,viewtoright +#axisbind=ALT,UP,viewtoleft +#axisbind=ALT,DOWN,viewtoright +axisbind=ALT,UP,viewtoleft_have_client +axisbind=ALT,DOWN,viewtoright_have_client + +# Monitor configuration (swapped: DP-2 left, DP-1 right) +#monitorrule=name:^DP-1$,width:2560,height:1440,refresh:60,x:0,y:0,scale:2.5 +#monitorrule=name:^DP-2$,width:2560,height:1440,refresh:60,x:0,y:0,scale:1.5 +#monitorrule=name:^DP-3$,width:2560,height:1440,refresh:60,x:0,y:0,scale:1.5 + +# Status bar and wallpaper +exec_once=waybar -c ~/.config/mango/waybar/config.jsonc -s ~/.config/mango/waybar/style.css +exec_once=pipewire +#exec_once=/home/hanez/.cargo/bin/zoha +exec_once=blueman-applet +exec_once=system-config-printer-applet +exec_once=xfce4-clipman +exec_once=keepassxc +exec_once=redshift-gtk -l 54.89153:8.35654 +exec_once=claws-mail +exec_once=signal-desktop-beta +exec_once=gpick +exec_once=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec_once=/usr/lib/geoclue-2.0/demos/agent +exec_once=megasync +exec_once=spacetray -i 300 https://www.hamburg.ccc.de/dooris/status.json +exec_once=xpad +exec_once=pamac-tray +exec_once=zapzap +#exec_once= +#exec_once= +#exec_once= +#exec_once= +#exec_once= +#exec_once= +#exec_once= +#exec_once= +#exec_once= +#exec_once= +#exec_once= +#exec_once= +#exec_once= +##exec-once=waybar -c ~/.config/waybar/config.jsonc -s ~/.config/waybar/style.css +#exec-once=swaybg -o DP-2 -i ~/Pictures/114.png -o DP-1 -i ~/Pictures/116.png +#exec_once=swaybg -i ~/Pictures/245.png + +# layer rule +layer_rule=animation_type_open:zoom,layer_name:rofi +layer_rule=animation_type_close:zoom,layer_name:rofi +#layer_rule=animation_type_open:zoom,layer_name:wofi,is_no_radius:1 +#layer_rule=animation_type_close:zoom,layer_name:wofi,is_no_radius:1 + diff --git a/.config/mango/foot/foot.ini b/.config/mango/foot/foot.ini new file mode 100644 index 00000000..aea9843a --- /dev/null +++ b/.config/mango/foot/foot.ini @@ -0,0 +1,180 @@ +# -*- conf -*- + +# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) +# term=foot (or xterm-256color if built with -Dterminfo=disabled) +term=xterm-256color +# login-shell=no + +# app-id=foot +# title=foot +# locked-title=no + +#font=JetBrains Mono NL Medium:size=14 +font=JetBrainsMono:size=16 +# font-bold= +# font-italic= +# font-bold-italic= +# line-height= +# letter-spacing=0 +# horizontal-letter-offset=0 +# vertical-letter-offset=0 +# underline-offset= +# box-drawings-uses-font-glyphs=no +# dpi-aware=yes + +# initial-window-size-pixels=700x500 # Or, +# initial-window-size-chars= +# initial-window-mode=windowed +### optionally append 'center': +#pad=24x24 +pad=8x8 +# resize-delay-ms=100 + +# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body} + +# bold-text-in-bright=no +# bell=none + +# this change allows clicking url's to select them: +# word-delimiters=,│`|:"'()[]{}<> +word-delimiters=,│`|"'()[]{}<> + +# selection-target=primary +# workers= + +[bell] +urgent=no +notify=no +# command= +# command-focused=no + +[scrollback] +lines=10000 +# multiplier=3.0 +# indicator-position=relative +# indicator-format= + +[url] +# launch=xdg-open ${url} +# label-letters=sadfjklewcmpgh +# osc8-underline=url-mode +# protocols=http, https, ftp, ftps, file, gemini, gopher +# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="' + +#[cursor] +#style=block +#color=eeeeee 9f515a +# blink=no +# beam-thickness=1.5 +# underline-thickness= + +[mouse] +hide-when-typing=yes +# alternate-scroll-mode=yes + +[colors-dark] +# background opacity +#alpha=1.0 +#alpha=0.97 +alpha=0.9 +cursor=eeeeee 9f515a +#color=eeeeee 9f515a +# blink=no +foreground=dbdee9 +background=0E1420 +regular0=5B6272 +regular1=BF616A +regular2=A3BE8C +regular3=EBCB8B +regular4=81A1C1 +regular5=B48EAD +regular6=88C0D0 +regular7=E5E9F0 +bright0=4C566A +bright1=BF616A +bright2=A3BE8C +bright3=EBCB8B +bright4=81A1C1 +bright5=B48EAD +bright6=8FBCBB +bright7=ECEFF4 +# 16 = <256-color palette #16> +# ... +# 255 = <256-color palette #255> +selection-foreground=e8eef9 +selection-background=3e4450 +# jump-labels= +# urls= +# scrollback-indicator= + +[csd] +# preferred=server +# size=26 +# font= +# color= +# button-width=26 +# button-color= +# button-minimize-color= +# button-maximize-color= +# button-close-color= + +[key-bindings] +# scrollback-up-page=Shift+Page_Up +# scrollback-up-half-page=none +# scrollback-up-line=none +# scrollback-down-page=Shift+Page_Down +# scrollback-down-half-page=none +# scrollback-down-line=none +#clipboard-copy=Control+Shift+c +#clipboard-paste=Control+Shift+v +#primary-paste=Shift+Insert +# search-start=Control+Shift+r +# font-increase=Control+plus Control+equal Control+KP_Add +# font-decrease=Control+minus Control+KP_Subtract +# font-reset=Control+0 Control+KP_0 +# spawn-terminal=Control+Shift+n +# minimize=none +# maximize=none +# fullscreen=none +# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none +# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none +# pipe-selected=[xargs -r firefox] none +# show-urls-launch=Control+Shift+u +# show-urls-copy=none + +[search-bindings] +# cancel=Control+g Control+c Escape +# commit=Return +# find-prev=Control+r +# find-next=Control+s +# cursor-left=Left Control+b +# cursor-left-word=Control+Left Mod1+b +# cursor-right=Right Control+f +# cursor-right-word=Control+Right Mod1+f +# cursor-home=Home Control+a +# cursor-end=End Control+e +# delete-prev=BackSpace +# delete-prev-word=Mod1+BackSpace Control+BackSpace +# delete-next=Delete +# delete-next-word=Mod1+d Control+Delete +# extend-to-word-boundary=Control+w +# extend-to-next-whitespace=Control+Shift+w +# clipboard-paste=Control+v Control+y +# primary-paste=Shift+Insert + +[url-bindings] +# cancel=Control+g Control+c Control+d Escape +# toggle-url-visible=t + +[mouse-bindings] +# primary-paste=BTN_MIDDLE +# select-begin=BTN_LEFT +# select-begin-block=Control+BTN_LEFT +# select-extend=BTN_RIGHT +# select-extend-character-wise=Control+BTN_RIGHT +# select-word=BTN_LEFT-2 +# select-word-whitespace=Control+BTN_LEFT-2 +# select-row=BTN_LEFT-3 + + + diff --git a/.config/mango/scripts/cycle-layout b/.config/mango/scripts/cycle-layout new file mode 100755 index 00000000..96a65642 --- /dev/null +++ b/.config/mango/scripts/cycle-layout @@ -0,0 +1,14 @@ +#!/bin/bash +set -x +dir=${1:-next} +f=/tmp/mango-layout-idx +idx=0 +[[ -f $f ]] && idx=$(<$f) +layouts=(tile scroller monocle grid deck center_tile vertical_tile right_tile vertical_scroller vertical_grid vertical_deck dwindle fair vertical_fair) +if [[ "$dir" == "prev" ]]; then + idx=$(( (idx - 1 + ${#layouts[@]}) % ${#layouts[@]} )) +else + idx=$(( (idx + 1) % ${#layouts[@]} )) +fi +mmsg dispatch setlayout,${layouts[$idx]} && echo "$idx" > "$f" + diff --git a/.config/mango/scripts/cycle-monitor b/.config/mango/scripts/cycle-monitor new file mode 100755 index 00000000..097a23d0 --- /dev/null +++ b/.config/mango/scripts/cycle-monitor @@ -0,0 +1,11 @@ +#!/bin/bash +monitors=($(mmsg get all-monitors | jq -r '.monitors[].name')) +total=${#monitors[@]} +[[ $total -le 1 ]] && exit 0 +cur=$(mmsg get all-monitors | jq -r '.monitors[] | select(.active == true) | .name') +idx=0 +for i in "${!monitors[@]}"; do + [[ "${monitors[$i]}" == "$cur" ]] && idx=$i && break +done +idx=$(( (idx + 1) % total )) +mmsg dispatch focusmon,"${monitors[$idx]}" diff --git a/.config/mango/scripts/cycle-monitor-with-client b/.config/mango/scripts/cycle-monitor-with-client new file mode 100755 index 00000000..954e2d74 --- /dev/null +++ b/.config/mango/scripts/cycle-monitor-with-client @@ -0,0 +1,11 @@ +#!/bin/bash +monitors=($(mmsg get all-monitors | jq -r '.monitors[].name')) +total=${#monitors[@]} +[[ $total -le 1 ]] && exit 0 +cur=$(mmsg get all-monitors | jq -r '.monitors[] | select(.active == true) | .name') +idx=0 +for i in "${!monitors[@]}"; do + [[ "${monitors[$i]}" == "$cur" ]] && idx=$i && break +done +idx=$(( (idx + 1) % total )) +mmsg dispatch tagmon,"${monitors[$idx]}" diff --git a/.config/mango/scripts/mango-move-with b/.config/mango/scripts/mango-move-with new file mode 100755 index 00000000..61fcab09 --- /dev/null +++ b/.config/mango/scripts/mango-move-with @@ -0,0 +1,20 @@ +#!/bin/bash + +usage() { + echo "Usage: $(basename "$0") {prev|next}" + exit 1 +} + +[ $# -eq 1 ] || usage + +case "$1" in + prev) + mmsg dispatch tagtoleft + ;; + next) + mmsg dispatch tagtoright + ;; + *) + usage + ;; +esac diff --git a/.config/mango/scripts/screenshot-full b/.config/mango/scripts/screenshot-full new file mode 100755 index 00000000..ded61c2f --- /dev/null +++ b/.config/mango/scripts/screenshot-full @@ -0,0 +1,2 @@ +#!/bin/sh +grim - | wl-copy diff --git a/.config/mango/scripts/screenshot-region b/.config/mango/scripts/screenshot-region new file mode 100755 index 00000000..d9720c1f --- /dev/null +++ b/.config/mango/scripts/screenshot-region @@ -0,0 +1,5 @@ +#!/bin/sh + +grim -g "$(slurp)" - | wl-copy + + diff --git a/.config/mango/scripts/vol b/.config/mango/scripts/vol new file mode 100755 index 00000000..a943523e --- /dev/null +++ b/.config/mango/scripts/vol @@ -0,0 +1,4 @@ +#!/bin/bash +# Adjust volume via pipewire/pulseaudio +delta=${1:-+5} +pactl set-sink-volume @DEFAULT_SINK@ "$delta"% diff --git a/.config/mango/waybar/config.jsonc b/.config/mango/waybar/config.jsonc new file mode 100644 index 00000000..10174ac9 --- /dev/null +++ b/.config/mango/waybar/config.jsonc @@ -0,0 +1,180 @@ +// -*- mode: jsonc -*- +{ + // "layer": "top", // Waybar at top layer + // "position": "bottom", // Waybar position (top|bottom|left|right) + "height": 42, // Waybar height (to be removed for auto height) + // "width": 1280, // Waybar width + "spacing": 4, // Gaps between modules (4px) + // Choose the order of the modules + "modules-left": [ + "ext/workspaces" + ], + "modules-center": [ + "sway/window" + ], + "modules-right": [ +// "idle_inhibitor", + "pulseaudio", +// "network", +// "power-profiles-daemon", +// "cpu", +// "memory", +// "temperature", +// "backlight", +// "sway/language", +// "battery", + "tray", + "clock" + ], + // Modules configuration + "ext/workspaces": { + "format": "{name}", + "on-click": "activate", + "sort-by-id": true + }, + "keyboard-state": { + "numlock": true, + "capslock": true, + "format": "{name} {icon}", + "format-icons": { + "locked": "", + "unlocked": "" + } + }, + "sway/mode": { + "format": "{}" + }, + "sway/scratchpad": { + "format": "{icon} {count}", + "show-empty": false, + "format-icons": ["", ""], + "tooltip": true, + "tooltip-format": "{app}: {title}" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + "icon-size": 21, + "spacing": 10 + //"icons": { + // "blueman": "bluetooth", + // "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png" + //} + }, + "clock": { + // "timezone": "America/New_York", + "format": "{:%a %Y-%m-%d %H:%M:%S}", + "interval": 1, + "tooltip-format": "{:%Y %B}\n{calendar}", + "format-alt": "{:%H:%M}" + }, + "cpu": { + "format": "{usage}% ", + "tooltip": false + }, + "memory": { + "format": "{}% " + }, + "temperature": { + // "thermal-zone": 2, + // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "critical-threshold": 80, + // "format-critical": "{temperatureC}°C {icon}", + "format": "{temperatureC}°C {icon}", + "format-icons": ["", "", ""] + }, + "backlight": { + // "device": "acpi_video1", + "format": "{percent}% {icon}", + "format-icons": ["🌑", "🌘", "🌗", "🌖", "🌕"] + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-full": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] + }, + "battery#bat2": { + "bat": "BAT2" + }, + "power-profiles-daemon": { + "format": "{icon}", + "tooltip-format": "Power profile: {profile}\nDriver: {driver}", + "tooltip": true, + "format-icons": { + "default": "", + "performance": "", + "balanced": "", + "power-saver": "" + } + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "{essid} ({signalStrength}%) ", + "format-ethernet": "{ipaddr}/{cidr} ", + "tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{volume}% {icon} {format_source}", + "format-bluetooth": "{volume}% {icon} {format_source}", + "format-bluetooth-muted": " {icon} {format_source}", + "format-muted": " {format_source}", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "pavucontrol" + }, + "custom/media": { + "format": "{icon} {text}", + "return-type": "json", + "max-length": 40, + "format-icons": { + "spotify": "", + "default": "🎜" + }, + "escape": true, + "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder + // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name + }, + "custom/power": { + "format" : "⏻ ", + "tooltip": false, + "menu": "on-click", + "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder + "menu-actions": { + "shutdown": "shutdown", + "reboot": "reboot", + "suspend": "systemctl suspend", + "hibernate": "systemctl hibernate" + } + } +} + + + diff --git a/.config/mango/waybar/style.css b/.config/mango/waybar/style.css new file mode 100644 index 00000000..46eb3339 --- /dev/null +++ b/.config/mango/waybar/style.css @@ -0,0 +1,319 @@ +* { + font-family: 'Noto Sans Mono', 'Font Awesome 6 Free', 'Font Awesome 6 Brands', monospace; + font-size: 16px; +} + +window#waybar { + background-color: rgba(46, 52, 64, 0.9); + border-bottom: 3px solid rgba(67, 76, 94, 0.9); + color: #eceff4; +} + +window#waybar.hidden { + opacity: 0.2; +} + +window#waybar.termite { + background-color: #3b4252; +} + +window#waybar.chromium { + background-color: #2e3440; + border: none; +} + +button { + box-shadow: inset 0 -3px transparent; + border: none; + border-radius: 0; + transition: none; +} + +button:hover { + background: inherit; + box-shadow: inset 0 -3px #eceff4; +} + +#pulseaudio:hover { + background-color: #4c566a; +} + +#workspaces button { + padding: 0 5px; + background-color: transparent; + color: #d8dee9; +} + +#workspaces button:hover { + background: rgba(0, 0, 0, 0.3); +} + +#workspaces button.focused, #workspaces button.active { + background-color: #4c566a; + box-shadow: inset 0 -3px #88c0d0; +} + +#workspaces button.urgent { + background-color: #bf616a; + color: #eceff4; +} + +#mode { + background-color: #4c566a; + color: #eceff4; + box-shadow: inset 0 -3px #88c0d0; +} + +#clock, +#battery, +#cpu, +#memory, +#disk, +#temperature, +#backlight, +#network, +#pulseaudio, +#wireplumber, +#custom-media, +#tray, +#mode, +#idle_inhibitor, +#scratchpad, +#power-profiles-daemon, +#mpd { + padding: 4px 10px; + color: #eceff4; +} + +#windows, +#workspaces { + margin: 0 4px; +} + +.modules-left > widget:first-child > #workspaces { + margin-left: 0; +} + +.modules-right > widget:last-child > #workspaces { + margin-right: 0; +} + +#clock { + background-color: #4c566a; + color: #eceff4; +} + +#battery { + background-color: #434c5e; + color: #d8dee9; +} + +#battery.charging, #battery.plugged { + background-color: #3b4252; + color: #a3be8c; +} + +#battery.critical:not(.charging) { + background-color: #bf616a; + color: #eceff4; +} + +#power-profiles-daemon { + padding-right: 15px; +} + +#power-profiles-daemon.performance { + background-color: #3b4252; + color: #d08770; +} + +#power-profiles-daemon.balanced { + background-color: #3b4252; + color: #81a1c1; +} + +#power-profiles-daemon.power-saver { + background-color: #3b4252; + color: #a3be8c; +} + +label:focus { + background-color: #2e3440; +} + +#cpu { + background-color: #3b4252; + color: #88c0d0; +} + +#memory { + background-color: #3b4252; + color: #b48ead; +} + +#disk { + background-color: #3b4252; + color: #5e81ac; +} + +#backlight { + background-color: #3b4252; + color: #81a1c1; +} + +#network { + background-color: #3b4252; + color: #81a1c1; +} + +#network.disconnected { + background-color: #3b4252; + color: #bf616a; +} + +#pulseaudio { + background-color: #3b4252; + color: #ebcb8b; +} + +#pulseaudio.muted { + background-color: #3b4252; + color: #4c566a; +} + +#wireplumber { + background-color: #3b4252; + color: #a3be8c; +} + +#wireplumber.muted { + background-color: #3b4252; + color: #bf616a; +} + +#custom-media { + background-color: #3b4252; + color: #8fbcbb; + min-width: 100px; +} + +#custom-media.custom-spotify { + background-color: #3b4252; + color: #a3be8c; +} + +#custom-media.custom-vlc { + background-color: #3b4252; + color: #d08770; +} + +#temperature { + background-color: #3b4252; + color: #d08770; +} + +#temperature.critical { + background-color: #3b4252; + color: #bf616a; +} + +#tray { + background-color: #434c5e; + color: #eceff4; +} + +#tray > .passive { + -gtk-icon-effect: dim; +} + +#tray > .needs-attention { + -gtk-icon-effect: highlight; + background-color: #3b4252; + color: #bf616a; +} + +#idle_inhibitor { + background-color: #3b4252; + color: #d8dee9; +} + +#idle_inhibitor.activated { + background-color: #3b4252; + color: #88c0d0; +} + +#mpd { + background-color: #3b4252; + color: #8fbcbb; +} + +#mpd.disconnected { + background-color: #3b4252; + color: #bf616a; +} + +#mpd.stopped { + background-color: #3b4252; + color: #4c566a; +} + +#mpd.paused { + background-color: #3b4252; + color: #a3be8c; +} + +#language { + background: #3b4252; + color: #81a1c1; + padding: 0 5px; + margin: 0 5px; + min-width: 16px; +} + +#keyboard-state { + background: #3b4252; + color: #81a1c1; + padding: 0 0px; + margin: 0 5px; + min-width: 16px; +} + +#keyboard-state > label { + padding: 0 5px; +} + +#keyboard-state > label.locked { + background: rgba(0, 0, 0, 0.3); +} + +#scratchpad { + background: rgba(0, 0, 0, 0.3); +} + +#scratchpad.empty { + background-color: transparent; +} + +#privacy { + padding: 0; +} + +#privacy-item { + padding: 0 5px; + color: #eceff4; +} + +#privacy-item.screenshare { + background-color: #3b4252; + color: #d08770; +} + +#privacy-item.audio-in { + background-color: #3b4252; + color: #a3be8c; +} + +#privacy-item.audio-out { + background-color: #3b4252; + color: #81a1c1; +} diff --git a/.config/mango/wofi/config b/.config/mango/wofi/config new file mode 100644 index 00000000..528b0bd7 --- /dev/null +++ b/.config/mango/wofi/config @@ -0,0 +1,16 @@ +width=840 +height=500 +location=center +show=drun +prompt=Search... +filter_rate=100 +allow_markup=true +no_actions=true +halign=fill +orientation=vertical +content_halign=fill +insensitive=true +allow_images=true +image_size=24 +gtk_dark=true +layer=overlay diff --git a/.config/mango/wofi/style.css b/.config/mango/wofi/style.css new file mode 100644 index 00000000..b21e533c --- /dev/null +++ b/.config/mango/wofi/style.css @@ -0,0 +1,69 @@ +/* Nord theme for wofi */ + +* { + font-family: "Noto Sans", "Font Awesome 6 Free", monospace; + border-radius: 0px !important; +} + +window { + margin: 0px; + border: 2px solid #5e81ac; + background-color: #2e3440; + border-radius: 0px; +} + +#input { + margin: 8px; + border: 1px solid #4c566a; + background-color: #3b4252; + color: #d8dee9; + border-radius: 0px; + padding: 4px 8px; +} + +#input:focus { + border-color: #5e81ac; +} + +#inner-box { + margin: 4px; + border: none; + background-color: #2e3440; +} + +#outer-box { + margin: 4px; + border: none; + background-color: #2e3440; +} + +#scroll { + margin: 0px; + border: none; +} + +#text { + margin: 4px; + border: none; + color: #d8dee9; +} + +#entry { + border-radius: 0px; + padding: 4px 8px; + margin: 2px 4px; +} + +#entry:selected { + background-color: #434c5e; + border: 1px solid #5e81ac; + border-radius: 0px; +} + +#entry:selected #text { + color: #eceff4; +} + +#entry:selected #img { + background-color: #5e81ac; +} diff --git a/.gitignore b/.gitignore index 6b4f77da..10e98970 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,9 @@ !.config/awesome/** .config/awesome/config.lua +!.config/mango +!.config/mango/** + !.byobu #!.byobu/** !.config/byobu