Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

diniamo/no_decorations_when_only

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No decorations when only

A Hyprland IPC extension written in Rust to remove window decorations when only one window is visible

There is currently no release cycle, so using this outside of Nix isn't ideal.

Disclaimer

This is currently broken due to:

I won't be fixing this in the future, due to the simple fact that this whole program can be replaced by 2 workspace rules:

  • workspace=w[v1] s[false], gapsin:0, gapsout:0, border:false, shadow:false, rounding:false, decorate:false
  • workspace=f[1], gapsin:0, gapsout:0, border:false, shadow:false, rounding:false, decorate:false

Usage

Nix

  1. Add the flake as an input, eg.:
no_decorations_when_only = {
    url = "github:diniamo/no_decorations_when_only";
    inputs.nixpkgs.follows = "nixpkgs";
};
  1. If you use home-manager, you can add the executable directly to exec-once, eg.:
wayland.windowManager.hyprland.settings.exec-once = {
    (lib.getExe inputs.no_decorations_when_only.packages."x86_64-linux".default)
};

Otherwise you will have to install the package, and run it with exec-once, eg.:

environment.systemPackages = [
  inputs.no_decorations_when_only.packages."x86_64-linux".default
]

Linux

  1. Clone the repository with git clone https://github.com/diniamo/no_decorations_when_only.git
  2. Run cargo build --release in the project root
  3. Run the binary (found at target/release/no_decorations_when_only) with exec-once

Known issues

  • The program will break when the Hyprland configuration is reloaded, since the event for that hasn't been added to Hyprland-rs. You can fix this by either restarting the program, or updating (going to the other state and back) your workspaces.
  • There is a crash that happens sometimes, but I have no idea how to reproduce it.

About

A Hyprland IPC extension written in Rust to remove window decorations when only one window is visible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published