Skip to content

bottlebrushes/hyprspace-swipe

Repository files navigation

hyprspace workspace switching with trackpad swipes

hyprspace-swipe detects x-fingered(defaults to 3) swipes on your trackpad and correspondingly switches between HyprSpace workspaces.

Fork of aerospace-swipe modified to work with HyprSpace's socket path.

features

  • fast swipe detection and forwarding to hyprspace (uses hyprspace server's socket instead of cli)
  • works with any number of fingers (default is 3, supports multiple finger counts e.g. [3, 4])
  • skips empty workspaces (if enabled in config)
  • ignores your palm if it is resting on the trackpad
  • haptics on swipe (this is off by default)
  • customizable swipe directions (natural or inverted)
  • swipe will wrap around workspaces (ex 1-9 workspaces, swipe right from 9 will go to 1)
  • utilizes yyjson for performant json ser/de

configuration

config file is optional and only needed if you want to change the default settings(default settings are shown in the example below)

to restart after changing the config file, run make restart(this just unloads and reloads the launch agent)

// ~/.config/hyprspace-swipe/config.json
{
  "haptic": false,
  "natural_swipe": false,
  "wrap_around": true,
  "skip_empty": true,
  "fingers": 3          // or use an array: [3, 4] to support both 3 and 4 finger swipes
}

installation

manual

git clone https://github.com/bettercoderthanyou/hyprspace-swipe.git
cd hyprspace-swipe

make install # installs a launchd service

uninstallation

manual

make uninstall

About

HyprSpace workspace switching with trackpad swipes (fork of aerospace-swipe)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages