Skip to content

5. Other Tips

For screen recording I use gpu-screen-recorder with this command.

Terminal window
gpu-screen-recorder \
-w screen \
-f 60 \
-o "$HOME/Videos/recording_$(date +%F_%H-%M-%S).mp4" &

For ending the recording I use: pkill -f gpu-screen-recorder. I have banded those commands to shortcuts inside the Hyprland.

I use Grimblast with shortcuts like this:

"Super, O, exec, grimblast -n copy area"
"Super Control_L, O, exec, grimblast -n edit area"
", Print, exec, grimblast copy area"

I have some fonts that are not available as a native NixOS package. Because of this I need to import them directly from a .ttf/.otf file. To do this I’ve written this small module. The replace the <GlobalPathToDirWithYourFontFiles> to make it work on your system.

{
flake.nixosModules.fontsImport = {pkgs, ...}: let
myLocalFonts = pkgs.runCommand "my-local-fonts" {} ''
mkdir -p $out/share/fonts
cp <GlobalPathToDirWithYourFontFiles>/*.{ttf,otf} $out/share/fonts/ || true
'';
in {
fonts.packages = [
myLocalFonts
];
};
}

If you find anything to improve in this project’s code, please create an issue describing it on the GitHub repository for this project. For website-related issues, create an issue here.

All pages on this site are written by a human, and you can access everything for free without ads. If you find this work valuable, please give a star to the GitHub repository for this project.