Coder Social home page Coder Social logo

Comments (2)

skogler avatar skogler commented on July 18, 2024

I have the same kind of problem. The issue is that you cannot assign a custom ID or so by matching a monitor description. If that were possible you could use the assigned ID in other rules. Maybe that would be a nice feature request?

My workaround for this is to run this bash script manually:

# puts workspaces on alternating monitors
# if you have two monitors:
#  m1: 1 3 5 7 9
#  m2: 2 4 6 8 10
# if you have three:
#  m1: 1 4 7 10
#  m2: 2 5 8
#  m3: 3 6 9
arrange_workspaces() {
    mapfile -t monitors < <( hyprctl monitors -j | jq -r '.[].name' )
    for ((ws = 1; ws <= 10; ws++)); do
        monitor="${monitors[(ws - 1) % ${#monitors[@]}]}"
        hyprctl dispatch moveworkspacetomonitor "${ws}" "${monitor}" > /dev/null
        hyprctl keyword workspace "${ws},monitor:${monitor}" > /dev/null
    done
}

Not really convenient, but does what I want.

from hyprland-wiki.

MightyPlaza avatar MightyPlaza commented on July 18, 2024

you can now use monitor:desc: inside workspace rules on v0.27
should also be added in the wiki

from hyprland-wiki.

Related Issues (20)

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.