Zathura config + remove old packages

This commit is contained in:
Filippo Berto 2021-07-02 12:29:14 +02:00
parent 247185eafe
commit 632185d7f8
10 changed files with 68 additions and 37 deletions

View file

@ -25,8 +25,8 @@ in
"HDMI-0" = monitorPages;
};
extraConfig = ''
sleep 2
polybar-msg cmd restart
${pkgs.wmname}/bin/wmname LG3D
${pkgs.polybar}/bin/polybar-msg cmd restart
'';
startupPrograms = [];
};

View file

@ -6,7 +6,7 @@ in
systemd.user.services."joystickwake" = {
Unit = {
Description = "Keep lockscreen from activating";
After = [ "graphical-session.pre.target" ];
After = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = {

View file

@ -12,6 +12,9 @@ let
cppPlugins = with pkgs; [
clang-tools
];
latexPlugins = with pkgs; [
texlab
];
pythonPlugins = with pkgs.python38Packages; [
pyls-black
python-language-server
@ -78,6 +81,7 @@ in
{ 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"; key = "s"; effect = ":spell "; }
{ mode = "normal"; docstring = "Try next snippet placeholder"; key = "<c-n>"; effect = "<a-;>: insert-c-n<ret>"; }
];
hooks = [
{ 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'"
"add-highlighter global/ regex \\h+$ 0:Error # Highlight trailing spaces"
"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 auto-pairs"
"require-module connect"
@ -113,7 +130,7 @@ in
with nixpkgs; [
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-lsp/kak-lsp.toml".source = ../configs/kak-lsp/kak-lsp.toml;

View file

@ -2,10 +2,19 @@
{
services.picom = {
enable = true;
blur = true;
experimentalBackends = true;
fade = true;
shadow = true;
vSync = true;
# backend = "xrender";
extraOptions = ''
blur:
{
method = "gaussian";
size = 10;
deviation = 7.0;
}
'';
};
}

View file

@ -61,7 +61,7 @@ let
bottom.size = 0;
};
font = [
"FuraCode Nerd Font Mono:size=9;2"
"${pkgs.rice.font.monospace.name}:size=9;2"
"Material Design Icons:size=9;2"
"NotoEmoji Nerd Font Mono:size=9;0"
];
@ -321,7 +321,7 @@ in
format = colors.normal // {
padding = 1;
};
exec = "${playerStatus}";
exec = playerStatus;
click.left = "${playerCtl} play-pause";
scroll = {
up = "${playerCtl} previous";

View file

@ -9,6 +9,7 @@
rofi = "${pkgs.rofi}/bin/rofi";
terminator = "${pkgs.terminator}/bin/terminator";
nautilus = "${pkgs.gnome.nautilus}/bin/nautilus";
pcmanfm = "${pkgs.pcmanfm}/bin/pcmanfm";
update-backgroundCmd = "${pkgs.update-background}";
in
{
@ -25,7 +26,7 @@
"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 + space" = "${bspc} node -p cancel";
"super + e" = "${nautilus} -w";
"super + {_,shift +} e" = "{${nautilus} -w, ${pcmanfm} -n}";
"super + Escape" = "pkill -USR1 -x sxhkd";
"super + g" = "${bspc} node -s biggest";
"super + {grave,Tab}" = "${bspc} {node,desktop} -f last";

20
modules/zathura.nix Normal file
View 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;
};
};
}