From 06fa1112f320e0cc74521685534d8fb3cf221cc6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Dec 2017 14:34:34 +0100 Subject: Clean up bspwmrc --- bspwm/.config/bspwm/bspwmrc | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) (limited to 'bspwm') diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index 1485f63..908904b 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -1,31 +1,30 @@ -#! /bin/sh +#!/bin/sh -export PANEL_FIFO=/home/drobilla/bspwmpanel.fifo -export PANEL_HEIGHT=48 -export PANEL_FONT="DejaVu Sans Mono-16" -export TRAY_HEIGHT=28 -export SCREEN_WIDTH="$(xrandr | grep '*' | sed 's/ *\([0-9]*\)x.*/\1/')" -export TRAY_X="$(echo "$SCREEN_WIDTH - 300" | bc)" -export TRAY_Y=4 +export PANEL_PAD=18 +export PANEL_NAME="Top Expanded Edge Panel" -bspc config border_width 2 -bspc config window_gap 12 - -bspc config split_ratio 0.50 -bspc config borderless_monocle true -bspc config gapless_monocle true -bspc config focus_by_distance true - -bspc config normal_border_color "#2D3232" -bspc config focused_border_color "#6F7372" -bspc config top_padding $PANEL_HEIGHT +bspc config border_width 2 +bspc config window_gap 12 +bspc config split_ratio 0.50 +bspc config borderless_monocle true +bspc config gapless_monocle false +bspc config normal_border_color "#2D3232" +bspc config focused_border_color "#6F7372" +bspc config top_padding $PANEL_PAD bspc config focus_follows_pointer true bspc monitor -d 1 2 3 4 5 6 7 8 9 -hsetroot -solid "#000" +# Make idempotent +killall sxhkd +killall xdotool + +# Load keybindings xmodmap ~/.Xmodmap sxhkd & -#~/.config/bspwm/panel & -#stalonetray -bg "#000" --geometry "1x1+$TRAY_X+$TRAY_Y" --grow-gravity E -i $TRAY_HEIGHT & -#xdotool search --classname stalonetray windowraise + +# Show panel when mouse is on top edge +xdotool behave_screen_edge --delay 250 --quiesce 250 top search --name "Top Expanded Edge Panel" windowmap exec "bspc config top_padding $PANEL_PAD" & + +# Hide panel when mouse is on bottom edge +xdotool behave_screen_edge --delay 250 --quiesce 250 bottom search --name "Top Expanded Edge Panel" windowunmap exec bspc config top_padding 0 & -- cgit v1.2.1