From 9c359465f8978443b16bec2370b4b95f5b1fec70 Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Sat, 7 Sep 2024 23:43:36 +0545 Subject: [PATCH] fix: hyprland use apps exported from shell --- Configs/.config/fish/config.fish | 5 +++++ Configs/.config/hypr/keybindings.conf | 8 ++++---- Configs/.zshrc | 7 +++++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Configs/.config/fish/config.fish b/Configs/.config/fish/config.fish index be26f28fdf..05dfd728c3 100644 --- a/Configs/.config/fish/config.fish +++ b/Configs/.config/fish/config.fish @@ -4,6 +4,11 @@ if status is-interactive starship init fish | source end +set -x BROWSER 'firefox' +set -x VISUAL 'code' +set -x FILE 'dolphin' +set -x TERM 'kitty' + # List Directory alias l='eza -lh --icons=auto' # long list alias ls='eza -1 --icons=auto' # short list diff --git a/Configs/.config/hypr/keybindings.conf b/Configs/.config/hypr/keybindings.conf index 8d87d7f5a4..8f97ec7fd2 100644 --- a/Configs/.config/hypr/keybindings.conf +++ b/Configs/.config/hypr/keybindings.conf @@ -9,10 +9,10 @@ $mainMod = Super # super / meta / windows key # Assign apps -$term = kitty -$editor = code -$file = dolphin -$browser = firefox +$term = $BROWSER +$editor = $VISUAL +$file = $FILE +$browser = $BROWSER # Window/Session actions bind = $mainMod, Q, exec, $scrPath/dontkillsteam.sh # close focused window diff --git a/Configs/.zshrc b/Configs/.zshrc index 0da132f83a..2032bd4a69 100644 --- a/Configs/.zshrc +++ b/Configs/.zshrc @@ -8,6 +8,13 @@ source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme plugins=() source $ZSH/oh-my-zsh.sh +# Default apps +export BROWSER="firefox" +export VISUAL="code" +export FILE="dolphin" +export TERM="kitty" + + # In case a command is not found, try to find the package that has it function command_not_found_handler { local purple='\e[1;35m' bright='\e[0;1m' green='\e[1;32m' reset='\e[0m'