Zathura config + remove old packages
This commit is contained in:
parent
247185eafe
commit
632185d7f8
10 changed files with 68 additions and 37 deletions
|
|
@ -5,10 +5,9 @@
|
||||||
let
|
let
|
||||||
callPackage = pkgs.lib.callPackageWith (pkgs // self);
|
callPackage = pkgs.lib.callPackageWith (pkgs // self);
|
||||||
self = {
|
self = {
|
||||||
gallery-tagger = callPackage ./gallery-tagger {};
|
|
||||||
lockscreen = callPackage ./lockscreen {};
|
lockscreen = callPackage ./lockscreen {};
|
||||||
update-background = callPackage ./update-background {};
|
update-background = callPackage ./update-background {};
|
||||||
joystickwake = callPackage ./joystickwake {};
|
# joystickwake = callPackage ./joystickwake {};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
(self)
|
(self)
|
||||||
|
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
{ lib, stdenv,
|
|
||||||
cargo,
|
|
||||||
rustc,
|
|
||||||
rustPlatform,
|
|
||||||
gexiv2,
|
|
||||||
glib,
|
|
||||||
gcc,
|
|
||||||
pkg-config
|
|
||||||
}:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
version = "0.1.2";
|
|
||||||
pname = "gallery-tagger";
|
|
||||||
nativeBuildInputs = [ cargo rustc gcc pkg-config ];
|
|
||||||
buildInputs = [ gexiv2.dev glib.dev ];
|
|
||||||
src = builtins.fetchGit {
|
|
||||||
url = "git@gitlab.com:bertof/galllery-tagger.git";
|
|
||||||
ref = "5389813e62dfa790cf20441242d8a7d89f345fa9";
|
|
||||||
};
|
|
||||||
doCheck = true;
|
|
||||||
cargoSha256 = "sha256:0nskc778m8nj2v4qidq4jzrb3ac8yg9bjc1l546c1k984321k187";
|
|
||||||
}
|
|
||||||
|
|
||||||
16
home.nix
16
home.nix
|
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
nixpkgs = import <nixpkgs> {};
|
nixpkgs = import <nixpkgs> {};
|
||||||
|
nixos-unstable = import <nixos-unstable> {};
|
||||||
|
nixos = import <nixos> {};
|
||||||
nix-rice = fetchTarball {
|
nix-rice = fetchTarball {
|
||||||
url = "https://github.com/bertof/nix-rice/archive/refs/tags/v0.1.0.tar.gz";
|
url = "https://github.com/bertof/nix-rice/archive/refs/tags/v0.1.2.tar.gz";
|
||||||
sha256 = "0am3fnn8lqbi0mhz8jxqskchw1phy5s7kkmrk6jw519dasqq6an7";
|
sha256 = "15f97nwwvk828vnx6kk325zzjn4q37hrpp9aiqiz2qhfs06mr147";
|
||||||
};
|
};
|
||||||
callPackage = pkgs.lib.callPackageWith pkgs;
|
callPackage = pkgs.lib.callPackageWith pkgs;
|
||||||
nord = import ./themes/nord.nix;
|
nord = import ./themes/nord.nix;
|
||||||
|
|
@ -67,7 +69,6 @@ in
|
||||||
evolution
|
evolution
|
||||||
firefox
|
firefox
|
||||||
gallery-dl
|
gallery-dl
|
||||||
# gallery-tagger
|
|
||||||
gnome.dconf-editor
|
gnome.dconf-editor
|
||||||
gnome.easytag
|
gnome.easytag
|
||||||
gnome.eog
|
gnome.eog
|
||||||
|
|
@ -81,6 +82,7 @@ in
|
||||||
gnome.gnome-system-monitor
|
gnome.gnome-system-monitor
|
||||||
gnome.gnome-tweaks
|
gnome.gnome-tweaks
|
||||||
gnome.nautilus
|
gnome.nautilus
|
||||||
|
gnome.quadrapassel
|
||||||
gnome.seahorse
|
gnome.seahorse
|
||||||
gnome.sushi
|
gnome.sushi
|
||||||
google-chrome
|
google-chrome
|
||||||
|
|
@ -114,6 +116,7 @@ in
|
||||||
wineFull
|
wineFull
|
||||||
wireguard
|
wireguard
|
||||||
xclip
|
xclip
|
||||||
|
xournalpp
|
||||||
zoom-us
|
zoom-us
|
||||||
zotero
|
zotero
|
||||||
|
|
||||||
|
|
@ -125,7 +128,11 @@ in
|
||||||
theme = "cla";
|
theme = "cla";
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
];
|
] ++ (
|
||||||
|
with nixos; [
|
||||||
|
blender
|
||||||
|
]
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
@ -173,6 +180,7 @@ in
|
||||||
./modules/tmux.nix
|
./modules/tmux.nix
|
||||||
./modules/update_background.nix
|
./modules/update_background.nix
|
||||||
# ./modules/xidelhook.nix
|
# ./modules/xidelhook.nix
|
||||||
|
./modules/zathura.nix
|
||||||
./modules/zoxide.nix
|
./modules/zoxide.nix
|
||||||
./modules/zsh.nix
|
./modules/zsh.nix
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,8 @@ in
|
||||||
"HDMI-0" = monitorPages;
|
"HDMI-0" = monitorPages;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
sleep 2
|
${pkgs.wmname}/bin/wmname LG3D
|
||||||
polybar-msg cmd restart
|
${pkgs.polybar}/bin/polybar-msg cmd restart
|
||||||
'';
|
'';
|
||||||
startupPrograms = [];
|
startupPrograms = [];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ in
|
||||||
systemd.user.services."joystickwake" = {
|
systemd.user.services."joystickwake" = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Keep lockscreen from activating";
|
Description = "Keep lockscreen from activating";
|
||||||
After = [ "graphical-session.pre.target" ];
|
After = [ "graphical-session.target" ];
|
||||||
PartOf = [ "graphical-session.target" ];
|
PartOf = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
Install = {
|
Install = {
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,9 @@ let
|
||||||
cppPlugins = with pkgs; [
|
cppPlugins = with pkgs; [
|
||||||
clang-tools
|
clang-tools
|
||||||
];
|
];
|
||||||
|
latexPlugins = with pkgs; [
|
||||||
|
texlab
|
||||||
|
];
|
||||||
pythonPlugins = with pkgs.python38Packages; [
|
pythonPlugins = with pkgs.python38Packages; [
|
||||||
pyls-black
|
pyls-black
|
||||||
python-language-server
|
python-language-server
|
||||||
|
|
@ -78,6 +81,7 @@ in
|
||||||
{ mode = "user"; docstring = "Show hover info"; key = "q"; effect = ":lsp-hover<ret>"; }
|
{ mode = "user"; docstring = "Show hover info"; key = "q"; effect = ":lsp-hover<ret>"; }
|
||||||
{ mode = "user"; docstring = "Spellcheck English"; key = "S"; effect = ":spell en<ret>"; }
|
{ mode = "user"; docstring = "Spellcheck English"; key = "S"; effect = ":spell en<ret>"; }
|
||||||
{ mode = "user"; docstring = "Spellcheck"; key = "s"; effect = ":spell "; }
|
{ mode = "user"; docstring = "Spellcheck"; key = "s"; effect = ":spell "; }
|
||||||
|
{ mode = "normal"; docstring = "Try next snippet placeholder"; key = "<c-n>"; effect = "<a-;>: insert-c-n<ret>"; }
|
||||||
];
|
];
|
||||||
hooks = [
|
hooks = [
|
||||||
{ name = "BufCreate"; option = ".*"; commands = "editorconfig-load"; }
|
{ name = "BufCreate"; option = ".*"; commands = "editorconfig-load"; }
|
||||||
|
|
@ -91,6 +95,19 @@ in
|
||||||
"define-command -docstring 'save and quit' x 'write-all; quit' # Save and quit with 'x'"
|
"define-command -docstring 'save and quit' x 'write-all; quit' # Save and quit with 'x'"
|
||||||
"add-highlighter global/ regex \\h+$ 0:Error # Highlight trailing spaces"
|
"add-highlighter global/ regex \\h+$ 0:Error # Highlight trailing spaces"
|
||||||
"eval %sh{kak-lsp --kakoune -s \$kak_session} # Start kak-lsp"
|
"eval %sh{kak-lsp --kakoune -s \$kak_session} # Start kak-lsp"
|
||||||
|
|
||||||
|
# Kak-lsp snippet support
|
||||||
|
''
|
||||||
|
def -hidden insert-c-n %{
|
||||||
|
try %{
|
||||||
|
lsp-snippets-select-next-placeholders
|
||||||
|
exec '<a-;>d'
|
||||||
|
} catch %{
|
||||||
|
exec -with-hooks '<c-n>'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
''
|
||||||
|
|
||||||
"require-module prelude"
|
"require-module prelude"
|
||||||
"# require-module auto-pairs"
|
"# require-module auto-pairs"
|
||||||
"require-module connect"
|
"require-module connect"
|
||||||
|
|
@ -113,7 +130,7 @@ in
|
||||||
with nixpkgs; [
|
with nixpkgs; [
|
||||||
kakounePlugins.connect-kak
|
kakounePlugins.connect-kak
|
||||||
]
|
]
|
||||||
) ++ rustPlugins ++ cppPlugins ++ pythonPlugins ++ nixPlugins ++ spellingPlugins ++ dataFormats;
|
) ++ rustPlugins ++ cppPlugins ++ pythonPlugins ++ latexPlugins ++ nixPlugins ++ spellingPlugins ++ dataFormats;
|
||||||
};
|
};
|
||||||
xdg.configFile."kak/colors/nord.kak".source = ../configs/kak/colors/nord.kak;
|
xdg.configFile."kak/colors/nord.kak".source = ../configs/kak/colors/nord.kak;
|
||||||
xdg.configFile."kak-lsp/kak-lsp.toml".source = ../configs/kak-lsp/kak-lsp.toml;
|
xdg.configFile."kak-lsp/kak-lsp.toml".source = ../configs/kak-lsp/kak-lsp.toml;
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,19 @@
|
||||||
{
|
{
|
||||||
services.picom = {
|
services.picom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
blur = true;
|
blur = true;
|
||||||
|
experimentalBackends = true;
|
||||||
fade = true;
|
fade = true;
|
||||||
shadow = true;
|
shadow = true;
|
||||||
vSync = true;
|
vSync = true;
|
||||||
# backend = "xrender";
|
extraOptions = ''
|
||||||
|
blur:
|
||||||
|
{
|
||||||
|
method = "gaussian";
|
||||||
|
size = 10;
|
||||||
|
deviation = 7.0;
|
||||||
|
}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ let
|
||||||
bottom.size = 0;
|
bottom.size = 0;
|
||||||
};
|
};
|
||||||
font = [
|
font = [
|
||||||
"FuraCode Nerd Font Mono:size=9;2"
|
"${pkgs.rice.font.monospace.name}:size=9;2"
|
||||||
"Material Design Icons:size=9;2"
|
"Material Design Icons:size=9;2"
|
||||||
"NotoEmoji Nerd Font Mono:size=9;0"
|
"NotoEmoji Nerd Font Mono:size=9;0"
|
||||||
];
|
];
|
||||||
|
|
@ -321,7 +321,7 @@ in
|
||||||
format = colors.normal // {
|
format = colors.normal // {
|
||||||
padding = 1;
|
padding = 1;
|
||||||
};
|
};
|
||||||
exec = "${playerStatus}";
|
exec = playerStatus;
|
||||||
click.left = "${playerCtl} play-pause";
|
click.left = "${playerCtl} play-pause";
|
||||||
scroll = {
|
scroll = {
|
||||||
up = "${playerCtl} previous";
|
up = "${playerCtl} previous";
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
rofi = "${pkgs.rofi}/bin/rofi";
|
rofi = "${pkgs.rofi}/bin/rofi";
|
||||||
terminator = "${pkgs.terminator}/bin/terminator";
|
terminator = "${pkgs.terminator}/bin/terminator";
|
||||||
nautilus = "${pkgs.gnome.nautilus}/bin/nautilus";
|
nautilus = "${pkgs.gnome.nautilus}/bin/nautilus";
|
||||||
|
pcmanfm = "${pkgs.pcmanfm}/bin/pcmanfm";
|
||||||
update-backgroundCmd = "${pkgs.update-background}";
|
update-backgroundCmd = "${pkgs.update-background}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
@ -25,7 +26,7 @@
|
||||||
"super + ctrl + {m,x,y,z}" = "${bspc} node -g {marked,locked,sticky,private}";
|
"super + ctrl + {m,x,y,z}" = "${bspc} node -g {marked,locked,sticky,private}";
|
||||||
"super + ctrl + shift + space" = "${bspc} query -N -d | xargs -I id -n 1 ${bspc} node id -p cancel";
|
"super + ctrl + shift + space" = "${bspc} query -N -d | xargs -I id -n 1 ${bspc} node id -p cancel";
|
||||||
"super + ctrl + space" = "${bspc} node -p cancel";
|
"super + ctrl + space" = "${bspc} node -p cancel";
|
||||||
"super + e" = "${nautilus} -w";
|
"super + {_,shift +} e" = "{${nautilus} -w, ${pcmanfm} -n}";
|
||||||
"super + Escape" = "pkill -USR1 -x sxhkd";
|
"super + Escape" = "pkill -USR1 -x sxhkd";
|
||||||
"super + g" = "${bspc} node -s biggest";
|
"super + g" = "${bspc} node -s biggest";
|
||||||
"super + {grave,Tab}" = "${bspc} {node,desktop} -f last";
|
"super + {grave,Tab}" = "${bspc} {node,desktop} -f last";
|
||||||
|
|
|
||||||
20
modules/zathura.nix
Normal file
20
modules/zathura.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
strPalette = with pkgs.rice; palette.toRgbHex colorPalette;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home.packages = [ pkgs.rice.font.normal.package ];
|
||||||
|
programs.zathura = {
|
||||||
|
enable = true;
|
||||||
|
options = {
|
||||||
|
completion-bg = strPalette.bright.black;
|
||||||
|
default-bg = strPalette.normal.black;
|
||||||
|
font = "${pkgs.rice.font.normal.name} 10";
|
||||||
|
inputbar-bg = strPalette.bright.black;
|
||||||
|
inputbar-fg = strPalette.normal.cyan;
|
||||||
|
page-padding = 10;
|
||||||
|
recolor-lightcolor = strPalette.dim.cyan;
|
||||||
|
statusbar-bg = strPalette.bright.black;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue