Skip to content
Merged
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
2 changes: 2 additions & 0 deletions pywal/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ def get_export_type(export_type):
"rofi": "colors-rofi.Xresources",
"scss": "colors.scss",
"shell": "colors.sh",
"fishshell": "colors.fish",
"speedcrunch": "colors-speedcrunch.json",
"sway": "colors-sway",
"tty": "colors-tty.sh",
"vscode": "colors-vscode.json",
"waybar": "colors-waybar.css",
"polybar": "colors-polybar",
"xresources": "colors.Xresources",
"haskell": "Colors.hs",
"xmonad": "colors.hs",
Expand Down
8 changes: 8 additions & 0 deletions pywal/templates/colors-polybar
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
background = d9{color0.strip}
background-alt = {color8.strip}
foreground = {color7.strip}
foreground-alt = {color7.strip}
primary = {color1.strip}
secondary = {color2.strip}
alert = {color3.strip}
disabled = {color15.strip}
25 changes: 25 additions & 0 deletions pywal/templates/colors.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
set fish_color_normal normal
set fish_color_command {color3.strip}
set fish_color_param {color11.strip}
set fish_color_redirection $fish_color_param
set fish_color_comment {color2.strip}
set fish_color_error ff0000
set fish_color_escape {color1.strip}
set fish_color_operator $fish_color_escape
set fish_color_end {color1.strip}
set fish_color_quote {color2.strip}
set fish_color_autosuggestion {color8.strip}
set fish_color_user {color12.strip}
set fish_color_host {color4.strip}
set fish_color_valid_path --underline
set fish_color_cwd {color4.strip}
set fish_color_cwd_root red
set fish_color_match --background=brblue
set fish_color_search_match bryellow --background=brblack
set fish_color_selection white --bold --background=brblack
set fish_color_cancel -r
set fish_pager_color_prefix white --bold --underline
set fish_pager_color_completion {color15.strip} --background={color0.strip}
set fish_pager_color_description $fish_color_quote yellow
set fish_pager_color_progress {color6.strip} --background={color0.strip}
set fish_color_history_current --bold
4 changes: 2 additions & 2 deletions pywal/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import shutil
import subprocess
import sys
from hashlib import md5
import hashlib


class Color:
Expand Down Expand Up @@ -199,7 +199,7 @@ def save_file_json(data, export_file):


def get_img_checksum(img):
checksum = md5(usedforsecurity=False)
checksum = hashlib.new('md5', usedforsecurity=False)
with open(img, "rb") as f:
for chunk in iter(lambda: f.read(4096), b""):
checksum.update(chunk)
Expand Down