Install the theme:
You can place the cursor theme in either the system-wide directory or your user directory.
For a system-wide install (requires root permissions):
bash
sudo cp -r miniature /usr/share/icons/
For a user-specific install (no root required):
bash
mkdir -p ~/.icons
cp -r miniature ~/.icons/
2. Set the Cursor Theme
You need to tell Sway to use the new cursor theme. This can be done by modifying your Sway configuration file, typically located at ~/.config/sway/config.
Open your Sway config file in a text editor:
bash
nano ~/.config/sway/config
Add the following line or change the existing cursor theme line:
You might want to simply add the cursor theme line, for instance:
plaintext
cursor-theme miniature
3. Apply the Configuration
After making changes to the Sway configuration file, restart Sway to apply the changes. You can do this by logging out and back in or by using the following command in a terminal:
bash
swaymsg reload
4. Verify the Cursor Theme
You can verify if the cursor theme is applied by moving your mouse around. If the new cursor theme is in use, you should see the new cursors reflected.
Additional Notes
Ensure that the cursor theme you downloaded is compatible with your system's environment.
If for some reason the cursor does not change, you can try logging out and logging back in or restarting your system.
You may want to check for any potential conflicts with other cursor themes specified in your configuration.
If you run into any issues, feel free to ask for further assistance!
To use the "miniature" cursor theme in Sway on Arch Linux, especially when using the Foot terminal, you can follow these steps:
1. Install the Cursor Theme
You can install the cursor theme from the provided GitHub repository. Here’s how:
Download and Install
Clone the repository:
bash
git clone https://github.com/nxll/miniature.git
Change to the cloned directory:
bash
cd miniature
Install the theme:
You can install it in either system-wide or user-specific directories.
For user-specific installation (recommended):
bash
mkdir -p ~/.icons
cp -r miniature ~/.icons/
For system-wide installation (requires sudo):
bash
sudo cp -r miniature /usr/share/icons/
2. Configure Sway to Use the Cursor Theme
Next, you need to tell Sway to use the new cursor theme. This can be done by editing your Sway configuration file.
Edit the Sway Configuration
Open your Sway config file in a text editor. It's usually located at ~/.config/sway/config:
bash
nano ~/.config/sway/config
Add or modify the following lines in your configuration:
plaintext
# Set the cursor theme
exec swaymsg 'input type:mouse set_cursor_theme "miniature"'
exec swaymsg 'input type:touch set_cursor_theme "miniature"'
Save your changes and exit the editor (Ctrl + O to save and Ctrl + X to exit in Nano).
3. Configure the Foot Terminal
Foot doesn’t need special configuration for the cursor theme as it should inherit the cursor theme set in Sway. However, make sure your Foot terminal is configured properly.
Open the Foot configuration file at ~/.config/foot/foot.ini or create it if it doesn't exist.
Ensure that you have the following line to set a specific cursor shape if preferred (optional):
plaintext
cursor_shape = "x" # Options: "x", "block", "underline", etc.
4. Apply the Configuration
After making changes to the configuration, you can apply the settings without logging out by reloading Sway:
bash
swaymsg reload
5. Verify the Cursor Theme
After reloading or restarting Sway, you should notice that the cursor theme has changed to "miniature." You can test it by moving your mouse around your desktop.
Additional Notes
If you face issues and the cursor does not change, try logging out and logging back in or restarting your machine.
Check for conflicting cursor theme settings in your configuration files or other applications that may interfere.
If "miniature" does not display correctly, ensure all needed libraries and dependencies are installed.
If you run into any issues or have further questions, feel free to ask!