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

dmenu hang when called from i3blocks with -fn option #475

Open
eskalVAR opened this issue Aug 2, 2023 · 0 comments
Open

dmenu hang when called from i3blocks with -fn option #475

eskalVAR opened this issue Aug 2, 2023 · 0 comments

Comments

@eskalVAR
Copy link

eskalVAR commented Aug 2, 2023

Hello, I have a weird issue with calling dmenu from i3blocks script with -fn flag to set a font. Dmenu appears however does not respond to input nor does the rest of i3. It requires a tty switch and kill of i3 to resolve the issue. Even killing i3blocks doesn't fix the issue just leaves the bar blank but again no input registered, can't switch windows either. I can still move the mouse though but without ability to interact with windows.

Steps to reproduce:

  1. Setup an i3block:
[test_script]
interval=1
label=p 
command=test_script
  1. Setup a script ensuring it's in your path and executable:
#!/bin/bash
case $BLOCK_BUTTON in
    1) notify-send "left" ;;
    2) echo "test" | dmenu -i -p "test prompt" ;;
    3) notify-send "right" ;;

esac

echo " test script"
  1. Behavior is as expected left and right click bring up notifications, middle click brings up dmenu and result can be found
  2. Change 2) echo "test" | dmenu -i -p "test prompt" ;; to 2) echo "test" | dmenu -i -fn "monospace" -p "test prompt" ;; to add the "broken" flag.

As a side-note when running this script as persist with a signal and running pkill -SIGRTMIN+6 (signal 6) to run and display the script the button actions do not work? My understanding was that button action would cause the script to run even with interval persist.

Thanks.

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

No branches or pull requests

1 participant