diff --git a/Makefile b/Makefile index 8fcb4d8..f6241f3 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,6 @@ COMPILE_FLAGS+=-Iinclude COMPILE_DEFINES=-DWLR_USE_UNSTABLE -INSTALL_LOCATION=${HOME}/.local/share/hyprload/plugins/bin - ifeq ($(shell whereis -b jq), "jq:") $(error "jq not found. Please install jq.") else @@ -23,10 +21,6 @@ endif all: check_env $(PLUGIN_NAME).so -install: all - mkdir -p ${INSTALL_LOCATION} - cp $(PLUGIN_NAME).so ${INSTALL_LOCATION} - check_env: @if pkg-config --exists hyprland; then \ echo 'Hyprland headers found.'; \ diff --git a/README.md b/README.md index 4f982a7..0fbb665 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,21 @@ It also provides the following config values | `plugin:split-monitor-workspaces:enable_notifications` | boolean | 0 | Enable notifications | | `plugin:split-monitor-workspaces:enable_persistent_workspaces` | boolean | 1 | Enable management of persistent workspaces. This means the plugin will at initialization create `$count` workspaces on each monitor and make them persistent. | -Keep in mind that if you're using, for example, the `wlr/workspaces` widgets in [waybar](https://github.com/Alexays/Waybar), this will require a change to your config. You should set `all-outputs` to `false`, and adjust the icon mapping. +This plugin supports [waybar's](https://github.com/Alexays/Waybar) `hyprland/workspaces` module. You can configure it like this: + +``` +"hyprland/workspaces": { + "format": "{icon}", + "format-icons": { + "urgent": "", + "active": "", // focused workspace on current monitor + "visible": "", // focused workspace on other monitors + "default": "", + "empty": "" // persistent (created by this plugin) + }, + "all-outputs": false // recommended + }, +``` If your workspace-per-monitor count is 10, the first monitor will have workspaces 1-10, the second 11-20 and so on. They will be accessed via numbers 1-10 while your mouse is on a given monitor. diff --git a/hyprload.toml b/hyprload.toml deleted file mode 100644 index 9dfd869..0000000 --- a/hyprload.toml +++ /dev/null @@ -1,11 +0,0 @@ -[split-monitor-workspaces] -description = "Split monitor workspaces" -version = "1.2.0" -author = "Duckonaut" - -[split-monitor-workspaces.build] -output = "build/libsplit-monitor-workspaces.so" -steps = [ - "meson setup build --wipe", - "meson compile -C build", -]