From a911186d799a0dd23417a138c0fc48f695f8b06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Wed, 11 Jun 2025 12:21:12 +0200 Subject: [PATCH] Updated README --- README.org | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/README.org b/README.org index b081033..a223b86 100644 --- a/README.org +++ b/README.org @@ -17,6 +17,27 @@ A simple program to toggle tiling and floating modes for windows in the Hyprland Let's say you switched to tiling mode. From that point on, new windows will open in tiling mode as well. Switch to floating mode again and newly opened windows will be in floating mode. +* Usage +#+BEGIN_SRC shell +./htt +#+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. + +* Ingetration with Hyprland +1. Whatever configuration path you specify, include it in your Hyprland config, like so: + ~\~/path/to/your/hyprland.conf~: + #+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 + #+END_SRC + + Or not. Do whatever you want. + * Compiling 1. Clone this repository: @@ -30,9 +51,4 @@ A simple program to toggle tiling and floating modes for windows in the Hyprland cmake --build . #+END_SRC -3. Bind the script to a key in your Hyprland config: - #+BEGIN_SRC conf - bind = $mod + t, exec, /path/to/htt - #+END_SRC - Or just [[https://typofelho.ddns.net/TypoMustakes/hyprland-toggle-tiling/releases/tag/1.0][download the release]]. \ No newline at end of file