dotfiles/.config/bspwm/bspwmrc

79 lines
1.8 KiB
Bash
Executable File

#!/usr/bin/env sh
# ,,
# || ;
# ||/|, -_-_ _-_, \\/\/\ \\/\\/\\ ,._-_ _-_
# || || || \\ ||_. || | | || || || || ||
# || |' || || ~ || || | | || || || || ||
# \\/ ||-' ,-_- \\/\\/ \\ \\ \\ \\, \\,/
# |/
# '
pgrep -x sxhkd > /dev/null || sxhkd &
#ibus-daemon -drxR
# mouse setup
imwheel --kill --buttons "45"
xsetroot -cursor_name left_ptr
# monitor setup
bspc monitor HDMI-1 -d I II III IV V
bspc monitor DVI-D-2 -d VI VII VIII IX X
# pywal
if [ ! -f /tmp/startup.lock ]; then
wal -i ~/Pictures/Wallpapers/Pywal &
pid=%%
fi
bspc config border_width 3
bspc config window_gap 15
bspc config top_padding 45
bspc config split_ratio 0.5
bspc config borderless_monocle false
bspc config gapless_monocle false
# colors
wait $pid && source ~/.cache/wal/colors.sh
bspc config normal_border_color $color0
bspc config focused_border_color $color1
bspc config active_border_color $color1
bspc config urgent_border_color $color1
bspc config presel_feedback_color $color1
# rules
bspc rule -a Gimp state=tiled follow=on
bspc rule -a discord -o node=@^1:^1:/1 desktop='I' follow=off focus=off
bspc rule -a Element -o node=@^1:^1:/2
bspc rule -a TelegramDesktop desktop='II'
bspc rule -a firefox-nightly desktop='VI' state=tiled follow=off
# keymap
setxkbmap -layout us,ru -option ctrl:nocaps,compose:ralt
# startup
picom --experimental-backends &
polybar right &
polybar left &
dunst &
if [ ! -f /tmp/startup.lock ]; then
touch /tmp/startup.lock
redshift &
clipmenud &
telegram-desktop &
firefox-nightly &
discord-canary &
element-desktop &
spotify &
sleep 6
wmctrl -r Spotify -t 2
fi