From 99e26b2747af31ed1b2351abeada16c975e66b1e Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Thu, 2 Mar 2023 21:10:29 -0600 Subject: [PATCH] Working on autostart portion of bspwmrc. --- .config/bspwm/bspwmrc | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index aefa3aa..5c439eb 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -9,19 +9,40 @@ # https://github.com/baskerville/sxhkd # https://github.com/baskerville/bspwm +#### VARIABLES #### +COLORSCHEME="doom-one" + #### AUTOSTART #### sxhkd & picom & -nitrogen --restore & +killall nm-applet && nm-applet & +killall volumeicon && volumeicon & +/usr/bin/emacs --daemon & +killall conky && conky -c "$HOME"/.config/conky/xmonad/"$COLORSCHEME"-01.conkyrc polybar-bspwm & +### Select only ONE of the following four ways to set the wallpaper. +xargs xwallpaper --stretch < ~/.cache/wall & +# ~/.fehbg & +# feh --randomize --bg-fill /usr/share/backgrounds/dtos-backgrounds/* & +# nitrogen --restore & + #### MONITORS #### monitors=$(xrandr | grep " connected " | cut -f 1 -d " ") -for x in ${monitors[@]} +for x in "${monitors[@]}" do + # set the workspaces on each monitor to 1-9 bspc monitor $x -d 1 2 3 4 5 6 7 8 9 + #polybar hidden when fullscreen for vlc, youtube, mpv ... + xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_"$x") done +#polybar hidden when fullscreen for vlc, youtube, mpv ... +#find out the name of your monitor with xrandr +# xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_DisplayPort-0) +# xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_DisplayPort-1) +# xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_HDMI-A-0) + #### BSPWM configuration #### #bspc config border_radius 8 bspc config border_width 2 @@ -46,17 +67,12 @@ bspc config pointer_action2 resize_side bspc config pointer_action3 resize_corner #### BSPWM coloring #### -bspc config normal_border_color "#4c566a" -bspc config active_border_color "#1e1e1e" +bspc config normal_border_color "#4c566a" +bspc config active_border_color "#1e1e1e" bspc config focused_border_color "#5e81ac" bspc config presel_feedback_color "#5e81ac" bspc config urgent_border_color "#dd2727" -#polybar hidden when fullscreen for vlc, youtube, mpv ... -#find out the name of your monitor with xrandr -xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_DisplayPort-0) -xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_DisplayPort-1) -xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_HDMI-A-0) bspc rule -a Gimp desktop='^8' state=floating follow=on bspc rule -a Chromium desktop='^2'