baskerville / bspwm

A tiling window manager based on binary space partitioning
BSD 2-Clause "Simplified" License
7.71k stars 416 forks source link

bspwm running under XQuartz in macOS #838

Open sohaeb opened 6 years ago

sohaeb commented 6 years ago

Anyone was able to install bspwm and running it under XQuartz ?

I checked some tutorials and pages but they were either outdated or not fully explaining the proceudre.

Here is a link to the tutorial http://web.archive.org/web/20160824175039/http://cmacr.ae/blog/2015/05/04/seamless-x11-on-osx/

Here is another one I found:

  1. Install XQuartz & Homebrew (yeah, no pkgin guide yet....)
  2. brew tap baskerville/formulae && brew install --HEAD bspwm sxhkd
  3. put this in your .xinitrc : cd $HOME source $HOME/.profile export LANG="en_US.UTF-8" exec >>~/.xsession-errors 2>&1 sxhkd -c $HOME/.config/sxhkd/sxhkdrc & exec bspwm -c $HOME/.config/bspwm/bspwmrc
  4. start Xquartz profit?`]

The problem with the 2nd method, is that XQuartz will run and crash in infinite loop. Removing the .xinitrc file will stop XQuartz from doing that.

marco-silva0000 commented 4 years ago

any luck?

sohaeb commented 4 years ago

I followed the steps in the original thread but still couldn't make it work.

Regards, Suhaib Abdulghani

On Wed, Dec 11, 2019 at 5:38 AM Marco Silva notifications@github.com wrote:

any luck?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/baskerville/bspwm/issues/838?email_source=notifications&email_token=AASESZSGIWSM37V4BX3YX5LQYC7JNA5CNFSM4FSSJNR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGSVATA#issuecomment-564482124, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASESZUITAIGTB7ZUQRQDETQYC7JNANCNFSM4FSSJNRQ .

Amar1729 commented 3 years ago

Weird - I used to run bspwm under XQuartz in Mac ~3 years ago and stopped because of this very problem. However, I just tried it out again with the following configs:

# ~/.xinitrc
source $HOME/.profile

export LANG="en_US.UTF-8"

exec >>~/.xsession-errors 2>&1

xterm &

exec bspwm -c $HOME/.config/bspwm/bspwmrc
# ~/.config/bspwm/bspwmrc
#!/bin/sh

PATH="/usr/local/bin:$PATH"

sxhkd -c ~/.config/sxhkd/sxhkdrc

bspc config focused_border_color        "#fbf1c7"
bspc config active_border_color         "#ebdbb2"
bspc config presel_feedback_color       "#fb4934"

bspc config border_width        2
bspc config winow_gap           10

bspc config top_padding         45
bspc config bottom_padding      15
bspc config left_padding        15
bspc config right_padding       15

bspc config split_ratio         0.50

bspc config focus_follows_pointer true

bspc config single_monocle       true
bspc config gapless_monocle      true
bspc config borderless_monocle   true

And opening XQuartz works fine. It launches an xterm session (from xinitrc) and I can do stuff from there. Have you tried looking through .xsession-errors and seeing if there's anything relevant? Or possibly reinstalling XQuartz/xterm?