owenthewizard / i3lock-next

Create a fancy image to use with i3lock.
MIT License
63 stars 9 forks source link

i3lock: timecolor is invalid, color must be given in 4-byte format: rrggbbaa #16

Open cortex3 opened 6 years ago

cortex3 commented 6 years ago

Hi, just wanted to say thank you for i3lock-next. It's my favourite from all the i3locks that i tried. On my new PC I've been running into the error i3lock: timecolor is invalid, color must be given in 4-byte format: rrggbbaa. I've tried debugging it myself but im no programmer by any means. Running bash -x shows me that the i3lock-next-helper returns _datetimecolor='FFFFFFFF FFFFFFFF'. I've tried hardcoding the variable to _datetimecolor='FFFFFFFF. This way it will execute but the lock on the left screen will display on the top left corner of the screen instead of the middle. I'm not sure if it's helpful but I'll attach the output of xrandr, bash -x and lstrace here.

+ set -e
+ set -o pipefail
+ PREFIX=/usr
+ LIBDIR=/lib
+ [[ '' == \-\h ]]
+ [[ '' == \-\-\h\e\l\p ]]
+ _prompt=
+ _font=Sans
+ _size=18
+ set -u
++ fc-match Sans -f '%{file}\n'
+ _font=/usr/share/fonts/TTF/DejaVuSans.ttf
+ _font=/usr/share/fonts/TTF/DejaVuSans
+ readonly _random=10709
+ _random=10709
+ readonly _image=/tmp/tmp.10709.png
+ _image=/tmp/tmp.10709.png
+ trap 'rm -f ${_image}' EXIT
+ _i3lock_next_helper=/usr//lib/i3lock-next/i3lock-next-helper
++ /usr//lib/i3lock-next/i3lock-next-helper /tmp/tmp.10709.png /usr/share/fonts/TTF/DejaVuSans/18 ''
+ _datetimecolor='FFFFFFFF
FFFFFFFF'
++ /usr//lib/i3lock-next/image-size /tmp/tmp.10709.png
+ _wxh=3840x1200
+ i3lock -n -e -k --timepos=3840-cw:1200-ch '--timecolor=FFFFFFFF
FFFFFFFF' --timefont=Sans --timesize=36 '--datecolor=FFFFFFFF
FFFFFFFF' --datefont=Sans --datesize=18 --textcolor=00000000 --linecolor=00000000 --keyhlcolor=ffffff80 --separatorcolor=22222260 --insidecolor=0000001c --insidevercolor=ffffff1c --insidewrongcolor=ffffff1c --ringcolor=0000001c --ringvercolor=ffffff00 --ringwrongcolor=ffffff55 -i /tmp/tmp.10709.png
i3lock: timecolor is invalid, color must be given in 4-byte format: rrggbbaa

