[WIP] sway and qutebrowser settings

This commit is contained in:
Andrea Ciceri 2022-10-06 09:59:29 +02:00
parent 05af2601a0
commit 4978017190
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
4 changed files with 86 additions and 4 deletions

View file

@ -1,4 +1,8 @@
{pkgs, ...}: { {
pkgs,
config,
...
}: {
programs.qutebrowser = { programs.qutebrowser = {
enable = true; enable = true;
searchEngines = { searchEngines = {
@ -21,6 +25,7 @@
}; };
}; };
settings = { settings = {
auto_save.session = true;
url.start_pages = ["https://searx.be"]; url.start_pages = ["https://searx.be"];
editor.command = [ editor.command = [
"emacsclient" "emacsclient"
@ -29,12 +34,40 @@
"-c" "-c"
]; ];
content.pdfjs = true; content.pdfjs = true;
tabs.tabs_are_windows = true; fonts = {
default_size = "11pt";
tabs = {
selected = "13pt";
unselected = "13pt";
}; };
}; };
home.packages = [ colors = {
tabs = {
even = {
bg = "silver";
fg = "#666666";
};
odd = {
bg = "gainsboro";
fg = config.programs.qutebrowser.settings.colors.tabs.even.fg;
};
};
};
};
# `c.tabs.padding` must be set here since it's a python dict
extraConfig = ''
c.tabs.padding = {
'bottom': 4,
'left': 4,
'right': 4,
'top': 4
}
'';
};
home.packages = with pkgs; [
fuzzel
( (
pkgs.makeDesktopItem { makeDesktopItem {
name = "qutebrowser"; name = "qutebrowser";
exec = "qutebrowser %u"; exec = "qutebrowser %u";
comment = "Qutebrowser"; comment = "Qutebrowser";

View file

@ -5,6 +5,8 @@
}: { }: {
imports = [ imports = [
./waybar.nix ./waybar.nix
./idle.nix
./mako.nix
./gammastep.nix ./gammastep.nix
../foot ../foot
]; ];

41
hmModules/sway/idle.nix Normal file
View file

@ -0,0 +1,41 @@
{pkgs, ...}: {
services.swayidle = let
swaylockWithArgs = pkgs.writeScriptBin "swaylockWithArgs" ''
${pkgs.swaylock-effects}/bin/swaylock \
--daemonize \
--screenshots \
--clock \
--indicator \
--indicator-radius 100 \
--indicator-thickness 7 \
--effect-blur 7x5 \
--effect-vignette 0.5:0.5 \
--ring-color bb00cc \
--key-hl-color 880033 \
--line-color 00000000 \
--inside-color 00000088 \
--separator-color 00000000 \
--grace 2 \
--fade-in 0.2
'';
swaylockCommand = "${swaylockWithArgs}/bin/swaylockWithArgs";
in {
enable = true;
events = [
{
event = "before-sleep";
command = swaylockCommand;
}
{
event = "lock";
command = swaylockCommand;
}
];
timeouts = [
{
timeout = 600;
command = swaylockCommand;
}
];
};
}

6
hmModules/sway/mako.nix Normal file
View file

@ -0,0 +1,6 @@
{
programs.mako = {
enable = true;
defaultTimeout = 5000;
};
}