Important
- Supports Hyprland release
v0.46.2-v0.54.0.
demo_small.mp4
- Modular Layouts
- Grid layout
- Linear layout
- Minimap layout
- Mouse controls
- Exit into workspace (hover, click)
- Drag and drop windows
- Keyboard controls
- Switch workspaces with direction
- Switch workspaces with absolute number
- Multi-monitor support (tested)
- Monitor scaling support (tested)
- Animation support
- Configurability
- Overview exit behavior
- Number of visible workspaces
- Custom workspace layouts
- Toggle behavior
- Toggle keybind
- Touch and gesture support
- Overview layers
hyprpm add https://github.com/raybbian/hyprtasking
hyprpm enable hyprtasking
Add hyprtasking to your flake inputs
# flake.nix
{
inputs = {
hyprland.url = "github:hyprwm/Hyprland/v0.49.0";
hyprtasking = {
url = "github:raybbian/hyprtasking";
inputs.hyprland.follows = "hyprland";
};
};
# ...
}Include the plugin in the hyprland home manager options
# home.nix
{ inputs, ... }:
{
wayland.windowManager.hyprland = {
plugins = [
inputs.hyprtasking.packages.${pkgs.system}.hyprtasking
];
}
}To build, have hyprland headers installed on the system and then:
meson setup build
cd build && meson compile
Then use hyprctl plugin load to load the absolute path to the .so file:
hyprctl plugin load "$(realpath libhyprtasking.so)"
- Bind
hyprtasking:toggle, allto a keybind to open/close the overlay on all monitors. - Bind
hyprtasking:toggle, cursorto a keybind to open the overlay on one monitor and close on all monitors. - Swipe up/down on a touchpad device to open/close the overlay on one monitor.
- See below for configuration options.
- Workspace Transitioning:
- Open the overlay, then use right click to switch to a workspace
- Use the directional dispatchers
hyprtasking:moveto switch to a workspace
- Window management:
- Left click to drag and drop windows around
Example below:
bind = SUPER, tab, hyprtasking:toggle, cursor
bind = SUPER, space, hyprtasking:toggle, all
# NOTE: the lack of a comma after hyprtasking:toggle!
bind = , escape, hyprtasking:if_active, hyprtasking:toggle cursor
bind = SUPER, X, hyprtasking:killhovered
bind = SUPER, H, hyprtasking:move, left
bind = SUPER, J, hyprtasking:move, down
bind = SUPER, K, hyprtasking:move, up
bind = SUPER, L, hyprtasking:move, right
bind = SUPER, A, hyprtasking:move, out
bind = SUPER SHIFT, A, hyprtasking:movewindow, out
bind = SUPER CTRL, 1, hyprtasking:setlayer, 1
bind = SUPER CTRL, 2, hyprtasking:setlayer, 2
plugin {
hyprtasking {
layout = grid
gap_size = 20
bg_color = 0xff26233a
border_size = 4
exit_on_hovered = false
warp_on_move_window = 1
close_overview_on_reload = true
drag_button = 0x110 # left mouse button
select_button = 0x111 # right mouse button
# for other mouse buttons see <linux/input-event-codes.h>
gestures {
enabled = true
move_fingers = 3
move_distance = 300
open_fingers = 4
open_distance = 300
open_positive = true
}
grid {
rows = 3
cols = 3
loop = false
layers = 2
loop_layers = true
gaps_use_aspect_ratio = false
}
linear {
top = false
height = 400
scroll_speed = 1.0
blur = false
}
}
}
-
hyprtasking:if_active, ARGtakes in a dispatch command (one that would be used afterhyprctl dispatch ...) that will be dispatched only if the cursor overview is active.- Allows you to use e.g.
escapeto close the overview when it is active. See the example config for more info.
- Allows you to use e.g.
-
hyprtasking:if_not_active, ARGsame as above, but if the overview is not active. -
hyprtasking:toggle, ARGtakes in 1 argument that is eithercursororall- if the argument is
all, then- if all overviews are hidden, then all overviews will be shown
- otherwise all overviews will be hidden
- if the argument is
cursor, then- if current monitor's overview is hidden, then it will be shown
- otherwise all overviews will be hidden
- if the argument is
-
hyprtasking:move, ARGtakes in 1 argument that is one ofup,down,left,right,in,out- when dispatched, hyprtasking will switch workspaces with a nice animation
-
hyprtasking:movewindow, ARGtakes in 1 argument that is one ofup,down,left,right,in,out- when dispatched, hyprtasking will 1. move the hovered window to the workspace in the given direction relative to the window, and 2. switch to that workspace.
-
hyprtasking:setlayer, ARGtakes in 1 optional argument that specifies the direction of movement across layers.- if provided, the argument has to start with
+or-to take effect. For example:+1,-3 - no arguments has the same effect as
+1 - when dispatched, hyprtasking will move you through the layers in the specified direction
- if plugin option
grid:loop_layersis enabled, will loop the layers if next requested layer is out of bounds (not in the range form 0 togrid:layers)
- if provided, the argument has to start with
-
hyprtasking:setlayerwindow, ARGtakes in 1 optional argument that specifies the direction of movement across layers.- when dispatched, hyprtasking will do the same as
hyprtasking:setlayer, ARGand also move the window through layers
- when dispatched, hyprtasking will do the same as
-
hyprtasking:killhoveredbehaves similarly to the standardkillactivedispatcher with focus on hover- when dispatched, hyprtasking will the currently hovered window, useful when the overview is active.
- this dispatcher is designed to replace killactive, it will work even when the overview is not active.
All options should are prefixed with plugin:hyprtasking:.
| Option | Type | Description | Default |
|---|---|---|---|
layout |
Hyprlang::STRING |
The layout to use, either grid or linear |
grid |
bg_color |
Hyprlang::INT |
The color of the background of the overlay | 0x000000FF |
gap_size |
Hyprlang::FLOAT |
The width in logical pixels of the gaps between workspaces | 8.f |
border_size |
Hyprlang::FLOAT |
The width in logical pixels of the borders around workspaces | 4.f |
exit_on_hovered |
Hyprlang::INT |
If true, hiding the workspace will exit to the hovered workspace instead of the active workspace. | false |
warp_on_move_window |
Hyprlang::INT |
Works the same as cursor:warp_on_change_workspace (see wiki) but with hyprtasking:movewindow dispathcer. cursor:warp_on_change_workspace works only with hyprtasking:move dispathcer |
1 |
close_overview_on_reload |
Hyprlang::INT |
Whether to close the overview if its type didn't type didn't change after hyprland config reload | true |
drag_button |
Hyprlang::INT |
The mouse button to use to drag windows around | 0x110 |
select_button |
Hyprlang::INT |
The mouse button to use to select a workspace | 0x111 |
gestures:enabled |
Hyprlang::INT |
Whether or not to enable gestures | true |
gestures:move_fingers |
Hyprlang::INT |
The number of fingers to use for the "move" gesture | 3 |
gestures:move_distance |
Hyprlang::FLOAT |
How large of a swipe on the touchpad corresponds to the width of a workspace | 300.f |
gestures:open_fingers |
Hyprlang::INT |
The number of fingers to use for the "open" gesture | 4 |
gestures:open_distance |
Hyprlang::FLOAT |
How large of a swipe on the touchpad is needed for the "open" gesture | 300.f |
gestures:open_positive |
Hyprlang::INT |
true if swiping up should open the overlay, false otherwise |
true |
grid:rows |
Hyprlang::INT |
The number of rows to display on the grid overlay | 3 |
grid:cols |
Hyprlang::INT |
The number of columns to display on the grid overlay | 3 |
grid:loop |
Hyprlang::INT |
When enabled, moving right at the far right of the grid will wrap around to the leftmost workspace, etc. | false |
grid:layers |
Hyprlang::INT |
The number of layers for grid layout, the third dimension | 1 |
grid:loop_layers |
Hyprlang::INT |
When enabled, moving back on the first layer will wrap around to the last layer. The reverse also works | true |
grid:gaps_use_aspect_ratio |
Hyprlang::INT |
When enabled, vertical gaps will be scaled to match the monitor's aspect ratio | false |
linear:top |
Hyprlang::INT |
Whether or not to position the overview on top of the screen | false |
linear:blur |
Hyprlang::INT |
Whether or not to blur the dimmed area | false |
linear:height |
Hyprlang::FLOAT |
The height of the linear overlay in logical pixels | 300.f |
linear:scroll_speed |
Hyprlang::FLOAT |
Scroll speed modifier. Set negative to flip direction | 1.f |
