mylinuxforwork / dotfiles

The ML4W Dotfiles for Hyprland - An advanced and full-featured configuration for the dynamic tiling window manager Hyprland including an easy to use installation script for Arch based Linux distributions.
GNU General Public License v3.0
498 stars 51 forks source link

Changing the terminal - rofi keeps using alacritty #158

Open mylinuxforwork opened 3 weeks ago

mylinuxforwork commented 3 weeks ago

Discussed in https://github.com/mylinuxforwork/dotfiles/discussions/140

Originally posted by **aecardenasfl** August 14, 2024 Sorry to open a different post but this is a different issue I'm facing. I changed the default terminal through the "Dot files" App, on the system section from "alacritty" to "kitty" (as this was my terminal emulator of choice before installing ML4W). When I use the keybind SUPER+return it launches kitty just fine. But when I use super+ctrl+return to launch rofi and I want to open for example Neovim, or Yazi it launches those apps in Alacritty. I created a custom config file under ~/.config/bashrc/custom and added export TERMINAL=kitty then sourced the ~/.bashrc, rebooted but rofi is still opening everything in Alacritty. I uninstalled Alacritty and it correctly launches the apps in kitty, but if I install it back rofi goes back to launching terminal apps in Alacritty. Not really important but if you maybe have an idea what I'm doing wrong I'd appreciate your feedback.
mylinuxforwork commented 3 weeks ago

@aecardenasfl Can you check https://superuser.com/questions/361377/what-is-arch-linuxs-default-terminal

aecardenasfl commented 3 weeks ago

@aecardenasfl Can you check https://superuser.com/questions/361377/what-is-arch-linuxs-default-terminal

done. echo $TERM shows kitty both in kitty and alacritty. But rofi still launches yazi and nvim in alacritty instead :(

jamesrahhh commented 2 weeks ago

Rofi by default uses rofi-sensible-terminal as its terminal which uses the $TERMINAL variable rather than $TERM according to the manpages. Alacritty by default has priority above kitty if $TERMINAL isn't set.

mylinuxforwork commented 2 weeks ago

Rofi by default uses rofi-sensible-terminal as its terminal which uses the $TERMINAL variable rather than $TERM according to the manpages. Alacritty by default has priority above kitty if $TERMINAL isn't set.

Great input. Thanks for sharing it.

aecardenasfl commented 2 weeks ago

Rofi by default uses rofi-sensible-terminal as its terminal which uses the $TERMINAL variable rather than $TERM according to the manpages. Alacritty by default has priority above kitty if $TERMINAL isn't set.

that's good to know... I set TERMINAL=kitty, so even in alacritty when I do $echo $TERMINAL it returns "kitty"... but rofi stills doesn't like it and uses alacritty instead :(

I edited the rofi.rasi and added terminal:"kitty"; into the config, that worked.