Rofi icons not showing when launched via sxhkd shortcut
I’m running into an issue with Rofi using a pre-configured setup from adi1090x/rofi. 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](/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.
Posted Oct 1, 2025, 9:10 PM UTC
01