You are not logged in.
I became curious today and decided to check out bspwm, only to run into a series of small problems. Even though I can start the session, use all the keybindings, etc., the GTK+ theme is not set even though it is set in the dconf database (it's using Adwaita with dconf-editor and Raleigh with Chromium), and the example dzen2 panel is not starting.
Related packages installed: bspwm-git, sxhkd-git, xtitle-git, sutils-git, dzen2-bskv-git, txtw-git, sres-git, xwinfo-git.
Files:
~/.config/bspwm/bspwmrc
#! /bin/sh
bspc monitor -d I II III IV V VI VII VIII IX X
bspc config border_width 2
bspc config window_gap 12
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
panel dzen2 &
gsettings set org.gnome.desktop.interface gtk-theme "Numix"
gsettings set org.gnome.desktop.wm.preferences theme "Numix"~/.config/bspwm/scripts/panel (*vanilla*)
#! /bin/sh
if [ $(pgrep -cx panel) -gt 1 ] ; then
printf "%s\n" "The panel is already running." >&2
exit 1
fi
trap 'trap - TERM; kill 0' INT TERM QUIT EXIT
flavor=${1:-bar}
[ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO"
mkfifo "$PANEL_FIFO"
bspc config top_padding $PANEL_HEIGHT
bspc control --subscribe > "$PANEL_FIFO" &
xtitle -sf 'T%s' > "$PANEL_FIFO" &
clock -sf 'S%a %H:%M' > "$PANEL_FIFO" &
case "$flavor" in
bar)
cat "$PANEL_FIFO" | panel_bar | bar &
;;
dzen2)
. panel_colors
FONT_FAMILY='DejaVu Sans'
FONT_SIZE=11
cat "$PANEL_FIFO" | panel_dzen2 -f "$FONT_FAMILY" -s "$FONT_SIZE" | dzen2 -h $PANEL_HEIGHT -dock -ta l -title-name panel -fn "${FONT_FAMILY}:pixelsize=${FONT_SIZE}" -fg "$COLOR_FOREGROUND" -bg "$COLOR_BACKGROUND" &
;;
esac
wait~/.config/bspwm/scripts/panel_dzen2 (*vanilla*)
#! /bin/sh
#
# Example panel for dzen2
font_family='sans-serif'
font_size=11
. panel_colors
adaptive_centering=0
screen_width=$(sres -W)
NORMIFS=$IFS
FIELDIFS=':'
PADDING=' '
while getopts 'af:s:' opt ; do
case "$opt" in
a)
adaptive_centering=1
;;
f)
font_family=$OPTARG
;;
s)
font_size=$OPTARG
;;
esac
done
shift $((OPTIND - 1))
while read -r line ; do
case $line in
S*)
# clock output
sys_infos="^fg($COLOR_STATUS_FG)^bg($COLOR_STATUS_BG)${PADDING}${line#?}${PADDING}^fg()^bg()${PADDING}"
;;
T*)
# xtitle output
title="^fg($COLOR_TITLE_FG)^bg($COLOR_TITLE_BG)${PADDING}${line#?}${PADDING}^fg()^bg()"
;;
W*)
# bspwm internal state
wm_infos="$PADDING"
IFS=$FIELDIFS
set -- ${line#?}
while [ $# -gt 0 ] ; do
item=$1
case $item in
[OoFfUu]*)
# desktops
name=${item#?}
case $item in
O*)
# focused occupied desktop
FG=$COLOR_FOCUSED_OCCUPIED_FG
BG=$COLOR_FOCUSED_OCCUPIED_BG
;;
F*)
# focused free desktop
FG=$COLOR_FOCUSED_FREE_FG
BG=$COLOR_FOCUSED_FREE_BG
;;
U*)
# focused urgent desktop
FG=$COLOR_FOCUSED_URGENT_FG
BG=$COLOR_FOCUSED_URGENT_BG
;;
o*)
# occupied desktop
FG=$COLOR_OCUPPIED_FG
BG=$COLOR_OCUPPIED_BG
;;
f*)
# free desktop
FG=$COLOR_FREE_FG
BG=$COLOR_FREE_BG
;;
u*)
# urgent desktop
FG=$COLOR_URGENT_FG
BG=$COLOR_URGENT_BG
;;
esac
wm_infos="${wm_infos}^fg(${FG})^bg(${BG})^ca(1, bspc desktop -f ${name})^ca(2, bspc window -d ${name})${PADDING}${name}${PADDING}^ca()^ca()"
;;
L*)
# layout
layout=$(printf "%s" "${item#?}" | sed 's/^\(.\).*/\U\1/')
wm_infos="${wm_infos}^fg()^bg()${PADDING}${PADDING}^fg($COLOR_LAYOUT_FG)^bg($COLOR_LAYOUT_BG)^ca(1, bspc desktop -l next)${PADDING}$layout${PADDING}^ca()"
;;
esac
shift
done
IFS=$NORMIFS
;;
esac
set -- $(printf '%s\0%s\0%s' "$wm_infos" "$title" "$sys_infos" | sed 's/\^[a-z]\+([^)]*)//g' | xargs -0 txtw -f "$font_family" -s "$font_size")
left_width=$1
center_width=$2
right_width=$3
left_indent=0
right_indent=$((screen_width - right_width))
available_center=$((screen_width - (left_width + right_width)))
if [ $available_center -lt $center_width ] ; then
center_indent=$((left_indent + left_width))
else
if [ $adaptive_centering -eq 1 ] ; then
center_indent=$((left_width + (available_center - center_width) / 2))
else
center_indent=$(( (screen_width - center_width) / 2 ))
fi
fi
printf "%s\n" "^pa($center_indent)$title^pa($left_indent)$wm_infos^pa($right_indent)$sys_infos"
done/usr/bin/bspwm-session
sxhkd &
exec bspwm/usr/share/xsessions/bspwm.desktop
[Desktop Entry]
Encoding=UTF-8
Name=bspwm
Comment=Launch a bspwm session
Exec=/usr/bin/bspwm-session
Type=XSession/etc/profile (excerpt)
export PANEL_FIFO="/tmp/panel-fifo"
export PATH=$PATH:/home/dashie/.config/bspwm/scripts
export XDG_CONFIG_HOME="/home/dashie/.config"
export BSPWM_SOCKET="/tmp/bspwm-socket"Thanks in advance.
[Edit: did some tweaking, got it fixed, woop!]
Last edited by rainbowdashc (2013-11-28 19:50:31)
Offline