dots/configs/home/.config/bspwm/bspwmrc

112 lines
2.9 KiB
Plaintext
Raw Normal View History

2023-10-27 19:56:44 +02:00
#!/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'
2024-04-29 19:05:39 +02:00
#bspc monitor DP-2 -d 'X'
2023-10-27 19:56:44 +02:00
2024-04-29 19:05:39 +02:00
bspc config border_width 1
bspc config normal_border_color "#000000"
bspc config focused_border_color "#d55c9c"
bspc config active_border_color "#000000"
2023-10-27 19:56:44 +02:00
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 &
2024-04-29 19:05:39 +02:00
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 &
2023-10-27 19:56:44 +02:00
# Vars
Scripts="/home/zoey/Documents/Scripts" &&
Polybar="/home/zoey/.config/polybar" &&
export _JAVA_AWT_WM_NONREPARENTING=1
2024-04-29 19:05:39 +02:00
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'
2023-10-27 19:56:44 +02:00
export LIBVA_DRIVER_NAME=vdpau
export VDPAU_DRIVER=nvidia
export EDITOR=nvim
2024-04-29 19:05:39 +02:00
export CLUTTER_DEFAULT_FPS=75
export __GL_SYNC_DISPLAY_DEVICE=HDMI-0
export __GL_SYNC_TO_VBLANK=0
2023-10-27 19:56:44 +02:00
# Game Vars
2024-04-29 19:05:39 +02:00
#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
2023-10-27 19:56:44 +02:00
export OBS_USE_EGL=1
export OBS_VKCAPTURE=1
# DAC
2024-04-29 19:05:39 +02:00
#systemctl --user restart wireplumber &&
#systemctl --user restart pipewire &&
#$Scripts/b404hd.sh &
2023-10-27 19:56:44 +02:00
# Autorun
2024-04-29 19:05:39 +02:00
processes=("polybar" "pavucontrol" "dunst" "polkit-dumb-agent" "transmission-daemon" "nextcloud" "bspswallow")
2023-10-27 19:56:44 +02:00
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 & }
2024-04-29 19:05:39 +02:00
pidof -q polkit-gnome || { /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & } &
#sxhkd -c $HOME/.config/sxhkd/sxhkdrc &
2023-10-27 19:56:44 +02:00
xsetroot -cursor_name left_ptr &
2024-04-29 19:05:39 +02:00
#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 &
2023-10-27 19:56:44 +02:00
# 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") &&
2024-04-29 19:05:39 +02:00
xinput --set-prop "${EBid}" 'libinput Accel Profile Enabled' 0, 1
2023-10-27 19:56:44 +02:00
#xinput --set-prop "${Zowieid}" 'libinput Accel Profile Enabled' 0, 1 &
2024-04-29 19:05:39 +02:00
# VRAM downlocking dogshit
#xrandr --output DP-2 off
#xsetwacom set 'Wacom Intuos S 2 Pen stylus' MapToOutput HEAD-0 &
2023-10-27 19:56:44 +02:00
xset s off -dpms &
setxkbmap -option caps:escape