firefox BAD chromium GOOD

This commit is contained in:
dusk 2022-11-05 23:10:31 +03:00
parent 363f1769f7
commit 01f7718001
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
5 changed files with 46 additions and 11 deletions

View File

@ -125,7 +125,7 @@
virtualisation = {
waydroid.enable = false;
podman.enable = false;
docker.enable = true;
docker.enable = false;
libvirtd.enable = false;
};

View File

@ -32,6 +32,8 @@ in {
(mkRule "firefox" "Doc-View")
(mkRule ".firefox-wrapped" "Doc-View")
# wm
(mkRule ".gnome-shell-wrapped" "LowLatency_RT")
(mkRule "gnome-shell" "LowLatency_RT")
(mkRule "Hyprland" "LowLatency_RT")
(mkRule "rofi" "LowLatency_RT")
(mkRule "wlsunset" "BG_CPUIO")
@ -39,6 +41,8 @@ in {
# term
(mkRule "wezterm-gui" "Doc-View")
(mkRule "foot" "Doc-View")
(mkRule "gnome-terminal" "Doc-View")
(mkRule ".gnome-terminal-wrapped" "Doc-View")
# other
(mkRule "syncthing" "BG_CPUIO")
];

View File

@ -0,0 +1,31 @@
{config, ...}: {
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [".config/chromium"];
programs.chromium = {
enable = true;
commandLineArgs = [
"--ozone-platform-hint=auto"
"--enable-features=WaylandWindowDecorations"
"--enable-crashpad"
"--flag-switches-begin"
"--enable-gpu-rasterization"
"--enable-unsafe-webgpu"
"--enable-zero-copy"
"--ignore-gpu-blocklist"
"--disable-gpu-driver-bug-workarounds"
"--ozone-platform-hint=wayland"
"--enable-features=SystemNotifications,WaylandWindowDecorations,CanvasOopRasterization,EnableDrDc,RawDraw,WebRTCPipeWireCapturer"
"--disable-features=Vulkan"
"--flag-switches-end"
"--disk-cache-dir=\"$XDG_RUNTIME_DIR/chromium-cache\""
"--process-per-site"
];
extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
"nngceckbapebfimnlniiiahkandclblb" # bitwarden
"eimadpbcbfnmbkopoojfekhnkhdbieeh" # dark reader
"clngdbkpkpeebahjckkjfobafhncgmne" # stylus
"hlepfoohegkhhmjieoechaddaejaokhf" # refined github
"annfbnbieaamhaimclajlajpijgkdblo" # dark theme
];
};
}

View File

@ -11,7 +11,7 @@
};
in {
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [
".config/discord"
".config/discordcanary"
];
xdg.configFile."discordcanary/settings.json".text = builtins.toJSON {
openasar = {
@ -28,17 +28,17 @@ in {
home.packages = let
flags = [
"--flag-switches-begin"
"--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,Vulkan"
"--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer"
"--flag-switches-end"
"--ozone-platform=wayland"
"--enable-webrtc-pipewire-capturer"
# "--disable-gpu-memory-buffer-video-frames"
# "--enable-accelerated-mjpeg-decode"
# "--enable-accelerated-video"
# "--enable-gpu-rasterization"
# "--enable-native-gpu-memory-buffers"
# "--enable-zero-copy"
# "--ignore-gpu-blocklist"
"--disable-gpu-memory-buffer-video-frames"
"--enable-accelerated-mjpeg-decode"
"--enable-accelerated-video"
"--enable-gpu-rasterization"
"--enable-native-gpu-memory-buffers"
"--enable-zero-copy"
"--ignore-gpu-blocklist"
];
pkg =
(pkgs.discord-canary.override {

View File

@ -101,7 +101,7 @@ in {
# ["hyprland" "foot"]
# desktop stuff
["wayland"]
["firefox" "discord"]
["chromium"]
# cli stuff
["zoxide" "zsh" "fzf" "starship" "direnv"]
# dev stuff