Skip to content

Hyprland toolbox - An abomination of various scripts and actions for Hyprland, packaged as a single Rust CLI tool.

Notifications You must be signed in to change notification settings

mxxntype/hypr-toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hypr-toolbox

An abomination of various scripts and actions for Hyprland, packaged as a single Rust CLI tool. Run the binary with --help to figure out how to use the different tools.

query - Query the compositor for information, once or subscribe-style.

Usage: hypr-toolbox query [OPTIONS] <COMMAND>
Commands:
  active-window     Get the currently focused window
  active-workspace  Get the ID of the currently focused workspace
  keyboard-layout   Get the current keyboard layout name
  workspaces        Get the list of workspaces the compositor holds

profile - Detect user actions and adapt to them on-the-fly.

The configuration for this tool lives in ${XDG_CONFIG_HOME}/hypr_toolbox/profile.json and looks like this:

{
    "output": "eDP-1",
    "default_scale": 1.5,
    "workspace_scale_map": {
        "7": 2.0,
        "10": 1.0
    },
    "xwayland_scaling_workspaces": [7]
}

Explanation: by default on every workspaces, use a monitor scale of 1.5. If the user goes to workspace 7, set the scale to 2.0 and reset to 1.5 once the user goes to any other workspace. Same for workspace 10, except set the scale to 1.0 when there. Also, while on workspace 7, disable the xwayland:force_zero_scaling option. (Useful to force some games to run at a lower resolution)

About

Hyprland toolbox - An abomination of various scripts and actions for Hyprland, packaged as a single Rust CLI tool.

Topics

Resources

Stars

Watchers

Forks