Skip to content

Instantly share code, notes, and snippets.

@distgr
Created September 26, 2024 12:12
Show Gist options
  • Select an option

  • Save distgr/34cb59444db6feda88b7d776c05df7f6 to your computer and use it in GitHub Desktop.

Select an option

Save distgr/34cb59444db6feda88b7d776c05df7f6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# I had a problem with KDE Plasma minimizing windows with Meta+D, without the others being maximized when I tried to re-maximize one of the programs,
# finally, with a separate script and setting it to run on a custom shortcut for Meta+D, it worked :
# -----
# sudo apt install xdotool
# sudo pacman -S xdotool
# sudo dnf install xdotool
# first, install the 'xdotool' package according to your distribution and package manager, then use the code:
# -----
for win in $(xdotool search --onlyvisible --class .); do
xdotool windowminimize $win
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment