-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for reading foreground and background, and colors, from xresources.py many thanks to @Aliuakbar for the addition! fixes #731
- Loading branch information
1 parent
13b0679
commit fa66873
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import subprocess | ||
import shutil | ||
|
||
def query(key): | ||
if shutil.which("xgetres"): | ||
return subprocess.run(["xgetres", key], | ||
capture_output=True).stdout.decode("utf-8").strip() | ||
else: | ||
raise Exception("xgetres must be installed for this theme") | ||
|