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";
|
home.sessionVariables.BROWSER = "yazi";
|
||||||
programs.yazi.shellWrapperName = "y";
|
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.shell.enableBashIntegration = true;
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
@ -11,6 +11,13 @@
|
|||||||
noidle = "systemctl --user stop hypridle";
|
noidle = "systemctl --user stop hypridle";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.bash.profileExtra = ''
|
||||||
|
PATH=$PATH:${homeDir}/.cargo/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
programs.direnv.enable = true;
|
||||||
|
programs.direnv.enableBashIntegration = true;
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
historyControl = ["ignoreboth"];
|
historyControl = ["ignoreboth"];
|
||||||
|
|||||||
@ -28,8 +28,8 @@
|
|||||||
", XF86Launch4, exec, pkill activate-linux"
|
", XF86Launch4, exec, pkill activate-linux"
|
||||||
];
|
];
|
||||||
bindl = [
|
bindl = [
|
||||||
",switch:off:Lid Switch,exec,hyprctl keyword monitor \"eDP-1, 1920x1080@120, 0x0, 1\""
|
# ",switch:off:Lid Switch,exec,hyprctl keyword monitor \"eDP-1, 1920x1080@120, 0x0, 1\""
|
||||||
",switch:on:Lid Switch,exec,hyprctl keyword monitor \"eDP-1, disable\""
|
# ",switch:on:Lid Switch,exec,hyprctl keyword monitor \"eDP-1, disable\""
|
||||||
|
|
||||||
];
|
];
|
||||||
monitor= [
|
monitor= [
|
||||||
|
|||||||
@ -32,29 +32,14 @@
|
|||||||
# vim.lsp.config('pylsp', {})
|
# vim.lsp.config('pylsp', {})
|
||||||
# '';
|
# '';
|
||||||
|
|
||||||
programs.neovim.initLua= ''
|
programs.neovim.extraLuaConfig = ''
|
||||||
local coq = require "coq"
|
|
||||||
|
|
||||||
vim.lsp.config('clangd', coq.lsp_ensure_capabilities({}))
|
|
||||||
vim.lsp.enable('clangd')
|
vim.lsp.enable('clangd')
|
||||||
|
|
||||||
vim.lsp.config('nixd', coq.lsp_ensure_capabilities({}))
|
|
||||||
vim.lsp.enable('nixd')
|
vim.lsp.enable('nixd')
|
||||||
|
|
||||||
vim.lsp.config('glsl_analyzer', coq.lsp_ensure_capabilities({}))
|
|
||||||
vim.lsp.enable('glsl_analyzer')
|
vim.lsp.enable('glsl_analyzer')
|
||||||
|
|
||||||
vim.lsp.config('pylsp', coq.lsp_ensure_capabilities({
|
|
||||||
settings = {
|
|
||||||
pylsp = {
|
|
||||||
plugins = {
|
|
||||||
pycodestyle = {
|
|
||||||
ignore = {'E501'},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}))
|
|
||||||
vim.lsp.enable('pylsp')
|
vim.lsp.enable('pylsp')
|
||||||
|
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
@ -70,7 +55,6 @@
|
|||||||
set ai
|
set ai
|
||||||
autocmd BufWinLeave *.* mkview
|
autocmd BufWinLeave *.* mkview
|
||||||
autocmd BufWinEnter *.* silent! loadview
|
autocmd BufWinEnter *.* silent! loadview
|
||||||
autocmd VimEnter * COQnow --shut-up
|
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set scrolloff=10
|
set scrolloff=10
|
||||||
set smartindent
|
set smartindent
|
||||||
@ -106,9 +90,16 @@
|
|||||||
Plug 'lambdalisue/fern-renderer-nerdfont.vim'
|
Plug 'lambdalisue/fern-renderer-nerdfont.vim'
|
||||||
Plug 'lambdalisue/fern-git-status.vim'
|
Plug 'lambdalisue/fern-git-status.vim'
|
||||||
Plug 'lambdalisue/fern.vim'
|
Plug 'lambdalisue/fern.vim'
|
||||||
Plug 'ms-jpq/coq_nvim', { 'branch': 'coq' }
|
Plug 'hrsh7th/nvim-cmp'
|
||||||
Plug 'ms-jpq/coq.artifacts', { 'branch': 'artifacts' }
|
Plug 'ThePrimeagen/99'
|
||||||
Plug 'ms-jpq/coq.thirdparty', { 'branch': '3p' }
|
Plug 'hrsh7th/cmp-nvim-lsp'
|
||||||
|
Plug 'hrsh7th/cmp-buffer'
|
||||||
|
Plug 'hrsh7th/cmp-path'
|
||||||
|
Plug 'hrsh7th/cmp-cmdline'
|
||||||
|
Plug 'hrsh7th/nvim-cmp'
|
||||||
|
|
||||||
|
Plug 'hrsh7th/cmp-vsnip'
|
||||||
|
Plug 'hrsh7th/vim-vsnip'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
colorscheme catppuccin-mocha
|
colorscheme catppuccin-mocha
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/06 00:56:57 by tomoron #+# #+# #
|
# Created: 2025/09/06 00:56:57 by tomoron #+# #+# #
|
||||||
# Updated: 2026/02/03 14:40:35 by tomoron ### ########.fr #
|
# Updated: 2026/03/13 15:09:11 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -141,5 +141,5 @@
|
|||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
|
|
||||||
services.k3s.enable = true;
|
# services.k3s.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user