GithubHelp home page GithubHelp logo

sakarie9 / hyprland-autoname-workspaces Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyprland-community/hyprland-autoname-workspaces

0.0 1.0 0.0 123 KB

Hyprland autoname workspaces πŸͺŸ

License: ISC License

Rust 93.10% Makefile 6.90%

hyprland-autoname-workspaces's Introduction

πŸͺŸ hyprland-autoname-workspaces

πŸ•ΉοΈThis is a toy for Hyprland.

This app automatically rename workspaces with icons of started applications - tested with waybar.

You have to set the config file with your prefered rules based on class and title. Regex are supported.

Install

AUR

Available as AUR package under the program name hyprland-autoname-workspaces-git. You can then use the service systemctl --user enable --now hyprland-autoname-workspaces.service.

Cargo

$ cargo install --locked hyprland-autoname-workspaces

Usage

$ hyprland-autoname-workspaces

or to dedup icon

$ hyprland-autoname-workspaces --dedup

Configuration

In the config file ~/.config/hyprland-autoname-workspaces/config.toml.

You can use regex everywhere, and its case sensitive by default

Edit the mapping of applications with class = "icon" in the [icons] part.

  • You can exclude applications in the [exclude] with class = title.

In the exclude part, the key is the window class, and the value the title. You can use "" in order to exclude window with empty title and "*" as value to match all title of a class name.

Example:

...
[exclude]
fcitx = ".*"
[Ss]team = "Friends list.*"
  • You can match on title with [title.classname] with "a word in the title" = "icons".

Example:

...
[title."(?i)kitty"]
"(?i)neomutt" = "neomutt"

No need to restart the applications then, there is an autoreload.

Hint: You can use glyphsearch and copy the unicode icon of your font for example https://glyphsearch.com/?query=book&copy=unicode

Hint: You can find hyprland class names for currently running apps using: hyprctl clients | grep -i class, or you can also use hyprland-autoname-workspaces --verbose.

Hint: Feel free to adapt and use this script to generate your config file. This is untested for the moment.

hyprland-autoname-workspaces's People

Contributors

cyrinux avatar maximbaz avatar t2hhbmek avatar kotuw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.