This commit is contained in:
2022-01-18 01:25:46 -05:00
parent 2e1e1f38b2
commit def5ca8b9a
86 changed files with 9017 additions and 0 deletions
Executable
+82
View File
@@ -0,0 +1,82 @@
#! /bin/sh
# monitor setup
if [[ $(cat /etc/hostname) == "gojou" ]]; then
bspc monitor DP-1 -d 1 2 3 4 5 101
bspc monitor HDMI-1 -d 6 7 8 9 102
elif [[ $(cat /etc/hostname) == "uzui" ]]; then
bspc monitor -d 1 2 3 4 5 6 7 8 9 101
else
bspc monitor -d 1 101
fi
bspc wm -O DP-1 HDMI-1
# change window settings
bspc config border_width 2
bspc config window_gap 12
# change tiling settings
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
# sxhkd shortcut start
pgrep -x sxhkd > /dev/null || sxhkd &
# get env vars
. "${HOME}/.zshenv"
# set background
. "${FEH_HOME}/.fehbg"
# launch polybar
$HOME/.config/polybar/launch.sh
# source wal colors
. "${HOME}/.cache/wal/colors.sh"
# launch picom
picom -b
# fix intelliJ kekw
wmname LG3D
# change pointer config to super
bspc config pointer_modifier mod4
# pointer actions on untiled windows
bspc config pointer_action1 move
bspc config pointer_action2 resize_side
# change color of border to the bright red
bspc config normal_border_color "$color15"
bspc config active_border_color "$color2"
bspc config focused_border_color "$color1"
bspc config presel_feedback_color "$color4"
# set window rules
bspc rule -a feh state=floating
bspc rule -a mpv state=floating
bspc rule -a discord desktop='8'
bspc rule -a helvum desktop='9' focus=on follow=on state=floating
bspc rule -a Pavucontrol desktop='9' focus=on follow=on state=floating
bspc rule -a obs desktop='9' focus=on follow=on
# spotify smh
bspc config external_rules_command "$XDG_CONFIG_HOME/bspwm/nprogs.sh"
# starting programs
udiskie &
dunst &
# lock screen
xset s on
xset s 600
xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsec &
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
id="${1?}" \
instance="$3" \
class="$2";
case "$class" in
(foo)
bar;;
("")
unset -v _NET_WM_PID;
. /dev/fd/0 2>/dev/null <<IN
: \"\${$(
xprop \
-id "$id" \
-notype \
-f _NET_WM_PID 32c '=$0' \
_NET_WM_PID;
)}\";
IN
case "$(ps -p "${_NET_WM_PID:?}" -o comm= 2>/dev/null)" in
(spotify)
echo desktop=7 follow=on focus=on;;
esac;;
esac;