Skip to content

Instantly share code, notes, and snippets.

@hackerb9
Created March 12, 2018 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hackerb9/df4f3b149a0b192ab7b84868e342ed9b to your computer and use it in GitHub Desktop.
Save hackerb9/df4f3b149a0b192ab7b84868e342ed9b to your computer and use it in GitHub Desktop.
Devilspie recipe to make all xterms slightly transparent
;;; -*- lisp -*-
;; Just for fun, playing around with making all my xterms lightly transparent.
;; NB: This makes titlebar and text transparent, too.
(if (is (window_class) "XTerm")
(spawn_async
(str "xprop -id " (window_xid)
" -f _NET_WM_WINDOW_OPACITY 32c"
" -set _NET_WM_WINDOW_OPACITY 0xf8000000")))
;; Example:
;; xprop -name ben@delve -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xefffffff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment