dots/configs/home/.config/bspwm/bspwmrc
2023-10-27 19:56:44 +02:00

91 lines
2.3 KiB
Bash
Executable file

#!/bin/sh
# ┏┓┏┓┏┓┏┓╹┏┓ #
# ┏┛┃┃┃┃┃┃ ┗┓ #
# ┗┛┗┛┗┛┣┛ ┗┛ #
# ┓ #
# ┣┓┏┏┓┓┏┏┏┳┓ #
# ┗┛┛┣┛┗┻┛┛┗┗ #
# ┛ #
pgrep -x sxhkd > /dev/null || sxhkd &
# BSPC
bspc config focus_follows_pointer true
bspc monitor DP-1 -d 'I' 'III' 'V' 'VII' 'IX'
bspc monitor HDMI-0 -d 'II' 'IV' 'VI' 'VIII'
bspc monitor DP-2 -d 'X'
bspc config border_width 2
bspc config normal_border_color "#201134"
bspc config focused_border_color "#A44BA0"
bspc config window_gap 0
bspc config split_ratio 0.5
bspc config borderless_monocle false
bspc config gapless_monocle false
bspc config single_monocle true
# Rules
bspc rule -a Pavucontrol desktop='IX' &
bspc rule -a Galculator state=floating &
# Vars
Scripts="/home/zoey/Documents/Scripts" &&
Polybar="/home/zoey/.config/polybar" &&
export _JAVA_AWT_WM_NONREPARENTING=1
export LIBVA_DRIVER_NAME=vdpau
export VDPAU_DRIVER=nvidia
export EDITOR=nvim
# Game Vars
export VK_INSTANCE_LAYERS=VK_LAYER_MCOF_device_filter
export VK_DEVICE_FILTER=1060
export DXVK_FILTER_DEVICE_NAME=1060
export VKD3D_VULKAN_DEVICE=1
export OBS_USE_EGL=1
export OBS_VKCAPTURE=1
# DAC
systemctl --user restart wireplumber &&
systemctl --user restart pipewire &&
$Scripts/b404hd.sh &
# Autorun
processes=("polybar" "sxhkd" "pavucontrol" "polkit-dumb-agent" "transmission-daemon")
for process in "${processes[@]}"; do
if pidof -q "$process"; then
pkill -9 -x "$process" > /dev/null; sleep 0.1
fi
done
#pidof -q polkit-dumb-agent || { /usr/bin/polkit-dumb-agent & }
sxhkd -c $HOME/.config/sxhkd/sxhkdrc &
xsetroot -cursor_name left_ptr &
wmname LG3D &
pavucontrol &
transmission-daemon -t -p 9069 -a "127.0.0.1" &
systemctl --user start --now opentabletdriver
# Scripts
/home/zoey/.config/polybar/launch2.sh &
# Inputs
EBid=$(xinput list --id-only pointer:"G-SPY USB Gaming Mouse") &&
#Zowieid=$(xinput list --id-only pointer:"Kingsis Peripherals ZOWIE Gaming mouse") &&
xinput --set-prop "${EBid}" 'libinput Accel Profile Enabled' 0, 1 &
#xinput --set-prop "${Zowieid}" 'libinput Accel Profile Enabled' 0, 1 &
xsetwacom set 'Wacom Intuos S 2 Pen stylus' MapToOutput HEAD-0 &
xset s off -dpms &
setxkbmap -option caps:escape