Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JeanSchoeller/iio-hyprland
Listen iio-sensor-proxy and auto change Hyprland output orientation
https://github.com/JeanSchoeller/iio-hyprland
Last synced: 10 days ago
JSON representation
Listen iio-sensor-proxy and auto change Hyprland output orientation
- Host: GitHub
- URL: https://github.com/JeanSchoeller/iio-hyprland
- Owner: JeanSchoeller
- License: gpl-3.0
- Fork: true (okeri/iio-sway)
- Created: 2023-02-21T16:46:39.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-03T11:44:32.000Z (13 days ago)
- Last Synced: 2024-06-03T13:47:52.403Z (13 days ago)
- Language: C
- Size: 48.8 KB
- Stars: 30
- Watchers: 0
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-hyprland - iio-hyprland - sensor-proxy and auto change Hyprland output orientation) (Tools / Display)
README
# iio-hyprland
A fork of okeri/iio-sway for HyprlandListens to iio-sensor-proxy and automatically changes Hyprland output orientation
## Installing
:warning: Make sure [iio-sensor-proxy](https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/) running :warning:
### Arch linux
`yay iio-hyprland-git`
`paru iio-hyprland-git`
### Nix/NixOS linux
To install localy
```sh
nix profile install github:JeanSchoeller/iio-hyprland
```If you are using flakes to setup your system :
```nix
{
inputs.iio-hyprland.url = "github:JeanSchoeller/iio-hyprland";
outputs = {...}@inputs:{};
}
```And add it to where you defined your packages :
```nix
{inputs, pkgs, ...}:{
# ...
environment.systemPackages = with pkgs; [
inputs.iio-hyprland.packages.${pkgs.system}.default
]
# ...
}
```### Build from scratch
```
git clone https://github.com/JeanSchoeller/iio-hyprlandcd iio-hyprland
sudo make install
```#### Uninstalling
```
cd iio-hyprlandsudo make uninstall
```## Running
`iio-hyprland [monitor to rotate, default=eDP-1]`, run `hyprctl monitors` to list available outputs.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.