You are not logged in.
I have a program that I use to start different window managers or desktop environments. How can I get it to load as soon as I load TTY1? By that, I mean after I log in, I want the first thing that executes to be that program. If it matters, I use zsh with oh-my-zsh for plugins and theming. My default shell is set to /bin/zsh.
Last edited by AirsoftHamster (2021-04-01 05:26:07)
Offline
Offline
Sorry, I don't entirely understand. Where do I put that code?
Offline
https://wiki.archlinux.org/index.php/Zs … down_files
Mind you, since you have essentially broken your shell by installing OMZ, it is difficult to predict what may actually happen.
Offline
Out of curiosity, how does installing oh-my-zsh break my shell?
Offline
Zsh is a powerful, elegant shell. OMZ is a ratmangle of bloat and misunderstood "hacks" that results in undocumented and unexpected behaviours. Read the boards here: just about every problem reported with zsh as the shell is solved by uninstalling OMZ.
Offline
Ah. Thanks for the response. By the way, creating a .zprofile file in my home directory and adding
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
exec COMMAND TO RUN
fimakes the command run whenever I open my TTY. Thanks so much!
Offline