JopStro / bspswallow

dwm-like swallowing for bspwm
MIT License
126 stars 12 forks source link

ranger #16

Open sudo-ghost opened 3 years ago

sudo-ghost commented 3 years ago

is there a way to get ranger to swallow without using the alternative version or is it just a matter of making ranger swallow on its own separate from bspswallow

JopStro commented 3 years ago

if you just want programs from ranger to swallow the terminal you should be able to just put "ranger" in the terminals file, but I'm not sure how ranger hanldes file opening so it may require a bit of hacking. But it should work fine because the current version prioritises checking the grandparent proceses command name over the previously focused window class (letting/requiring the definition of file managers in the terminal file in most cases). I don't reccomend the alternative version as it is pretty depreciated and uses the old whitelist system from when I first made the script. Edit: just refreshed my memory by looking at the script and you should be able to get the effect by commenting out the line that greps the terminals file for the previously focused window class and then adding ranger to the terminals file, without any terminal names (providing ranger does file opening through an opener like xdg-open or nuke (making ranger a grandparent process to the swallowing window)).