dotfiles/dwm/.config/X11/xprofile
2024-05-20 22:22:26 -04:00

20 lines
748 B
Bash
Executable file

#!/bin/sh
xrandr --dpi 96
[ -f "$XDG_DATA_HOME/screenlayout" ] && . "$XDG_DATA_HOME/screenlayout"
[ -f "$XDG_DATA_HOME/wallpaper" ] && xwallpaper --zoom "$XDG_DATA_HOME/wallpaper"
[ -f "$XDG_CONFIG_HOME/X11/xresources" ] && xrdb -merge "$XDG_CONFIG_HOME/X11/xresources"
if xinput | grep "SOAI USB GAMING Mouse" >/dev/null 2>&1; then
xinput set-prop "SOAI USB Gaming Mouse" "libinput Accel Profile Enabled" 0 1 0
xinput set-prop "SOAI USB Gaming Mouse" "libinput Accel Speed" 0
fi
if xinput | grep " USB OPTICAL MOUSE" >/dev/null 2>&1; then
xinput set-prop " USB OPTICAL MOUSE" "libinput Accel Profile Enabled" 0 1 0
xinput set-prop " USB OPTICAL MOUSE" "libinput Accel Speed" 0
fi
dwmblocks &
runsvdir "$HOME/.runit/runsvdir" &