From bd23b3785bca05e497e6d4047cca28c5682ed23e Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 7 Sep 2024 11:14:29 -0500 Subject: [PATCH] Improved media editing on hyprland --- profiles/work/home.nix | 9 +++++++-- user/app/ranger/rifle.conf | 3 ++- user/wm/hyprland/hyprland.nix | 7 +++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/profiles/work/home.nix b/profiles/work/home.nix index 40dfeaa..27335c9 100644 --- a/profiles/work/home.nix +++ b/profiles/work/home.nix @@ -110,12 +110,16 @@ # Media gimp krita + pinta inkscape (pkgs-stable.lollypop.override { youtubeSupport = false; }) vlc mpv yt-dlp - blender-hip + (blender-hip.override { + cudaSupport = true; + }) + libresprite # cura is moderately broken on wayland, so use xwayland (pkgs-stable.cura.overrideAttrs (oldAttrs: { postInstall = oldAttrs.postInstall + ''cp -rf ${(pkgs.makeDesktopItem { @@ -179,7 +183,8 @@ libffi zlib nodePackages.ungit ventoy - ]) ++ ([ pkgs-kdenlive.kdenlive ]); + kdePackages.kdenlive + ]); home.file.".local/share/pixmaps/nixos-snowflake-stylix.svg".source = config.lib.stylix.colors { diff --git a/user/app/ranger/rifle.conf b/user/app/ranger/rifle.conf index 22f09e3..d9bbdb4 100644 --- a/user/app/ranger/rifle.conf +++ b/user/app/ranger/rifle.conf @@ -142,8 +142,9 @@ ext cbz, has zathura, X, flag f = zathura -- "$@" #------------------------------------------- # Images #------------------------------------------- -mime ^image, has krita, X, flag f = krita "$@" mime ^image/svg, has inkscape, X, flag f = inkscape "$@" +mime ^image, has pinta, X, flag f = pinta "$@" +mime ^image, has krita, X, flag f = krita "$@" #------------------------------------------- # Archives diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index eb41144..85cb442 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -315,6 +315,13 @@ in windowrulev2 = float,class:^(pokefinder)$ windowrulev2 = float,class:^(Waydroid)$ + windowrulev2 = float,class:^(blender)$ + windowrulev2 = float,class:^(org.inkscape.Inkscape)$ + windowrulev2 = float,class:^(pinta)$ + windowrulev2 = float,class:^(krita)$ + windowrulev2 = float,class:^(Gimp) + windowrulev2 = float,class:^(Gimp) + windowrulev2 = float,class:^(libresprite)$ windowrulev2 = opacity 0.80,title:ORUI windowrulev2 = opacity 1.0,class:^(org.qutebrowser.qutebrowser),fullscreen:1