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 = { virtualisation = {
waydroid.enable = false; waydroid.enable = false;
podman.enable = false; podman.enable = false;
docker.enable = true; docker.enable = false;
libvirtd.enable = false; libvirtd.enable = false;
}; };

View File

@ -32,6 +32,8 @@ in {
(mkRule "firefox" "Doc-View") (mkRule "firefox" "Doc-View")
(mkRule ".firefox-wrapped" "Doc-View") (mkRule ".firefox-wrapped" "Doc-View")
# wm # wm
(mkRule ".gnome-shell-wrapped" "LowLatency_RT")
(mkRule "gnome-shell" "LowLatency_RT")
(mkRule "Hyprland" "LowLatency_RT") (mkRule "Hyprland" "LowLatency_RT")
(mkRule "rofi" "LowLatency_RT") (mkRule "rofi" "LowLatency_RT")
(mkRule "wlsunset" "BG_CPUIO") (mkRule "wlsunset" "BG_CPUIO")
@ -39,6 +41,8 @@ in {
# term # term
(mkRule "wezterm-gui" "Doc-View") (mkRule "wezterm-gui" "Doc-View")
(mkRule "foot" "Doc-View") (mkRule "foot" "Doc-View")
(mkRule "gnome-terminal" "Doc-View")
(mkRule ".gnome-terminal-wrapped" "Doc-View")
# other # other
(mkRule "syncthing" "BG_CPUIO") (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 { in {
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [ home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [
".config/discord" ".config/discordcanary"
]; ];
xdg.configFile."discordcanary/settings.json".text = builtins.toJSON { xdg.configFile."discordcanary/settings.json".text = builtins.toJSON {
openasar = { openasar = {
@ -28,17 +28,17 @@ in {
home.packages = let home.packages = let
flags = [ flags = [
"--flag-switches-begin" "--flag-switches-begin"
"--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,Vulkan" "--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer"
"--flag-switches-end" "--flag-switches-end"
"--ozone-platform=wayland" "--ozone-platform=wayland"
"--enable-webrtc-pipewire-capturer" "--enable-webrtc-pipewire-capturer"
# "--disable-gpu-memory-buffer-video-frames" "--disable-gpu-memory-buffer-video-frames"
# "--enable-accelerated-mjpeg-decode" "--enable-accelerated-mjpeg-decode"
# "--enable-accelerated-video" "--enable-accelerated-video"
# "--enable-gpu-rasterization" "--enable-gpu-rasterization"
# "--enable-native-gpu-memory-buffers" "--enable-native-gpu-memory-buffers"
# "--enable-zero-copy" "--enable-zero-copy"
# "--ignore-gpu-blocklist" "--ignore-gpu-blocklist"
]; ];
pkg = pkg =
(pkgs.discord-canary.override { (pkgs.discord-canary.override {

View File

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