Skip to content

Instantly share code, notes, and snippets.

View cretudorin's full-sized avatar

Dorin Cretu cretudorin

  • Ilmenau, Thüringen
View GitHub Profile
@ikbelkirasan
ikbelkirasan / change_window_opacity.sh
Last active June 16, 2023 18:04
Change window opacity in Linux using keyboard shortcuts
#!/bin/bash
function get_active_window() {
printf "0x%08x" $(xdotool getactivewindow)
}
function get_current_opacity() {
window="$1"
opacity=$(xprop -id $window | grep _NET_WM_WINDOW_OPACITY | awk '{print $3}')
if [ -z $opacity ]; then