LukeSmithxyz / LARBS

Luke's Auto-Rice Bootstrapping Scripts: Installation Scripts for My Arch Linux Meta-Distribution
GNU General Public License v3.0
2.02k stars 797 forks source link

Multi-Monitor configuration: Cursor is abnormally large #545

Closed p-mackay closed 5 months ago

p-mackay commented 5 months ago

System info:

6.6.9-arch1-1 EndeavourOS

I have a shell script in ~/.local/bin/monitors to configure a dual monitor setup. I call this script in ~/.xprofile. The script configures the screen properly. But after configuration the cursor is twice the size as its supposed to be. Does anyone know how to force the size of the cursor?

.xprofile


# This file runs when a DM logs you into a graphical session.
# If you use startx/xinit like a Chad, this file will also be sourced.

xrandr --dpi 96     # Set DPI. User may want to use a larger number for larger screens.
monitors &
setbg &         # set the background with the `setbg` script
#xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! # Uncomment to use Xresources colors/settings on startup

autostart="mpd xcompmgr dunst unclutter pipewire remapd"

for program in $autostart; do
    pidof -sx "$program" || "$program" &
done >/dev/null 2>&1

# Ensure that xrdb has finished running before moving on to start the WM/DE.
[ -n "$xrdbpid" ] && wait "$xrdbpid"

.local/bin/monitors

xrandr --output DP1 --mode 1680x1050 --rotate left --left-of HDMI1 
xrandr --output HDMI1 --mode 1920x1080 --primary 
p-mackay commented 5 months ago

For anyone who runs into this issue. Adding the below line fixed it.

xrandr --dpi 96     # Set DPI. User may want to use a larger number for larger screens.
echo "Xcursor.size: 16" | xrdb -merge # <--- this fixed the issue
monitors &
setbg &         # set the background with the `setbg` script
.
.
.