set default application, disable monitor turn off when closed, add direnv
This commit is contained in:
11
homeConfigs/global/defaultApplications.nix
Normal file
11
homeConfigs/global/defaultApplications.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
{
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"application/pdf" = "firefox.desktop";
|
||||
"x-scheme-handler/https" = "firefox.desktop";
|
||||
"x-scheme-handler/http" = "firefox.desktop";
|
||||
|
||||
"inode/directory" = "yazi.desktop";
|
||||
"image/*" = "qimgv.desktop";
|
||||
};
|
||||
}
|
||||
@ -7,13 +7,4 @@
|
||||
|
||||
home.sessionVariables.BROWSER = "yazi";
|
||||
programs.yazi.shellWrapperName = "y";
|
||||
# programs.bash.bashrcExtra = ''
|
||||
# function y() {
|
||||
# local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||
# yazi "$@" --cwd-file="$tmp"
|
||||
# IFS= read -r -d "" cwd < "$tmp"
|
||||
# [ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
|
||||
# rm -f -- "$tmp"
|
||||
# }
|
||||
# '';
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{ homeDir, ... }:
|
||||
{
|
||||
home.shell.enableBashIntegration = true;
|
||||
home.shellAliases = {
|
||||
@ -10,6 +10,13 @@
|
||||
clr = "clear";
|
||||
noidle = "systemctl --user stop hypridle";
|
||||
};
|
||||
|
||||
programs.bash.profileExtra = ''
|
||||
PATH=$PATH:${homeDir}/.cargo/bin
|
||||
'';
|
||||
|
||||
programs.direnv.enable = true;
|
||||
programs.direnv.enableBashIntegration = true;
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user