Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Provide a command line flag to set additional dmenu parameters #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hashworks
Copy link

For example, this allows one to provide additional rofi opts:

tessen -d rofi --dopts="-window-title=test -monitor 0"

My use case is the following: On sway, rofi isn't able to determine the focused monitor. Thus, I need to provide that information dynamically:

rofi -show run -monitor "$(swaymsg -t get_outputs | jq '.[] | select(.focused) | select(.id) | .name')"

With this PR, I can do the same with tessen:

tessen -d rofi --dopts "-monitor $(swaymsg -t get_outputs | jq '.[] | select(.focused) | select(.id) | .name')"

@hashworks hashworks force-pushed the feature/dopts-parameter branch from 9bc8df6 to 8a9b2d0 Compare October 5, 2023 20:45
@hashworks hashworks force-pushed the feature/dopts-parameter branch 2 times, most recently from 2f87c93 to 86e2d99 Compare October 16, 2023 12:21
For example, this allows one to provide additional rofi opts:
```
tessen -d rofi --dopts="-monitor 0"
```
@hashworks hashworks force-pushed the feature/dopts-parameter branch from 86e2d99 to c173f85 Compare October 16, 2023 12:24
@hashworks
Copy link
Author

hashworks commented Oct 16, 2023

Fixed the format issue with shfmt -w -s -i 2 -bn -ci -sr tessen.

@ayushnix ayushnix self-assigned this Oct 19, 2023
@ayushnix ayushnix added the enhancement New feature or request label Oct 19, 2023
@ayushnix ayushnix added this to the v2.3.0 milestone Dec 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants