Skip to content

river/tags: Allow river tags to be styled based on monitor focus#3436

Open
lilly-lizard wants to merge 17 commits intoAlexays:masterfrom
lilly-lizard:river-tags-monitor-focus
Open

river/tags: Allow river tags to be styled based on monitor focus#3436
lilly-lizard wants to merge 17 commits intoAlexays:masterfrom
lilly-lizard:river-tags-monitor-focus

Conversation

@lilly-lizard
Copy link
Copy Markdown

Adds the output class to the river tags module when a river output (i.e. monitor) is focused. This allows the tags to be styled differently depending on wherever the monitor is focused or not so the user can identify which monitor is in focus.

Example style.css

#tags button {
        color: @grey;
        padding-left: 30px;
        padding-right: 30px;
}
#tags button.occupied {
        color: @foreground;
        transition: none;
}
/* tag is focused */
#tags button.focused {
        color: @foreground;
        background: @shaded;
        border-bottom: 2px solid transparent;
        border-top: 2px solid transparent;
}
/* tag is focused and output is focused */
#tags button.focused.output {
        border-bottom: 2px solid @underline;
        border-top: 2px solid transparent;
}

@lilly-lizard lilly-lizard changed the title Allow river tags to be styled based on monitor focus river/tags: Allow river tags to be styled based on monitor focus Jul 13, 2024
@Alexays Alexays force-pushed the master branch 2 times, most recently from d623a89 to a4d31ab Compare September 13, 2024 07:40
@lilly-lizard
Copy link
Copy Markdown
Author

@Alexays I've been testing this for the past 2 years and it's been working perfectly. I have also added the same functionality for dwl/mango in the latest commit. This is very useful for multi-monitor setups where you want to see which monitor (output) is being focused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant