Skip to content

Instantly share code, notes, and snippets.

View Not-Dhanraj's full-sized avatar
🎯
Focusing

Dhanraj Not-Dhanraj

🎯
Focusing
View GitHub Profile
@Not-Dhanraj
Not-Dhanraj / toggle-desktop-gnome.md
Created December 11, 2025 20:40
A simple bash script to enable Windows-like toggle show desktop behavior in GNOME using wmctrl

GNOME Toggle Show Desktop Script

A simple script to enable Windows-like "toggle show desktop" behavior in GNOME.

Prerequisites

Install wmctrl:

# Debian/Ubuntu
@Not-Dhanraj
Not-Dhanraj / gnome-wayland-screenshot.md
Last active January 10, 2026 15:08
GNOME Wayland screenshot solution - save file + copy to clipboard (area screenshot and screenshot without Enter)

GNOME Wayland Screenshot: Save File + Copy to Clipboard

A solution for taking area screenshots on Fedora GNOME (Wayland) that both saves the file AND copies it to clipboard with a single keyboard shortcut.

Problem

  • gnome-screenshot -c flag is broken on Wayland
  • grim + slurp don't work with GNOME's compositor (zwlr_layer_shell_v1 not supported)

Solution