Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 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
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants