Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Notepadqq theme 0.3 #542

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pywal/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,16 @@ def template(colors, input_file, output_file=None):
# If the color was changed, replace with a unique identifier.
if new_color is not colors[cname]:
new_color = str(new_color)
new_color_clean = new_color.replace('[', '_').replace(']', '_').replace('.', '_')
new_color_clean = new_color.replace(
'[', '_').replace(']', '_').replace('.', '_')
template_data[i] = l.replace(replace_str,
"color" + new_color_clean)
colors["color" + new_color_clean] = new_color
try:
template_data = "".join(template_data).format(**colors)
except (ValueError, KeyError, AttributeError) as exc:
logging.error("Syntax error in template file '%s': %r.", input_file, exc)
logging.error("Syntax error in template file '%s': %r.",
input_file, exc)
return
util.save_file(template_data, output_file)

Expand Down
52 changes: 26 additions & 26 deletions pywal/templates/colors-nqq.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
* https://github.com/threadreaper
*/

.cm-s-nqqwal .CodeMirror-gutters {{ background: {background} !important; }}
.cm-s-nqqwal .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded {{ color: {foreground}; }}
.cm-s-nqqwal .CodeMirror-cursor {{ border-left: 1px solid {foreground}; background-color: rgba({color6.rgb},0.4)}}
.cm-s-nqqwal {{ background-color: {background}; color: {foreground}; }}
.cm-s-nqqwal span.cm-builtin {{ color: {color2}; font-weight: bold; }}
.cm-s-nqqwal span.cm-comment {{ color: {color8}; }}
.cm-s-nqqwal span.cm-keyword {{ color: {color3}; font-weight: bold; }}
.cm-s-nqqwal span.cm-atom {{ color: {color4}; }}
.cm-s-nqqwal span.cm-def {{ color: {color5}; }}
.cm-s-nqqwal span.cm-variable {{ color: {color6}; }}
.cm-s-nqqwal span.cm-variable-2 {{ color: {color5}; }}
.cm-s-nqqwal span.cm-string {{ color: {color2}; }}
.cm-s-nqqwal span.cm-string-2 {{ color: {color2}; }}
.cm-s-nqqwal span.cm-number {{ color: {color5}; }}
.cm-s-nqqwal span.cm-tag {{ color: {color3}; }}
.cm-s-nqqwal span.cm-property {{ color: {color6}; }}
.cm-s-nqqwal span.cm-attribute {{ color: {color6}; }}
.cm-s-nqqwal span.cm-qualifier {{ color: {color4}; }}
.cm-s-nqqwal span.cm-meta {{ color: {color5}; }}
.cm-s-nqqwal span.cm-header {{ color: {color3}; }}
.cm-s-nqqwal span.cm-operator {{ color: {color3}; }}
.cm-s-nqqwal span.CodeMirror-matchingbracket {{ box-sizing: border-box; background: transparent; border-bottom: 1px solid; }}
.cm-s-nqqwal span.CodeMirror-nonmatchingbracket {{ border-bottom: 1px solid; background: none; }}
.cm-s-nqqwal .CodeMirror-activeline-background {{ background: rgba({color5.rgb},0.4); }}
.cm-s-nqqwal div.CodeMirror-selected {{ background: {color3}; }}
.cm-s-nqqwal .CodeMirror-focused div.CodeMirror-selected {{ background: {color0}); }}
.cm-s-colors-nqq .CodeMirror-gutters {{ background: {background} !important; }}
.cm-s-colors-nqq .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded {{ color: {foreground}; }}
.cm-s-colors-nqq .CodeMirror-cursor {{ border-left: 1px solid {foreground}; background-color: rgba({color6.rgb},0.4)}}
.cm-s-colors-nqq {{ background-color: {background}; color: {foreground}; }}
.cm-s-colors-nqq span.cm-builtin {{ color: {color2}; font-weight: bold; }}
.cm-s-colors-nqq span.cm-comment {{ color: {color8}; }}
.cm-s-colors-nqq span.cm-keyword {{ color: {color3}; font-weight: bold; }}
.cm-s-colors-nqq span.cm-atom {{ color: {color4}; }}
.cm-s-colors-nqq span.cm-def {{ color: {color5}; }}
.cm-s-colors-nqq span.cm-variable {{ color: {color6}; }}
.cm-s-colors-nqq span.cm-variable-2 {{ color: {color5}; }}
.cm-s-colors-nqq span.cm-string {{ color: {color2}; }}
.cm-s-colors-nqq span.cm-string-2 {{ color: {color2}; }}
.cm-s-colors-nqq span.cm-number {{ color: {color5}; }}
.cm-s-colors-nqq span.cm-tag {{ color: {color3}; }}
.cm-s-colors-nqq span.cm-property {{ color: {color6}; }}
.cm-s-colors-nqq span.cm-attribute {{ color: {color6}; }}
.cm-s-colors-nqq span.cm-qualifier {{ color: {color4}; }}
.cm-s-colors-nqq span.cm-meta {{ color: {color5}; }}
.cm-s-colors-nqq span.cm-header {{ color: {color3}; }}
.cm-s-colors-nqq span.cm-operator {{ color: {color3}; }}
.cm-s-colors-nqq span.CodeMirror-matchingbracket {{ box-sizing: border-box; background: transparent; border-bottom: 1px solid; }}
.cm-s-colors-nqq span.CodeMirror-nonmatchingbracket {{ border-bottom: 1px solid; background: none; }}
.cm-s-colors-nqq .CodeMirror-activeline-background {{ background: rgba({color5.rgb},0.4); }}
.cm-s-colors-nqq div.CodeMirror-selected {{ background: {color3}; }}
.cm-s-colors-nqq .CodeMirror-focused div.CodeMirror-selected {{ background: {color0}); }}
5 changes: 3 additions & 2 deletions pywal/wallpaper.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,18 @@ def set_desktop_wallpaper(desktop, img):
elif "awesome" in desktop:
util.disown(["awesome-client",
"require('gears').wallpaper.maximized('{img}')"
.format(**locals())])
.format(**locals())])

elif "kde" in desktop:
string = """
var allDesktops = desktops();for (i=0;i<allDesktops.length;i++){
d = allDesktops[i];d.wallpaperPlugin = "org.kde.image";
d.currentConfigGroup = Array("Wallpaper", "org.kde.image",
"General");d.writeConfig("Image", "%s")};
"General"); d.writeConfig("Image", "%s")};
"""
util.disown(["qdbus", "org.kde.plasmashell", "/PlasmaShell",
"org.kde.PlasmaShell.evaluateScript", string % img])

else:
set_wm_wallpaper(img)

Expand Down