feat: firefox hw accel and fuzzel launcher

This commit is contained in:
Patrick 2023-09-08 17:29:15 +02:00
parent 3de23c6cb4
commit cab1f193f3
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
6 changed files with 40 additions and 13 deletions

View file

@ -2,7 +2,7 @@
imports = [
./kitty.nix
./sway
./rofi.nix
./fuzzel.nix
./firefox.nix
];
home = {

View file

@ -1,4 +1,17 @@
{config, ...}: {
{
config,
pkgs,
...
}: let
inherit
(pkgs)
fetchFromGitHub
;
inherit
(builtins)
readFile
;
in {
home = {
sessionVariables = {
# Firefox touch support
@ -19,8 +32,6 @@
programs.firefox = {
enable = true;
profiles.patrick = {
# For this to work you need to enable about:config
# toolkit.legacyUserProfileCustomizations.stylesheets = true
userChrome = ''
#TabsToolbar {
visibility: collapse;
@ -34,6 +45,19 @@
height: 32px !important;
}
'';
settings = {
# user chrome soll funzen
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
# nvidia hardware video decode
# https://github.com/elFarto/nvidia-vaapi-driver
"media.ffmpeg.vaapi.enabled" = true;
"media.rdd-ffmpeg.enabled" = true;
"gfx.x11-egl.force-enabled" = true;
# enable if grapics card support av1
"media.av1.enabled" = false;
"widget.dmabuf.force-enabled" = true;
# privacy is mir auch wichtig
};
};
};
}

View file

@ -0,0 +1,7 @@
{pkgs, ...}: {
home.packages = with pkgs; [
(writeShellScriptBin "fuzzel" ''
${fuzzel}/bin/fuzzel --background-color=000000ff
'')
];
}

View file

@ -14,7 +14,7 @@
{
modifier = "Mod4";
terminal = "kitty";
menu = "rofi -show run";
menu = "fuzzel";
input = {
"*" = {
xkb_layout = "de,de";

View file

@ -4,13 +4,10 @@
...
}: {
home.persistence."/state" = {
files = with lib.lists;
[
".ssh/known_hosts"
]
++ optionals config.programs.rofi.enable [
#".cache/rofi-3.runcache"
];
files = with lib.lists; [
".ssh/known_hosts"
".cache/fuzzel"
];
directories = with lib.lists;
[]
++

View file

@ -3,7 +3,6 @@
packages = with pkgs; [
nextcloud-client
discord
sirula
];
};
}