+ rm -f /tmp/tmp.10709.png
getenv("DISPLAY")                                     = ":0"
XOpenDisplay(":0")                                    = 0x55abf341a080
imlib_context_set_display(0x55abf341a080, 85, 0x7fd57bd85a10, 0) = 0x55abf341c6a0
imlib_context_set_visual(0x55abf3425a10, 0x55abf341b670, 0, 0x55abf3414010) = 24
imlib_context_set_colormap(83, 0x55abf3414010, 0, 0)  = 0x55abf341bd10
imlib_context_set_drawable(286, 0x55abf3414010, 0, 0) = 0x55abf341bd10
XRRGetMonitors(0x55abf341a080, 286, 1, 0x7ffe81d985ac) = 0x55abf341b3b0
XRRFreeMonitors(0x55abf341b3b0, 0x55abf3414010, 0, 2) = 0
XRRGetScreenResources(0x55abf341a080, 286, 0, 7)      = 0x55abf3426fa0
XRRGetCrtcInfo(0x55abf341a080, 0x55abf3426fa0, 114, 0x55abf3426fa0) = 0x55abf3426ad0
XRRGetCrtcInfo(0x55abf341a080, 0x55abf3426fa0, 115, 0) = 0x55abf341b3b0
XRRFreeScreenResources(0x55abf3426fa0, 0x7ffe81d98510, 2, 0x55abf3426fa0) = 0
XRRFreeCrtcInfo(0x55abf341b3b0, 0, 0x7fd57b866b00, 0x7fd57b866b00) = 0
imlib_create_image_from_drawable(1, 0, 0, 3840)       = 0x55abf3426b50
imlib_create_image(3840, 1200, 0x55abf341b3b0, 7)     = 0x55abf3426e30
imlib_context_set_image(0x55abf3426e30, 0, 120, 0)    = 0x55abf3426e30
imlib_load_font(0x7ffe81d9a5b7, 0, 120, 0)            = 0x55abf34269c0
imlib_context_set_font(0x55abf34269c0, 0x55abf3414010, 0, 1) = 0x55abf34269c0
imlib_context_get_font(0x55abf34269c0, 0x55abf3414010, 0, 1) = 0x55abf34269c0
imlib_load_font(0x7ffe81d9a5b7, 0x55abf3414010, 0, 1) = 0x55abf34269c0
imlib_context_set_font(0x55abf34269c0, 0x55abf3414010, 0x55abf3426ee0, 1) = 0x55abf34269c0
imlib_text_draw_with_return_metrics(0, 0, 0x55abf283c094, 0x7ffe81d985b0) = 0
imlib_free_image_and_decache(0, 0x55abf283c094, 0xfffffffffd78ffff, 2048) = 0x55abf341c1e0
imlib_context_set_image(0x55abf3426b50, 0x55abf3414010, 0, 6) = 0x55abf341c1e0
imlib_create_cropped_image(0xffffff6a, 0xffffff6a, 300, 300) = 0x55abf3428990
imlib_context_set_image(0x55abf3428990, 0x7fd57801aa5c, 0x7fd578016c18, 3) = 0x55abf3428990
imlib_create_cropped_scaled_image(0, 0, 300, 300)     = 0x55abf3480860
imlib_context_set_image(0x55abf3480860, 0x55abf3414010, 0, 2) = 0x55abf3480860
imlib_image_query_pixel_hsva(2, 2, 0x7ffe81d985b8, 0x7ffe81d985b8) = 177
imlib_free_image_and_decache(0xfffffffe, 179, 182, 0x7ffe81d985b8) = 0x55abf341c1e0
imlib_context_set_image(0x55abf3426b50, 0x55abf3414010, 0x55abf3426e30, 6) = 0x55abf341c1e0
imlib_create_cropped_image(2730, 450, 300, 300)       = 0x55abf3480a50
imlib_context_set_image(0x55abf3480a50, 0x7fd5788e775c, 0x7fd5788e36b8, 3) = 0x55abf3480a50
imlib_create_cropped_scaled_image(0, 0, 300, 300)     = 0x55abf34d8920
imlib_context_set_image(0x55abf34d8920, 0x55abf3414010, 0x55abf34808e0, 2) = 0x55abf34d8920
imlib_image_query_pixel_hsva(2, 2, 0x7ffe81d985b8, 0x7ffe81d985b8) = 71
imlib_free_image_and_decache(71, 71, 71, 0x7ffe81d985b8) = 0x55abf341c1e0
imlib_context_set_image(0x55abf3426b50, 0x55abf3414010, 0x55abf3480860, 6) = 0x55abf341c1e0
imlib_create_color_modifier(0x55abf3426b50, 0x55abf3414010, 0x55abf3480860, 6) = 0x55abf34d89e0
imlib_context_set_color_modifier(0x55abf34d89e0, 0, 256, 0x55abf34d8ae0) = 0x55abf34d89e0
imlib_modify_color_modifier_gamma(0x55abf34d89e0, 0, 256, 0x55abf34d8ae0) = 255
imlib_apply_color_modifier(0x55abf34d89e0, 0, 0x3ff00000, 0x55abf34d8ae0) = 3
imlib_free_color_modifier(0x7fd578f7c010, 3840, 1200, 0x7fd578f7c010) = 0x55abf341c1e0
imlib_create_cropped_scaled_image(0, 0, 3840, 1200)   = 0x55abf34d8df0
imlib_context_set_image(0x55abf34d8df0, 0x55abf3414010, 0x55abf34d89a0, 2) = 0x55abf34d8df0
imlib_image_blur(1, 0x55abf3414010, 0x55abf34d89a0, 2) = 0x55abf34d8df0
imlib_image_blur(1, 0, 0x7fd57b866b00, 0x7fd57b866b00) = 0x55abf34d8df0
imlib_image_blur(1, 0, 0x20dc0, 0xb3ff)               = 0x55abf34d8df0
imlib_create_cropped_scaled_image(0, 0, 768, 240)     = 0x55abf358cec0
imlib_context_set_image(0x55abf358cec0, 0x55abf3414010, 0x55abf358ce80, 2) = 0x55abf358cec0
imlib_load_image_with_error_return(0x55abf283c0e8, 0x7ffe81d985bc, 0x55abf358ce80, 2) = 0x55abf358cf80
imlib_context_set_color(0, 0, 0, 255)                 = 0x55abf358cf80
puts("000000FF"000000FF
)                                      = 9
imlib_text_draw(0xfffffffd, 0, 0x55abf283c094, 0x7ffe81d98500) = 0
imlib_blend_image_onto_image(0x55abf358cf80, 0, 0, 0) = 0x7fd57b8ac150
imlib_load_image_with_error_return(0x55abf283c110, 0x7ffe81d985bc, 0x55abf3643250, 1) = 0x55abf34dfd20
imlib_context_set_color(255, 255, 255, 255)           = 0x55abf34dfd20
puts("FFFFFFFF"FFFFFFFF
)                                      = 9
imlib_text_draw(2877, 800, 0x55abf283c094, 0x7ffe81d98500) = 0
imlib_blend_image_onto_image(0x55abf34dfd20, 0, 0, 0) = 0x7fd57b8ac150
imlib_save_image_with_error_return(0x7ffe81d9a5a4, 0x7ffe81d985bc, 0x55abf3e79eb0, 1) = 0x55abf341c1e0
free(0x55abf3426b50)                                  = <void>
XFree(0x55abf341a080, 0x55abf3414010, 0x55abf34d8920, 6) = 1
imlib_free_font(0x7fd57b866aa0, 0, 0x7fd57b866b00, 0x7fd57b866b00) = 0x55abf341c1e0
imlib_free_image_and_decache(0x55abf34269c0, 0, 0x7fd57b866b00, 0x7fd57b866b00) = 0x55abf341c1e0
+++ exited (status 0) +++
Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 8192 x 8192
eDP-1 connected primary (normal left inverted right x axis y axis)
   1920x1080     60.01 +  40.00  
   1400x1050     59.98  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected 1920x1200+1920+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
   720x400       70.08  
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
   720x400       70.08  
BurhanDanger commented 6 years ago

I'm still getting this. ( r72.94c14c1-1 )

owenthewizard commented 6 years ago

@BurhanDanger How many monitors do you have?

BurhanDanger commented 6 years ago

One.

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
eDP-1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768      59.99*+  39.94
   1024x768      60.04    60.00
   960x720       60.00
   928x696       60.05
   896x672       60.01
   800x600       60.00    60.32    56.25
   700x525       59.98
   640x512       60.02
   640x480       60.00    59.94
   512x384       60.00
   400x300       60.32    56.34
   320x240       60.05
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)