Skip to content

Instantly share code, notes, and snippets.

@codybonney
Last active April 6, 2018 01:29
Show Gist options
  • Save codybonney/3fcbbc450f6ce1e22b2851f973c7537a to your computer and use it in GitHub Desktop.
Save codybonney/3fcbbc450f6ce1e22b2851f973c7537a to your computer and use it in GitHub Desktop.
#! /bin/sh
wid=$1
class=$2
# fix context menus in IntelliJ IDEA 2018.1
[[ "$class" = "jetbrains-idea" ]] && [[ $(xtitle "$wid") =~ ^win[0-9]*$ ]] && echo "manage=off";
@codybonney
Copy link
Author

Workaround for an issue where IntelliJ IDEA 2018.1 context menus are treated as new windows that get managed by bspwm

@codybonney
Copy link
Author

First, I installed xtitle

Then, I created a new external_rules file (seen above)

Then, I made it executable:
sudo chmod +x external_rules

Then, I added the following to my bspwmrc file:
bspc config external_rules_command "/home/cody/.config/bspwm/external_rules"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment