Skip to content

Rofi icons not showing when launched via sxhkd shortcut arch linux #197

@albertbayazidi

Description

@albertbayazidi

I’m running into an issue with Rofi using a pre-configured setup, type-2 style-2. When I run my launcher script directly in Alacritty, the icons show up fine, but when I trigger it using an sxhkd shortcut, the icons do not appear.

Here’s my sxhkd shortcut:

super + u/space
    /home/albert/.config/rofi/launchers/type-2/launcher.sh

Running the script manually works:

/home/albert/.config/rofi/launchers/type-2/launcher.sh

I thought it might be related to environment variables. Here are the differences I noticed

Environment variables when running in terminal:

TERM=alacritty
WINDOWID=31457283
ALACRITTY_WINDOW_ID=31457283

Environment variables when running from sxhkd:

TERM=linux
WINDOWID is not set
No Alacritty-related variables

Other than that, most variables seem similar, and they don't seem to be odd to me. ¯_(ツ)_/¯

Any ideas on how to fix it so that icons show correctly when launched from sxhkd? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions