From 0f7392671c55826977193325bd6cd13d4418a370 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 12 Jul 2023 11:32:32 -0500 Subject: [PATCH] adding some tweaks to env --- .config/hypr/hyprland.conf | 1 + guix/home.nix | 4 ++++ guix/home.scm | 3 ++- home/home.nix | 6 +++--- scripts/transcode-video.sh | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index fa4f58f..58239cb 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -103,6 +103,7 @@ misc { # for windows named/classed as abc and xyz windowrule=opaque,firefox windowrule=float,dolphin +windowrule=float,org.freedesktop.impl.portal.desktop.kde windowrule=size 60% 60%,dolphin windowrule=float,mpv windowrule=float,title:Picture-in-Picture diff --git a/guix/home.nix b/guix/home.nix index e61a868..7a978e5 100644 --- a/guix/home.nix +++ b/guix/home.nix @@ -10,6 +10,10 @@ swww starship # The guix version of dolphin isn't built for wayland and can't find the icon theme + # dolphin + # kdenlive + # glaxnimate + # ark pmbootstrap element-desktop-wayland diff --git a/guix/home.scm b/guix/home.scm index 59e9ff6..4a63b76 100644 --- a/guix/home.scm +++ b/guix/home.scm @@ -114,7 +114,7 @@ "dolphin" "ffmpegthumbs" "ffmpegthumbnailer" - "kio-fuse" + "kio" "kio-extras" "nautilus" "dconf" @@ -123,6 +123,7 @@ "tracker-miners" "gvfs" "kfind" + "kiconthemes" "ark" "kdenlive-fix" "gimp" diff --git a/home/home.nix b/home/home.nix index c8bbc5b..83cf49d 100644 --- a/home/home.nix +++ b/home/home.nix @@ -22,13 +22,13 @@ # Let Home Manager install and manage itself. programs.home-manager.enable = true; - xdg.userDirs.desktop = "${config.home.homeDirectory}/desk"; + xdg.userDirs.desktop = "${config.home.homeDirectory}"; xdg.userDirs.documents = "${config.home.homeDirectory}/docs"; xdg.userDirs.download = "${config.home.homeDirectory}/dls"; xdg.userDirs.music = "${config.home.homeDirectory}/music"; xdg.userDirs.pictures = "${config.home.homeDirectory}/pics"; - xdg.userDirs.publicShare = "${config.home.homeDirectory}/public"; - # xdg.userDirs.temptlates = "${config.home.homeDirectory}/templates"; + xdg.userDirs.publicShare = "${config.home.homeDirectory}"; + xdg.userDirs.temptlates = "${config.home.homeDirectory}"; xdg.userDirs.videos = "${config.home.homeDirectory}/vids"; accounts.email = { diff --git a/scripts/transcode-video.sh b/scripts/transcode-video.sh index 578a049..2de94e0 100755 --- a/scripts/transcode-video.sh +++ b/scripts/transcode-video.sh @@ -1,6 +1,6 @@ #!/bin/sh for filename in *.mov; do - ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i "${filename}" -c:v hevc_nvenc -c:a aac -crf 22 "${filename%.*}".mp4 + ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device /dev/dri/renderD128 -i "${filename}" -vf 'format=nv12,hwupload' -c:v hevc_vaapi -c:a aac -crf 22 "${filename%.*}".mp4 rm $filename done