Linux Operating System FEDORA Workstation 43 _ change the size of my default mouse pointer to a bigger size by just running a Linux command only
You said
Hi Copilot , is there a way I can change the size of my default mouse pointer to a bigger size by just running a Linux command only ? Many months ago I came across a linux command whereby we can change the default Linux cursor to red by running this Linux command that look something like this , # echo -ne "\e]12;#FF0000\a" , so , I believe we can do the same when changing the mouse pointer to a bigger size ! So , Copilot , is there a way I can change the size of my default mouse pointer to a bigger size by just running a Linux command and also the mouse pointer to red color ? THANKS Copilot.
Copilot said
That’s a sharp observation! The command you mentioned (echo -ne "\e]12;#FF0000\a") works because it sends an escape sequence to the terminal to change the text cursor (caret) color, not the mouse pointer itself. Unfortunately, the mouse pointer is managed by your desktop environment (GNOME, KDE, Xfce, etc.) and the X11/Wayland display server, not by the terminal. That means there isn’t a single universal escape sequence to resize or recolor the mouse pointer the way you did with the text cursor.
Changing Mouse Pointer Size and Color via Command Line
You can still achieve what you want, but it depends on your desktop environment:
GNOME (Ubuntu, Fedora, etc.)
gsettings set org.gnome.desktop.interface cursor-theme 'Redglass'
GNOME supports themes like Adwaita, DMZ-White, Redglass, etc. If you install a red cursor theme, you can switch to it instantly.
KDE Plasma
Cursor settings are stored in kcminit:
kwriteconfig5 --file kcminputrc --group Mouse --key cursorTheme Redglass
Then reload:
qdbus org.kde.KWin /KWin reconfigure
X11 (generic)
You can set environment variables before starting your session:
XCURSOR_SIZE=48
XCURSOR_THEME=Redglass
Adding those to ~/.Xresources or ~/.profile makes them persistent.
Key Difference
The \e]12;... trick only affects the text cursor in the terminal.
Mouse pointer size/color changes require desktop environment settings or X11 variables.
So yes, you can change both size and color with commands, but not with a single escape sequence. It’s more about setting the right environment variables or using gsettings/kwriteconfig5.
Would you like me to show you how to make these changes temporary (just for the current session) versus permanent (saved across reboots)?
gsettings set org.gnome.desktop.interface cursor-size 48
(Replace 48 with the size you want.)
Change cursor theme (for color):
Hi Copilot , is there a way I can change the size of my default mouse pointer to a bigger size by just running a Linux command only ? Many months ago I came across a linux command whereby we can change the default Linux cursor to red by running this Linux command that look something like this , # echo -ne "\e]12;#FF0000\a" , so , I believe we can do the same when changing the mouse pointer to a bigger size ! So , Copilot , is there a way I can change the size of my default mouse pointer to a bigger size by just running a Linux command and also the mouse pointer to red color ? THANKS Copilot.
Copilot said
That’s a sharp observation! The command you mentioned (echo -ne "\e]12;#FF0000\a") works because it sends an escape sequence to the terminal to change the text cursor (caret) color, not the mouse pointer itself. Unfortunately, the mouse pointer is managed by your desktop environment (GNOME, KDE, Xfce, etc.) and the X11/Wayland display server, not by the terminal. That means there isn’t a single universal escape sequence to resize or recolor the mouse pointer the way you did with the text cursor.
Changing Mouse Pointer Size and Color via Command Line
You can still achieve what you want, but it depends on your desktop environment:
GNOME (Ubuntu, Fedora, etc.)
gsettings set org.gnome.desktop.interface cursor-theme 'Redglass'
GNOME supports themes like Adwaita, DMZ-White, Redglass, etc. If you install a red cursor theme, you can switch to it instantly.
KDE Plasma
Cursor settings are stored in kcminit:
kwriteconfig5 --file kcminputrc --group Mouse --key cursorTheme Redglass
Then reload:
qdbus org.kde.KWin /KWin reconfigure
X11 (generic)
You can set environment variables before starting your session:
XCURSOR_SIZE=48
XCURSOR_THEME=Redglass
Adding those to ~/.Xresources or ~/.profile makes them persistent.
Key Difference
The \e]12;... trick only affects the text cursor in the terminal.
Mouse pointer size/color changes require desktop environment settings or X11 variables.
So yes, you can change both size and color with commands, but not with a single escape sequence. It’s more about setting the right environment variables or using gsettings/kwriteconfig5.
Would you like me to show you how to make these changes temporary (just for the current session) versus permanent (saved across reboots)?
gsettings set org.gnome.desktop.interface cursor-size 48
(Replace 48 with the size you want.)
Change cursor theme (for color):