Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Saver image does not show in xmonad #177

Closed

Description

@fleutot

Trying to display an image while locked, I only get a black background.

It seems that the created background window is not created as xsecurelock expects it. This might be caused by my WM (xmonad) tiling the new window and probably resizing it:

$ XSECURELOCK_SAVER_IMAGE=/home/gauthier/Pictures/wallpapers/butterfly.jpg xsecurelock
2023-09-22T20:00:04Z 6373 xsecurelock: Got non-fatal X11 error: BadWindow (invalid Window parameter).
2023-09-22T20:00:04Z 6373 xsecurelock: Got non-fatal X11 error: BadWindow (invalid Window parameter).
2023-09-22T20:00:04Z 6373 xsecurelock: Got non-fatal X11 error: BadWindow (invalid Window parameter).

I tried to force xsecurelock windows to floating, by adding this to my xmonad config:

myManageHook = composeAll
    [ -- ...
    , className =? "xsecurelock"    --> doFloat
    -- ...
    ]

But that didn't help. That said, I'm not sure how I should try and identify that background window to make sure I actually force a float.

On the other hand, this might not be the cause of the black background at all, although it feels like it from the error messages.

I usually run compton, but the error remains after pkilling it.

Activity

  1. fleutot commented on Sep 27, 2023

    @fleutot
    Author

    I don't know where I got that environment variable from, it doesn't seem to exist.

    This works:

    XSECURELOCK_LIST_VIDEOS_COMMAND='find ~/Videos/screenlock -type f' XSECURELOCK_GLOBAL_SAVER=~/bin/my_lock_saver xsecurelock
    

    in combination with:

    • making my_lock_saver available and executable (the same is required for saver_mplayer if you use that)
    • running compton with backend = "glx" and paint-on-overlay = true (or the equivalent on command line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions