You are not logged in.

#1 2021-06-25 01:43:45

kebabwastaken
Member
Registered: 2021-06-25
Posts: 1

[SOLVED]sxkhd keybind not loading env variables (xinit)

i'm trying to register my color env variables in the .bashrc, so i dont need to redo all my keybinds to change colors.
my .bashrc looks something like this:

export FOREGROUND="#fff"
export BACKGROUND="#000"

and the bad sxkhd keybind is:

dmenu_run -nb "$BACKGROUND" -sb "$FOREGROUND" -sf "$BACKGROUND" -nf "$FOREGROUND"

lastly, i'm running the sxkhd in the .xinitrc file, but the keybind doesnt do anything.
the weirder is that, when i kill sxhkd and rerun it, the keybind works fine.

maybe something with the .bashrc file? sorry for bad english.

edit: also if theres a better way to do it, maybe shell-independent, i would like to hear.

so apparently, the .bash_profile file runs 'startx'. just putting my env variables after this line worked for me.

Last edited by kebabwastaken (2021-06-25 02:25:55)

Offline

#2 2021-06-25 02:10:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]sxkhd keybind not loading env variables (xinit)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB