TyberiusPrime / i3-instant-layout

MIT License
35 stars 5 forks source link

Command for rofi doesn't work from key bind but works from terminal #13

Closed mauromotion closed 12 months ago

mauromotion commented 12 months ago

I'm on Arch Linux.

The command: bindsym $mod+Escape exec "i3-instant-layout --list | rofi -dmenu -i | i3-instant-layout -" works as intended from the terminal but not from the keybinding META + Esc, it gives me an empty dmenu list.

It won't work even if I put the command in a bash script and bind it in the i3 config, same behavior.

I've installed i3-auto-layout with pipx.

Any hints?

TyberiusPrime commented 12 months ago

My best crystal ball guess is that there's a difference in $PATH, and it's not finding the command. Try finding out where the 'binaries' are located with 'which i3-instant-layout', and replacing it with whatever '/<...>/i3-instant-layout' you get back.

mauromotion commented 12 months ago

Thanks, your crystal ball worked. I had to point to ~/.local/bin/i3-instant-layout.