dots/configs/home/.config/bspwm/bspwmrc
2024-04-29 19:05:39 +02:00

112 lines
2.9 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 1
bspc config normal_border_color "#000000"
bspc config focused_border_color "#d55c9c"
bspc config active_border_color "#000000"
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 &
bspc rule -a git-cola state=tiled &
bspc rule -a KeePassXC desktop='I' &
bspc rule -a zenity state=tiled &
bspc rule -a steam_app_221680 state=fullscreen &
# Vars
Scripts="/home/zoey/Documents/Scripts" &&
Polybar="/home/zoey/.config/polybar" &&
export _JAVA_AWT_WM_NONREPARENTING=1
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'
export LIBVA_DRIVER_NAME=vdpau
export VDPAU_DRIVER=nvidia
export EDITOR=nvim
export CLUTTER_DEFAULT_FPS=75
export __GL_SYNC_DISPLAY_DEVICE=HDMI-0
export __GL_SYNC_TO_VBLANK=0
# 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" "pavucontrol" "dunst" "polkit-dumb-agent" "transmission-daemon" "nextcloud" "bspswallow")
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 & }
pidof -q polkit-gnome || { /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & } &
#sxhkd -c $HOME/.config/sxhkd/sxhkdrc &
xsetroot -cursor_name left_ptr &
#wmname LG3D &
nohup dunst &
#pavucontrol &
#nextcloud &
bspswallow &
xhost +si:localuser:$USER &
nitrogen --restore &
keepassxc &
#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 &
# VRAM downlocking dogshit
#xrandr --output DP-2 off
#xsetwacom set 'Wacom Intuos S 2 Pen stylus' MapToOutput HEAD-0 &
xset s off -dpms &
setxkbmap -option caps:escape