2020-03-28 22:59:04 +01:00
|
|
|
#!/usr/bin/env bash
|
2020-03-04 03:51:39 +01:00
|
|
|
|
2021-03-29 11:08:51 +02:00
|
|
|
if [ -x "$(command -v sxhkd)" ]; then
|
2020-05-01 19:52:06 +02:00
|
|
|
sxhkd &
|
|
|
|
return_val=$?
|
|
|
|
if [ $return_val -ne 0 ]; then
|
|
|
|
echo >&2 "Couldn't fire up sxhkd: $return_val. Exiting!"
|
|
|
|
bspc quit && exit 1
|
|
|
|
fi
|
2021-03-29 11:08:51 +02:00
|
|
|
else
|
|
|
|
echo >&2 "Can't seem to find the sxhkd executable. Exiting!"
|
|
|
|
bspc quit && exit 1
|
2020-05-01 19:52:06 +02:00
|
|
|
fi
|
|
|
|
|
2021-03-29 11:08:51 +02:00
|
|
|
if [ ! -x "$(command -v alacritty)" ]; then
|
|
|
|
if [ ! -x "$(command -v st)" ]; then
|
|
|
|
echo >&2 "Can't seem to find neither the st nor the alacritty executable. Exiting!"
|
2021-03-29 09:38:12 +02:00
|
|
|
bspc quit && exit 1
|
|
|
|
fi
|
2020-05-01 19:52:06 +02:00
|
|
|
fi
|
2020-03-04 03:51:39 +01:00
|
|
|
|
|
|
|
for monitor in $(bspc query -M); do
|
2020-03-21 14:35:50 +01:00
|
|
|
bspc monitor $monitor -d \~
|
2020-03-04 03:51:39 +01:00
|
|
|
done
|
|
|
|
|
2020-03-21 20:09:04 +01:00
|
|
|
bspc config border_width 2
|
|
|
|
bspc config window_gap 0
|
|
|
|
bspc config top_padding 20
|
|
|
|
bspc config bottom_padding 0
|
|
|
|
bspc config left_padding 0
|
|
|
|
bspc config right_padding 0
|
|
|
|
bspc config single_monocle false
|
|
|
|
bspc config split_ratio 0.50
|
|
|
|
bspc config borderless_monocle true
|
|
|
|
bspc config gapless_monocle true
|
2020-09-24 13:17:10 +02:00
|
|
|
bspc config focus_follows_pointer false
|
2020-03-21 20:09:04 +01:00
|
|
|
bspc config remove_disabled_monitors true
|
|
|
|
bspc config merge_overlapping_monitors true
|
2020-03-04 03:51:39 +01:00
|
|
|
bspc config pointer_modifier mod1
|
|
|
|
bspc config pointer_action1 move
|
|
|
|
bspc config pointer_action2 resize_side
|
|
|
|
bspc config pointer_action3 resize_corner
|
|
|
|
|
2020-03-22 02:17:11 +01:00
|
|
|
bspc config normal_border_color "#44475a"
|
2020-03-21 20:09:04 +01:00
|
|
|
bspc config active_border_color "#bd93f9"
|
2020-03-22 03:09:29 +01:00
|
|
|
bspc config focused_border_color "#ff79c6"
|
2020-03-22 02:17:11 +01:00
|
|
|
bspc config presel_feedback_color "#6272a4"
|
2020-03-04 03:51:39 +01:00
|
|
|
|
|
|
|
bspc rule -a Screenkey manage=off
|
2020-03-05 01:50:57 +01:00
|
|
|
bspc rule -a Zathura state=tiled manage=on
|
2020-03-04 03:51:39 +01:00
|
|
|
|
2021-03-29 11:08:51 +02:00
|
|
|
if [ -x "$(command -v feh)" ]; then
|
|
|
|
feh --bg-fill "$HOME/Wallpapers/arch_dracula.png"
|
2020-05-01 19:52:06 +02:00
|
|
|
else
|
2021-03-29 11:08:51 +02:00
|
|
|
if [ -x "$(command -v nitrogen)" ]; then
|
|
|
|
nitrogen --restore &
|
|
|
|
return_val=$?
|
|
|
|
if [ $return_val -ne 0 ]; then
|
|
|
|
echo >&2 "Couldn't fire up nitrogen: $return_val"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo >&2 "Can't seem to find neither the feh nor the nitrogen executable"
|
2020-05-01 19:52:06 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2022-09-06 16:29:06 +02:00
|
|
|
if [ -x "$(command -v /usr/bin/lxqt-policykit-agent)" ]; then
|
|
|
|
/usr/bin/lxqt-policykit-agent &
|
2020-05-01 19:52:06 +02:00
|
|
|
return_val=$?
|
|
|
|
if [ $return_val -ne 0 ]; then
|
2022-09-06 16:29:06 +02:00
|
|
|
echo >&2 "Couldn't fire up lxqt-policykit: $return_val"
|
2020-05-01 19:52:06 +02:00
|
|
|
fi
|
2021-03-29 11:08:51 +02:00
|
|
|
else
|
2022-09-06 16:29:06 +02:00
|
|
|
echo >&2 "Can't seem to find the /usr/bin/lxqt-policykit-agent executable"
|
2020-05-01 19:52:06 +02:00
|
|
|
fi
|
2020-03-04 04:35:42 +01:00
|
|
|
|
2021-03-29 11:08:51 +02:00
|
|
|
if [ -x "$(command -v polybar)" ]; then
|
2020-05-01 19:52:06 +02:00
|
|
|
$HOME/.config/polybar/launch
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo >&2 "Couldn't fire up polybar: $?"
|
|
|
|
fi
|
2021-03-29 11:08:51 +02:00
|
|
|
else
|
|
|
|
echo >&2 "Can't seem to find the polybar executable. Starting barless!"
|
|
|
|
bspc config top_padding 0
|
2020-05-01 19:52:06 +02:00
|
|
|
fi
|