Files
hyprland-toggle-tiling/README.org

58 lines
1.9 KiB
Org Mode
Raw Normal View History

2025-06-10 17:10:32 +02:00
#+TITLE: hyprland-toggle-tiling
#+AUTHOR: Your Name
#+OPTIONS: toc:nil
* hyprland-toggle-tiling
2025-06-11 09:55:07 +02:00
A simple program to toggle tiling and floating modes for windows in the Hyprland Wayland compositor.
2025-06-10 17:10:32 +02:00
[[./demo.gif]]
* Features
- Quickly switch between tiling and floating modes for all windows on the active workspace.
2025-06-11 09:55:07 +02:00
- After switching, the program creates a hyprland config file to respect the new windowing mode.
2025-06-11 12:31:33 +02:00
2025-06-11 09:55:07 +02:00
Let's say you switched to tiling mode. From that point on, new windows will open in tiling mode as well.
2025-06-11 12:31:33 +02:00
2025-06-11 09:55:07 +02:00
Switch to floating mode again and newly opened windows will be in floating mode.
2025-06-11 12:31:33 +02:00
- Floating/tiling window rules are isolated among workspaces. You can set one workspace to be floating, and all the rest to tiling for example.
- Useful for workflows that require both tiling and floating window management.
- Lightweight and easy to integrate with your Hyprland setup.
2025-06-10 17:10:32 +02:00
2025-06-11 12:21:12 +02:00
* Usage
#+BEGIN_SRC shell
./htt <config-file-path>
#+END_SRC
- If the specified configuration file does not exist, it will be created.
- If the configuration contains existing rules, this should still work, but your existing configuration will probably get a bit messy, syntax-wise. I advise against it.
2025-06-11 12:23:08 +02:00
* Integration with Hyprland
2025-06-11 12:21:12 +02:00
1. Whatever configuration path you specify, include it in your Hyprland config, like so:
2025-06-11 12:23:44 +02:00
~~/path/to/your/hyprland.conf~:
2025-06-11 12:21:12 +02:00
#+BEGIN_SRC conf
source = ~/path/to/specified/config/file.conf
#+END_SRC
2. Bind the script to a key in your Hyprland config:
#+BEGIN_SRC conf
bind = $mod + t, exec, /path/to/htt <config-file-path>
#+END_SRC
Or not. Do whatever you want.
2025-06-10 17:10:32 +02:00
* Compiling
1. Clone this repository:
#+BEGIN_SRC shell
git clone https://typofelho.ddns.net/TypoMustakes/hyprland-toggle-tiling.git
#+END_SRC
2. Build the projects:
#+BEGIN_SRC shell
cd build/
cmake --build .
#+END_SRC
2025-06-11 12:31:33 +02:00
Or just [[https://typofelho.ddns.net/TypoMustakes/hyprland-toggle-tiling/releases/tag/1.0][download the release]].