This commit is contained in:
Hadi
2024-06-25 21:57:24 +02:00
parent 6f6c8bebf7
commit c618feced4
11 changed files with 126 additions and 57 deletions

View File

@@ -11,6 +11,7 @@
./programs/nvim
./programs/qutebrowser
./programs/spicetify
./programs/zathura
# Scripts
./scripts # All scripts
@@ -25,6 +26,8 @@
./system/waybar
./system/wlogout
./system/wofi
./system/mime
./system/udiskie
];
home = {

View File

@@ -0,0 +1,17 @@
# PDF viewer
{
programs.zathura = {
enable = true;
options = {
guioptions = "v";
adjust-open = "width";
statusbar-basename = true;
render-loading = false;
scroll-step = 120;
# highlight-color = ");
# highlight-active-color = mkForce (rgba "base0D");
};
};
}

View File

@@ -0,0 +1,17 @@
{
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/markdown" = "nvim.desktop";
"text/plain" = "nvim.desktop";
"image/png" = "imv.desktop";
"image/jpeg" = "imv.desktop";
"image/gif" = "org.qutebrowser.qutebrowser.desktop";
"x-scheme-handler/http" = "org.qutebrowser.qutebrowser.desktop";
"x-scheme-handler/https" = "org.qutebrowser.qutebrowser.desktop";
"text/html" = "org.qutebrowser.qutebrowser.desktop";
"application/pdf" = "zathura.desktop";
};
};
}

View File

@@ -6,6 +6,7 @@
./zoxide.nix
./tmux.nix
./lazygit.nix
./eza.nix
./fetch
./lf
];

13
home/system/shell/eza.nix Normal file
View File

@@ -0,0 +1,13 @@
{
programs.eza = {
enable = true;
icons = true;
extraOptions = [
"--group-directories-first"
"--no-quotes"
"--git-ignore"
"--icons=always"
];
};
}

View File

@@ -1,6 +1,6 @@
{ pkgs, lib, config, ... }: {
home.packages = with pkgs; [ eza bat ripgrep tldr ];
home.packages = with pkgs; [ bat ripgrep tldr ];
programs.zsh = {
enable = true;
@@ -42,8 +42,8 @@
celar = "clear";
e = "exit";
cd = "z";
ls = "${pkgs.eza}/bin/eza --icons=always";
tree = "${pkgs.eza}/bin/eza --icons=always --tree";
ls = "eza --icons=always --no-quotes";
tree = "eza --icons=always --tree --no-quotes";
sl = "ls";
open = "${pkgs.xdg_utils}/bin/xdg-open";
icat = "${pkgs.kitty}/bin/kitty +kitten icat";

View File

@@ -0,0 +1,6 @@
{
services.udiskie = {
enable = true;
tray = "always";
};
}