Skip to content

Instantly share code, notes, and snippets.

@clsv
clsv / workspace-ch-notify.py
Last active April 15, 2023 19:54
Send notification in XFCE4 when current workspace was changed
#!/bin/env python3
from Xlib import X, display
import subprocess
# Open the display
d = display.Display()
# Get the root window
root = d.screen().root