Solved bspwm problem

damfreebsd

Member

Reaction score: 3
Messages: 45

EDIT: i I changed #! /bin/sh to /usr/bin/env tcsh this is my second day with free bsd FreeBSD, I installed it yesterday but I didn't know it has tcsh(1) instead of bash(1), I don't know if this did the trick but now x11-wm/bspwm works as it should.




Hi,

I installed bspwm but the problem is that I can not change desktops because I have only one. If I type in the terminal bspc monitor -d I II III IV V VI VII VIII IX X it works normally and I can change desktops that's very strange. Thanks a lot!

Here is my bspwmrc file

Code:
#! /bin/sh

bspc config border_width  2
bspc config window_gap  2

bspc config split_ratio  0.52
bspc config borderless_monocle  true
bspc config gapless_monocle  true
bspc config focus_by_distance  true

bspc monitor -d I II III IV V VI VII VIII IX X

bspc rule -a Gimp desktop=^8 follow=on floating=on
bspc rule -a Chromium desktop=^2
bspc rule -a mplayer2 floating=on
bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off
feh --bg-scale /home/dam2/wallpapers/411386.jpg
conky

and here my sxhkdrc


Code:
#
# bspwm hotkeys
#

alt + alt + Escape
    bspc quit

alt + shift + q
    bspc window -c

alt + t
    bspc desktop -l next

alt + b
    bspc desktop -B

alt + {s,f}
    bspc window -t {floating,fullscreen}

alt + {grave,Tab}
    bspc {window,desktop} -f last

alt + apostrophe
    bspc window -s last

alt + {o,i}
    bspc control --record-history off; \
    bspc window {older,newer} -f; \
    bspc control --record-history on

alt + y
    bspc window -w last.manual

alt + m
    bspc window -s biggest

alt + {_,shift + }{Left,Down,Up,Right}
    bspc window -{f,s} {left,down,up,right}

alt + {_,shift + }c
    bspc window -f {next,prev}

alt + {comma,period}
    bspc desktop -C {backward,forward}

alt + bracket{left,right}
    bspc desktop -f {prev,next}

alt + ctrl + {Left,Down,Up,Right}
    bspc window -p {left,down,up,right}

alt + ctrl + {_,shift + }space
    bspc {window -p cancel,desktop -c}

control + shift {Left,Down,Up,Right}
    bspc window -e {left -10,down +10,up -10,right +10}

super + alt + shift + {Left,Right,Up,Down}
    bspc window -e {right -10,up +10,down -10,left +10}

alt + ctrl + {1-9}
    bspc window -r 0.{1-9}

alt + {_,shift + }{1-9,0}
    bspc {desktop -f,window -d} ^{1-9,10}

~button1
    bspc pointer -g focus

alt + button{1-3}
    bspc pointer -g {move,resize_side,resize_corner}

alt + !button{1-3}
    bspc pointer -t %i %i

alt + @button{1-3}
    bspc pointer -u

# Resize nodes
control + {Right,Left}
    S={+,-}; \
    bspc window -e left $\{S\}20 || \
    bspc window -e right $\{S\}20
control + {Down,Up}
    S={+,-}; \
    bspc window -e down $\{S\}20 || \
    bspc window -e up $\{S\}20

# Change desktop padding
alt + {_, shift} + bracketright
    bspc config -d focused right_padding $((`bspc config -d focused right_padding` {+,-} 20 ))

alt + {_, shift} + bracketleft
    bspc config -d focused left_padding $((`bspc config -d focused left_padding` {+,-} 20 ))

ctrl + {_, shift} + bracketright
    bspc config -d focused bottom_padding $((`bspc config -d focused bottom_padding` {+,-} 20 ))

ctrl + {_, shift} + bracketleft
    bspc config -d focused top_padding $((`bspc config -d focused top_padding` {+,-} 20 ))

# Change window gap
alt + {F11,F12}
    bspc config -d focused window_gap $((`bspc config -d focused window_gap` {+,-} 2 ))

# wm independent hotkeys

alt + Return
    urxvt

alt + d
    j4-dmenu-desktop


alt + v
        urxvt -e vifm

alt + x
    cb-exit

Print
    xfce4-screenshooter

# make sxhkd reload its configuration files:
super + Escape
    pkill -USR1 -x sxhkd

alt + Escape
    pkill -USR1 -x sxhkd
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,298
Messages: 38,811

EDIT: i I changed #! /bin/sh to /usr/bin/env tcsh
I very much doubt this is the solution. Both shells are quite different and have a different syntax. You can't simply switch one for the other. In your case it didn't matter as the shell script isn't complex and doesn't use anything that's depending on the shell's syntax.
 

uzsolt

Well-Known Member

Reaction score: 52
Messages: 270

I installed bspwm but the problem is that I can not change desktops because I have only one. If I type in the terminal bspc monitor -d I II III IV V VI VII VIII IX X it works normally and I can change desktops that's very strange. Thanks a lot!
Sorry but I don't understand what is your problem. What is "strange"?
 

notarobot

New Member

Reaction score: 2
Messages: 19

For anyone who encounters this problem in the future: you need to make ~/.config/bspwm/bspwmrc file executable
chmod +x bspwmrc
 
Top