A simple TUI to manage display settings for Hyprland.
Built with Rust and the crossterm and ratatui libraries, it provides a user-friendly interface to control your display configurations.
- enable/disable display
- set display position
- set display resolution
- set display scale
- Hyprland
- Hyprctl
- wlr-randr
- Nerd Font
- Rust
- Cargo
-
Clone the repository and build the project:
git clone https://github.com/otto-bus-dev/display-tui.git cd display-tui cargo build --release cp target/release/display-tui /usr/local/bin/ # or your preferred location
-
Create a display-tui configuration file or run display-tui a first time to generate the default one : The configuration file is a json file that contains the tui settings. It contains only one field
monitors_config_pathwhich is the path where display-tui will save the monitors configuration for hyprland. the default path is~/.config/hypr/hyprland/monitors.conf(the path accept shell notations).mkdir -p ~/.config/display-tui echo '{"monitors_config_path": "~/.config/hypr/hyprland/monitors.conf"}' > ~/.config/display-tui/config.json
-
Add reference to monitor configuration in your Hyprland config file: You need to add the following line to your Hyprland config file (usually located at
~/.config/hypr/hyprland.conf):source ~/.config/hypr/hyprland/monitors.conf
Here we have the default path, if you changed the
monitors_config_pathin the configuration file, you need to change it here too. -
Run the TUI and Save your configuration:
display-tui
