Customize Window Behavior in Cinnamon – Step by Step Guide
In this article
Changing the way windows react to clicks, drags, and focus in the Cinnamon desktop lets you work faster, avoid accidental closures, and create a workflow that matches your habits. This guide shows how to adjust title‑bar actions, window tiling, focus behavior, and visual effects without leaving the desktop environment.
What You’ll Need
- Cinnamon desktop installed (default on Linux Mint and many Ubuntu flavors)
- Access to the Cinnamon Settings panel (usually under the menu → Preferences)
- Optional:
dconf-editorfor advanced tweaks not exposed in the GUI
Step‑By‑Step
- Open Cinnamon Settings. Click the menu button, go to Preferences → Settings, or press Super+Space and type “settings”.
- Navigate to the “Windows” section. In the left sidebar choose Windows. Here you will find the most common options such as title‑bar actions, focus mode, and window snapping.
- Change title‑bar button actions. Under Titlebar Actions you can set what a single‑click, double‑click, middle‑click, and scroll‑click do. For example, set Double‑click to “Maximize”, Middle‑click to “Close”, and Scroll‑click to “Shade”. Click the drop‑down next to each action and pick the desired behavior.
- Adjust focus behavior. Still in the Windows pane, locate Focus Mode. Choose between “Click to focus”, “Sloppy focus (focus follows mouse)”, or “Focus on mouse hover”. If you enable “Focus follows mouse”, you may also want to enable “Raise window on focus” to keep the active window on top.
- Configure window tiling and snapping. Under Tile Windows turn on “Enable window tiling”. You can then set the margin size for snapping (e.g., 10 px) and decide whether windows should automatically maximize when dragged to the top edge.
- Set window animations. Go to Effects in the left sidebar. Toggle the animations you prefer, such as “Fade”, “Scale”, or “Slide”. Turning off heavy animations can improve performance on older hardware.
- Use dconf-editor for hidden options (optional). Install it with
sudo apt install dconf-editorif not already present. Opendconf-editor, navigate to/org/cinnamon/desktop/wm/preferences/, and explore keys likemouse-button-modifier(sets the modifier for moving windows) orraise-on-click(forces a click to bring a window to the front). Change a value by clicking the toggle or entering a new string, then close the editor. - Apply and test your changes. Most adjustments take effect immediately. Open a few applications, try the new title‑bar clicks, drag windows to the screen edges, and move the mouse across windows to confirm focus behavior works as expected.
- Save a backup of your configuration. In a terminal run
dconf dump /org/cinnamon/ > cinnamon-backup.txt. This creates a text file you can restore later withdconf load /org/cinnamon/ < cinnamon-backup.txt. Keeping a backup makes it easy to revert if you later decide a setting was not helpful.
Common Mistakes
- Setting the middle‑click action to “Close” and then using the mouse wheel button for scrolling, which can lead to accidental closures.
- Enabling “Focus follows mouse” without also enabling “Raise window on focus”, causing windows to stay behind each other and making the desktop feel unresponsive.
- Changing the
mouse-button-modifierto a key combination that conflicts with existing shortcuts, resulting in windows that cannot be moved or resized. - Disabling all animations on a system that relies on them for visual cues (e.g., a shaded title bar) and then thinking the window is frozen.
Tips
- Combine a double‑click “Maximize” with a middle‑click “Close” for a fast workflow: double‑click to fill the screen, middle‑click to dismiss when done.
- If you use a touchpad, enable “Tap to click” and assign “Tap with three fingers” to “Shade” via
dconf-editorfor quick window preview. - Keep the snapping margin low (5‑10 px) if you frequently work with multiple monitors; larger margins can cause windows to stick to the wrong edge.
- Use the “Alt” key as the window‑move modifier only if you rarely need Alt for other shortcuts; otherwise set
mouse-button-modifierto “Super”. - After major changes, log out and back in to ensure all background services pick up the new configuration.
Troubleshooting
If a window does not respond to the new title‑bar clicks, first verify that the action was saved in the Settings panel. Open dconf-editor and check the key /org/cinnamon/desktop/wm/preferences/action-double-click-titlebar (or the corresponding single‑click key). If the value is correct but the behavior is still missing, try restarting the Cinnamon daemon with cinnamon --replace & from a terminal. This forces Cinnamon to reload its configuration without a full logout.
When “Focus follows mouse” feels jittery, ensure the “Raise window on focus” option is enabled; otherwise the pointer may move over a hidden window, making it appear that focus is lost. If performance suffers after enabling many animations, disable the most demanding ones (e.g., “Scale”) or switch to a lightweight compositor like compton temporarily.
Conflicts with other desktop extensions can also override window behavior. Disable extensions one by one from the “Extensions” manager to isolate the culprit. After disabling a problematic extension, repeat the steps in the “Step‑By‑Step” section to re‑apply your preferred settings.
Frequently Asked Questions
Can I set a custom shortcut to tile windows?
Yes. Open Keyboard in Cinnamon Settings, go to the Shortcuts → Windows section, and assign a new key combination to “Tile window to left” or “Tile window to right”.
Is it possible to make the title bar invisible but still keep the click actions?
Use the “Hide titlebars when maximized” option in the Windows settings. For a completely borderless look, install the “No Title Bar” extension, which preserves the underlying click actions.
Why does my middle‑click close windows even after I changed it?
Some applications override the system default and bind middle‑click to close internally. In those cases, you need to edit the application’s own shortcut settings or use dconf-editor to force the global action.
Can I have different focus modes for different workspaces?
Cinnamon does not natively support per‑workspace focus settings. You would need a third‑party extension or script that switches the focus-mode key when you change workspaces.
How do I revert all changes if I mess up?
Restore the backup you created with dconf load /org/cinnamon/ < cinnamon-backup.txt. If you did not create a backup, you can reset Cinnamon to defaults by running dconf reset -f /org/cinnamon/, then log out and back in.
Does changing window behavior affect other desktop environments?
No. The settings modified here are stored under the Cinnamon schema and are only read by the Cinnamon compositor. Other DEs such as GNOME or KDE use their own configuration stores.