diff --git a/README.md b/README.md
index 844ae90..b321be5 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# MangoWC
-
+
This project's development is based on [dwl](https://codeberg.org/dwl/dwl/).
@@ -101,12 +101,12 @@ emerge --ask --verbose gui-wm/mangowc
## Other
```bash
-git clone -b 0.19.1 https://gitlab.freedesktop.org/wlroots/wlroots.git
+git clone -b 0.19.2 https://gitlab.freedesktop.org/wlroots/wlroots.git
cd wlroots
meson build -Dprefix=/usr
sudo ninja -C build install
-git clone https://github.com/wlrfx/scenefx.git
+git clone -b 0.4.1 https://github.com/wlrfx/scenefx.git
cd scenefx
meson build -Dprefix=/usr
sudo ninja -C build install
@@ -119,6 +119,10 @@ sudo ninja -C build install
## Suggested Tools
+### Hybrid component
+- [dms-shell](https://github.com/AvengeMedia/DankMaterialShell)
+
+### Independent component
- Application launcher (rofi, bemenu, wmenu, fuzzel)
- Terminal emulator (foot, wezterm, alacritty, kitty, ghostty)
- Status bar (waybar, eww, quickshell, ags), waybar is preferred
@@ -139,13 +143,25 @@ sudo ninja -C build install
## My Dotfiles
+### Daily
- Dependencies
```bash
yay -S rofi foot xdg-desktop-portal-wlr swaybg waybar wl-clip-persist cliphist wl-clipboard wlsunset xfce-polkit swaync pamixer wlr-dpms sway-audio-idle-inhibit-git swayidle dimland-git brightnessctl swayosd wlr-randr grim slurp satty swaylock-effects-git wlogout sox
```
-- use my config
+### Dms
+- Dependencies
+```bash
+yay -S foot xdg-desktop-portal-wlr swaybg wl-clip-persist cliphist wl-clipboard sway-audio-idle-inhibit-git brightnessctl grim slurp satty matugen-bin dms-shell-git
+
+```
+- use my dms config
+
+```bash
+git clone -b dms https://github.com/DreamMaoMao/mango-config.git ~/.config/mango
+```
+- use my daily config
```bash
git clone https://github.com/DreamMaoMao/mango-config.git ~/.config/mango
@@ -173,7 +189,10 @@ Here's an example of using the modules in a flake:
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts.url = "github:hercules-ci/flake-parts";
- mango.url = "github:DreamMaoMao/mango";
+ mango = {
+ url = "github:DreamMaoMao/mango";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
};
outputs =
inputs@{ self, flake-parts, ... }:
diff --git a/assets/mango-black.png b/assets/mango-black.png
deleted file mode 100644
index fabfe01..0000000
Binary files a/assets/mango-black.png and /dev/null differ
diff --git a/assets/mango-transparency-128.png b/assets/mango-transparency-128.png
index 7b9b4c6..a995f57 100644
Binary files a/assets/mango-transparency-128.png and b/assets/mango-transparency-128.png differ
diff --git a/assets/mango-transparency-256.png b/assets/mango-transparency-256.png
index 3bb4d65..974ab3f 100644
Binary files a/assets/mango-transparency-256.png and b/assets/mango-transparency-256.png differ
diff --git a/assets/mango-transparency.png b/assets/mango-transparency.png
index 25e5385..488a31e 100644
Binary files a/assets/mango-transparency.png and b/assets/mango-transparency.png differ
diff --git a/assets/mango.png b/assets/mango.png
index eb14740..5a8136f 100644
Binary files a/assets/mango.png and b/assets/mango.png differ
diff --git a/config.conf b/config.conf
index 353bdab..4c8d8d3 100644
--- a/config.conf
+++ b/config.conf
@@ -42,10 +42,12 @@ 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
# Scroller Layout Setting
scroller_structs=20
@@ -240,7 +242,7 @@ bind=CTRL+ALT,Right,resizewin,+50,+0
mousebind=SUPER,btn_left,moveresize,curmove
mousebind=NONE,btn_middle,togglemaximizescreen,0
mousebind=SUPER,btn_right,moveresize,curresize
-mousebind=NONE,btn_left,toggleoverview,-1
+mousebind=NONE,btn_left,toggleoverview,1
mousebind=NONE,btn_right,killclient,0
# Axis Bindings
diff --git a/flake.nix b/flake.nix
index ff88ba0..b7158bb 100644
--- a/flake.nix
+++ b/flake.nix
@@ -30,7 +30,7 @@
}: let
inherit (pkgs) callPackage ;
mango = callPackage ./nix {
- inherit (inputs.scenefx.packages.${pkgs.system}) scenefx;
+ inherit (inputs.scenefx.packages.${pkgs.stdenv.hostPlatform.system}) scenefx;
};
shellOverride = old: {
nativeBuildInputs = old.nativeBuildInputs ++ [];
diff --git a/meson.build b/meson.build
index 0d33bad..b02e0fd 100644
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,5 @@
project('mango', ['c', 'cpp'],
- version : '0.10.4',
+ version : '0.10.6',
)
subdir('protocols')
@@ -32,10 +32,10 @@ cc = meson.get_compiler('c')
libm = cc.find_library('m')
xcb = dependency('xcb', required : get_option('xwayland'))
xlibs = dependency('xcb-icccm', required : get_option('xwayland'))
-wayland_server_dep = dependency('wayland-server')
+wayland_server_dep = dependency('wayland-server',version: '>=1.23.1')
wlroots_dep = dependency('wlroots-0.19',version: '>=0.19.0')
xkbcommon_dep = dependency('xkbcommon')
-libinput_dep = dependency('libinput')
+libinput_dep = dependency('libinput',version: '>=1.27.1')
libwayland_client_dep = dependency('wayland-client')
pcre2_dep = dependency('libpcre2-8')
libscenefx_dep = dependency('scenefx-0.4',version: '>=0.4.1')
diff --git a/mmsg/mmsg.c b/mmsg/mmsg.c
index 7f406d5..6f350ed 100644
--- a/mmsg/mmsg.c
+++ b/mmsg/mmsg.c
@@ -41,6 +41,7 @@ static int xflag;
static int eflag;
static int kflag;
static int bflag;
+static int Aflag;
static uint32_t occ, seltags, total_clients, urg;
@@ -264,6 +265,18 @@ static void dwl_ipc_output_kb_layout(void *data,
printf("kb_layout %s\n", kb_layout);
}
+static void
+dwl_ipc_output_scalefactor(void *data,
+ struct zdwl_ipc_output_v2 *dwl_ipc_output,
+ const unsigned int scalefactor) {
+ if (!Aflag)
+ return;
+ char *output_name = data;
+ if (output_name)
+ printf("%s ", output_name);
+ printf("scale_factor %f\n", scalefactor / 100.0f);
+}
+
static void dwl_ipc_output_keymode(void *data,
struct zdwl_ipc_output_v2 *dwl_ipc_output,
const char *keymode) {
@@ -413,6 +426,7 @@ static const struct zdwl_ipc_output_v2_listener dwl_ipc_output_listener = {
.last_layer = dwl_ipc_output_last_layer,
.kb_layout = dwl_ipc_output_kb_layout,
.keymode = dwl_ipc_output_keymode,
+ .scalefactor = dwl_ipc_output_scalefactor,
.frame = dwl_ipc_output_frame,
};
@@ -490,7 +504,7 @@ static void usage(void) {
"\t%s [-OTLq]\n"
"\t%s [-o