You are not logged in.
Pages: 1
Hello,
I use betterlockscreen as my screenlocker.
I want to make my current desktop wallpaper as its background image.
I use nitrogen to set my wallpaper.(I don't mind switching)
So every time I change my wallpaper I want the lock screen background to change too.
If I can get the path to the current wallpaper I can just plug that as a variable for a keybinding.
Just for completion I use qtile.
Offline
setroot stores the wallpaper location in a file and restores it when called; that would suit your workflow.
Offline
Thanks, let me try it out.
Offline
Can't install it. Tried paru and installing from source. Both show
/usr/bin/ld: /tmp/ccux8taR.o: in function `clean_wall':
/home/roshan/repos/setroot/setroot.c:453: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:454: undefined reference to `imlib_free_image_and_decache'
/usr/bin/ld: /tmp/ccux8taR.o: in function `blank_screen':
/home/roshan/repos/setroot/setroot.c:540: undefined reference to `imlib_create_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:545: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:546: undefined reference to `imlib_context_set_drawable'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:547: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:548: undefined reference to `imlib_image_fill_rectangle'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:549: undefined reference to `imlib_render_image_on_drawable'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:550: undefined reference to `imlib_free_image_and_decache'
/usr/bin/ld: /tmp/ccux8taR.o: in function `solid_color':
/home/roshan/repos/setroot/setroot.c:560: undefined reference to `imlib_create_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:564: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:565: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:566: undefined reference to `imlib_image_fill_rectangle'
/usr/bin/ld: /tmp/ccux8taR.o: in function `center_wall':
/home/roshan/repos/setroot/setroot.c:576: undefined reference to `imlib_create_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:577: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:578: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:581: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:583: undefined reference to `imlib_image_fill_rectangle'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:584: undefined reference to `imlib_context_set_blend'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:591: undefined reference to `imlib_blend_image_onto_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:596: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:597: undefined reference to `imlib_free_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:598: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:600: undefined reference to `imlib_context_set_blend'
/usr/bin/ld: /tmp/ccux8taR.o: in function `stretch_wall':
/home/roshan/repos/setroot/setroot.c:609: undefined reference to `imlib_create_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:610: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:611: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:614: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:616: undefined reference to `imlib_image_fill_rectangle'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:617: undefined reference to `imlib_context_set_blend'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:619: undefined reference to `imlib_blend_image_onto_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:624: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:625: undefined reference to `imlib_free_image_and_decache'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:627: undefined reference to `imlib_context_set_blend'
/usr/bin/ld: /tmp/ccux8taR.o: in function `fit_height':
/home/roshan/repos/setroot/setroot.c:638: undefined reference to `imlib_create_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:639: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:640: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:643: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:645: undefined reference to `imlib_image_fill_rectangle'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:646: undefined reference to `imlib_context_set_blend'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:664: undefined reference to `imlib_blend_image_onto_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:669: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:670: undefined reference to `imlib_free_image_and_decache'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:672: undefined reference to `imlib_context_set_blend'
/usr/bin/ld: /tmp/ccux8taR.o: in function `fit_width':
/home/roshan/repos/setroot/setroot.c:683: undefined reference to `imlib_create_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:684: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:685: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:688: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:690: undefined reference to `imlib_image_fill_rectangle'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:691: undefined reference to `imlib_context_set_blend'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:709: undefined reference to `imlib_blend_image_onto_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:714: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:715: undefined reference to `imlib_free_image_and_decache'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:717: undefined reference to `imlib_context_set_blend'
/usr/bin/ld: /tmp/ccux8taR.o: in function `tile':
/home/roshan/repos/setroot/setroot.c:761: undefined reference to `imlib_create_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:762: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:763: undefined reference to `imlib_context_set_blend'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:768: undefined reference to `imlib_blend_image_onto_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:774: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:775: undefined reference to `imlib_free_image_and_decache'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:777: undefined reference to `imlib_context_set_blend'
/usr/bin/ld: /tmp/ccux8taR.o: in function `make_greyscale':
/home/roshan/repos/setroot/setroot.c:784: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:785: undefined reference to `imlib_image_get_width'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:786: undefined reference to `imlib_image_get_height'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:791: undefined reference to `imlib_image_query_pixel'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:793: undefined reference to `imlib_context_set_color'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:794: undefined reference to `imlib_image_draw_pixel'
/usr/bin/ld: /tmp/ccux8taR.o: in function `tint_image':
/home/roshan/repos/setroot/setroot.c:802: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:803: undefined reference to `imlib_create_color_modifier'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:806: undefined reference to `imlib_context_set_color_modifier'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:809: undefined reference to `imlib_get_color_modifier_tables'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:816: undefined reference to `imlib_set_color_modifier_tables'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:817: undefined reference to `imlib_apply_color_modifier'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:818: undefined reference to `imlib_free_color_modifier'
/usr/bin/ld: /tmp/ccux8taR.o: in function `flip_image':
/home/roshan/repos/setroot/setroot.c:824: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:828: undefined reference to `imlib_image_flip_horizontal'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:831: undefined reference to `imlib_image_flip_vertical'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:834: undefined reference to `imlib_image_flip_diagonal'
/usr/bin/ld: /tmp/ccux8taR.o: in function `change_contrast':
/home/roshan/repos/setroot/setroot.c:844: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:845: undefined reference to `imlib_create_color_modifier'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:848: undefined reference to `imlib_context_set_color_modifier'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:849: undefined reference to `imlib_modify_color_modifier_contrast'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:850: undefined reference to `imlib_apply_color_modifier'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:851: undefined reference to `imlib_free_color_modifier'
/usr/bin/ld: /tmp/ccux8taR.o: in function `change_brightness':
/home/roshan/repos/setroot/setroot.c:857: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:858: undefined reference to `imlib_create_color_modifier'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:861: undefined reference to `imlib_context_set_color_modifier'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:862: undefined reference to `imlib_modify_color_modifier_contrast'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:863: undefined reference to `imlib_apply_color_modifier'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:864: undefined reference to `imlib_free_color_modifier'
/usr/bin/ld: /tmp/ccux8taR.o: in function `blur_wall':
/home/roshan/repos/setroot/setroot.c:870: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:871: undefined reference to `imlib_image_blur'
/usr/bin/ld: /tmp/ccux8taR.o: in function `sharpen_wall':
/home/roshan/repos/setroot/setroot.c:877: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:878: undefined reference to `imlib_image_sharpen'
/usr/bin/ld: /tmp/ccux8taR.o: in function `parse_opts':
/home/roshan/repos/setroot/setroot.c:1054: undefined reference to `imlib_load_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1055: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1058: undefined reference to `imlib_image_get_width'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1059: undefined reference to `imlib_image_get_height'
/usr/bin/ld: /tmp/ccux8taR.o: in function `make_bg':
/home/roshan/repos/setroot/setroot.c:1116: undefined reference to `imlib_context_set_display'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1117: undefined reference to `imlib_context_set_visual'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1118: undefined reference to `imlib_context_set_colormap'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1120: undefined reference to `imlib_set_cache_size'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1121: undefined reference to `imlib_set_color_usage'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1122: undefined reference to `imlib_context_set_dither'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1130: undefined reference to `imlib_context_set_drawable'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1194: undefined reference to `imlib_context_set_image'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1195: undefined reference to `imlib_render_image_on_drawable'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1197: undefined reference to `imlib_free_image_and_decache'
/usr/bin/ld: /home/roshan/repos/setroot/setroot.c:1200: undefined reference to `imlib_flush_loaders'
collect2: error: ld returned 1 exit status
make: *** [Makefile:20: all] Error 1And yes I tried installing imlib2.
And also imlib separately. And it still shows the same error.
Offline
Leave a note for the dev on the AUR page: they need to rework the PKGBUILD for the new version of imlib2.
Offline
Leave a note for the dev on the AUR page
That page hasn't seen activity since 2019.
I also found a solution to my problem. It seems that you can set your wallpaper through betterlockscreen. The -w flag sets the wallpaper to the cached image.
Thanks for your time:)
Offline
Pages: 1