You need these dependencies on your machine:
- xprop
- xdotool
- Put the script somewhere e.g.
~/.scripts/change_window_opacity.sh
make it executable chmod +x ~/.scripts/change_window_opacity.sh
-
Open Settings center -> Keyboard
-
Create a custom shortcut for increasing the window opacity and set the hotkey to whatever you want, then set the command to be:
bash -c "~/.scripts/change_window_opacity.sh -i"
. -
Same for decreasing the window opacity, set the command to be:
bash -c "~/.scripts/change_window_opacity.sh -d"
.
Done. Have fun! :)