You are not logged in.

#1 2014-08-18 19:59:06

Dragon707
Member
From: The Netherlands
Registered: 2013-06-04
Posts: 61
Website

BSPWM, Android Studio is extremly slow when it opens a popup

Hi guys!

I am a big fan of BSPWM, however, when i use Android Studio that application becomes at random times extremly slow and will freeze for around 30 seconds.
This happens mostly when it opens a popup thing..

When im on XFCE4, i dont have any issues and Android Studio runs smooth, how can is fix this and what is causing this ?


ArchLinux is Awesome

GitHub   •   Dotfiles   •   Contact me   •   DELETE...!

Offline

#2 2014-08-19 15:39:32

matchew
Member
Registered: 2013-07-22
Posts: 19

Re: BSPWM, Android Studio is extremly slow when it opens a popup

I am not familiar with andriod studio.

But is it java perhaps?

If so I and others have had troubles.

I found the following settings worked for me in my bspwmrc

#open Funny Java Things
bspc config focus_follows_pointer false
wmname LG3D

According to the DWM wiki entry Java essentially doesn't recognize BSPWM (and other WM's) so we have to fool it:

https://wiki.archlinux.org/index.php/Dw … plications

but I sometimes like my pointer to focus (essentially change active window with a mouse) and I have this little thing mapped to toggle

https://gist.github.com/matchew/a8de5c0ab939d19f0a12

#!/usr/bin/bash

##
# Purpose: toggle focus with mouse. Needs to be disabled for wonky java stuff
################

toggle=$(bspc config focus_follows_pointer | \
         awk -vtoggle="true" \
        '{ if ($1 == "true") \
        toggle="false"; \
        print toggle}')

bspc config focus_follows_pointer $toggle

Last edited by matchew (2014-08-19 15:41:02)

Offline

#3 2014-08-19 17:56:41

Dragon707
Member
From: The Netherlands
Registered: 2013-06-04
Posts: 61
Website

Re: BSPWM, Android Studio is extremly slow when it opens a popup

matchew wrote:

I am not familiar with andriod studio.

But is it java perhaps?

If so I and others have had troubles.

I found the following settings worked for me in my bspwmrc

#open Funny Java Things
bspc config focus_follows_pointer false
wmname LG3D

According to the DWM wiki entry Java essentially doesn't recognize BSPWM (and other WM's) so we have to fool it:

https://wiki.archlinux.org/index.php/Dw … plications

but I sometimes like my pointer to focus (essentially change active window with a mouse) and I have this little thing mapped to toggle

https://gist.github.com/matchew/a8de5c0ab939d19f0a12

#!/usr/bin/bash

##
# Purpose: toggle focus with mouse. Needs to be disabled for wonky java stuff
################

toggle=$(bspc config focus_follows_pointer | \
         awk -vtoggle="true" \
        '{ if ($1 == "true") \
        toggle="false"; \
        print toggle}')

bspc config focus_follows_pointer $toggle

Cool, it seems to work now! Let me test for a little longer.
Also added your snippet to my dotfiles scripts https://github.com/kevinvdburgt/dotfile … ter-toggle smile


ArchLinux is Awesome

GitHub   •   Dotfiles   •   Contact me   •   DELETE...!

Offline

#4 2014-08-19 18:48:02

matchew
Member
Registered: 2013-07-22
Posts: 19

Re: BSPWM, Android Studio is extremly slow when it opens a popup

no problem. Now if you find yourself switching often you may consider mapping it to your preferred key combination

Offline

Board footer

Powered by FluxBB