Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Commit

Permalink
fix some lines
Browse files Browse the repository at this point in the history
  • Loading branch information
reorr committed Nov 5, 2017
1 parent 05b075c commit 90f1175
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wallpaper.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
wallpaperpaper=/home/lemone/Gambar/bg/renders_in_shape/1495052269359.jpg&&properties=$(xfconf-query -c xfce4-desktop -p /backdrop -l | grep -e "screen.*/monitor.*image-path$" -e "screen.*/monitor.*/last-image$") && for property in $properties; do xfconf-query -c xfce4-desktop -p $property -s "$wallpaperpaper"; done
wallpaper=/home/lemone/Pictures/bg/kartun/Konachan.com - 237170 sample.jpg&&properties=$(xfconf-query -c xfce4-desktop -p /backdrop -l | grep -e "screen.*/monitor.*image-path$" -e "screen.*/monitor.*/last-image$") && for property in $properties; do xfconf-query -c xfce4-desktop -p $property -s "$wallpaperpaper"; done
6 changes: 3 additions & 3 deletions xfcolorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from colorthief import ColorThief

parser = argparse.ArgumentParser()
parser.add_argument('--image','-i', required=True, help='set image to wallpaperpaper and generate palette from image', nargs='*')
parser.add_argument('--image','-i', required=True, help='set image to wallpaper and generate palette from image', nargs='*')
parser.add_argument('--window','-w', help='set window color and panel color from given value (hex)', nargs='*')
args = parser.parse_args()
#img = (args.image[0])
Expand Down Expand Up @@ -31,7 +31,7 @@ def rgb_to_hex(rgb):
print("Color can't be same")
else :
init_file = open( 'wallpaper.sh', 'w' )
init_file.writelines( [ '#!/bin/bash\n', 'wallpaperpaper=' + args.image[0] + '&&'] )
init_file.writelines( [ '#!/bin/bash\n', 'wallpaper=' + args.image[0] + '&&'] )
init_file.writelines( [ 'properties=$(xfconf-query ', '-c ', 'xfce4-desktop ', '-p ', '/backdrop ', '-l ', '| ', 'grep ', '-e ', '"screen.*/monitor.*image-path$" ', '-e ', '"screen.*/monitor.*/last-image$") ', '&& '])
init_file.writelines( [ 'for ', 'property ', 'in ', '$properties; ', 'do ', 'xfconf-query ', '-c ', 'xfce4-desktop ', '-p ', '$property ', '-s ', '"$wallpaperpaper"; ', 'done'])
init_file.close()
Expand All @@ -47,7 +47,7 @@ def rgb_to_hex(rgb):
else :
#print(new_palette)
init_file = open( 'wallpaper.sh', 'w' )
init_file.writelines( [ '#!/bin/bash\n', 'wallpaperpaper=' + args.image[0] + '&&'] )
init_file.writelines( [ '#!/bin/bash\n', 'wallpaper=' + args.image[0] + '&&'] )
init_file.writelines( [ 'properties=$(xfconf-query ', '-c ', 'xfce4-desktop ', '-p ', '/backdrop ', '-l ', '| ', 'grep ', '-e ', '"screen.*/monitor.*image-path$" ', '-e ', '"screen.*/monitor.*/last-image$") ', '&& '])
init_file.writelines( [ 'for ', 'property ', 'in ', '$properties; ', 'do ', 'xfconf-query ', '-c ', 'xfce4-desktop ', '-p ', '$property ', '-s ', '"$wallpaperpaper"; ', 'done'])
init_file.close()
Expand Down

0 comments on commit 90f1175

Please sign in to comment.