Skip to content

JeanSchoeller/iio-hyprland

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iio-hyprland

A fork of okeri/iio-sway for Hyprland

Listens to iio-sensor-proxy and automatically changes Hyprland output orientation

Installing

⚠️ Make sure iio-sensor-proxy running ⚠️

Arch linux

yay iio-hyprland-git

paru iio-hyprland-git

Nix/NixOS linux

To install localy

nix profile install github:JeanSchoeller/iio-hyprland

If you are using flakes to setup your system :

{
  inputs.iio-hyprland.url = "github:JeanSchoeller/iio-hyprland";
  outputs = {...}@inputs:{};
}

And add it to where you defined your packages :

{inputs, pkgs, ...}:{
  # ...
  environment.systemPackages = with pkgs; [
    inputs.iio-hyprland.packages.${pkgs.system}.default
  ]
  # ...
}

Build from scratch

git clone https://github.com/JeanSchoeller/iio-hyprland

cd iio-hyprland

sudo make install

Uninstalling

cd iio-hyprland

sudo make uninstall

Running

iio-hyprland [master window location] [monitor to rotate, default=eDP-1], run hyprctl monitors to list available outputs. Use either --left-master or --right-master to set the master window location to the left/top or right/bottom, leave blank to not adjust window layout on rotate.

Add exec-once = iio-hyprland to ~/.config/hypr/hyprland.conf

Some users reported that specifying the monitor in hyprland.conf could be necessary. For example, on Surface Pro:

monitor=eDP-1,preferred,auto,2,transform,0

Touch rotation support

Should automatically rotate all Tablets and Touch Devices from hyprctl devices. Thank you to Desktop31 for fetching the hyprctl devices output.

Collaborators

ForgotMyPasswd

About

Listen iio-sensor-proxy and auto change Hyprland output orientation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 83.4%
  • Nix 12.2%
  • Makefile 2.6%
  • Meson 1.8%