seems right

This commit is contained in:
unexplrd
2025-02-06 14:23:13 +02:00
parent 2e6e28ef32
commit d76e7f4f71
10 changed files with 88 additions and 92 deletions

View File

@ -0,0 +1,14 @@
{config, ...}: {
xdg.userDirs = {
enable = true;
createDirectories = true;
templates = "${config.home.homeDirectory}/temps";
publicShare = "${config.home.homeDirectory}/pub";
desktop = "${config.home.homeDirectory}/desktop";
download = "${config.home.homeDirectory}/downloads";
documents = "${config.home.homeDirectory}/docs";
pictures = "${config.home.homeDirectory}/pics";
videos = "${config.home.homeDirectory}/vids";
music = "${config.home.homeDirectory}/music";
};
}

View File

@ -1,5 +1,6 @@
{
imports = [
./common/xdg-userdirs.nix
./hyprland/default.nix
./niri/default.nix
./plasma/default.nix

View File

@ -7,6 +7,8 @@
}: let
cfg = config.desktop.hyprland;
hostname = osConfig.networking.hostName;
xdgPictures =
config.xdg.userDirs.pictures;
in {
options = {
desktop.hyprland.enable =
@ -225,10 +227,11 @@ in {
"$modCtrl, B, exec, $webBrowser"
"$modCtrl, V, exec, $clipboardManager"
", Print, exec, flameshot gui" #${xdg.userDirs.pictures}/screenshots/"
#", Print, exec, grimblast --freeze copy area" #${xdg.userDirs.pictures}/screenshots/"
#"CTRL, Print, exec, grimblast --freeze copy active" #${xdg.userDirs.pictures}/screenshots/"
#"SHIFT, Print, exec, grimblast --freeze copy output" #${xdg.userDirs.pictures}/screenshots/"
# ", Print, exec, flameshot gui" #${xdg.userDirs.pictures}/screenshots/"
", Print, exec, ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp -o -r -c '\#\#ff0000ff')\" -t ppm - | ${pkgs.satty}/bin/satty --filename - --fullscreen --output-filename ${xdgPictures}/screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png"
# ", Print, exec, grimblast --freeze copy area" #${xdg.userDirs.pictures}/screenshots/"
# "CTRL, Print, exec, grimblast --freeze copy active" #${xdg.userDirs.pictures}/screenshots/"
# "SHIFT, Print, exec, grimblast --freeze copy output" #${xdg.userDirs.pictures}/screenshots/"
# navigation
#"$modCtrl, N,"
"$mod, $left, hy3:movefocus, l"
@ -1611,18 +1614,6 @@ in {
"x-scheme-handler/unknown" = web_browser;
};
};
xdg.userDirs = {
enable = true;
createDirectories = true;
templates = "${config.home.homeDirectory}/temps";
publicShare = "${config.home.homeDirectory}/pub";
desktop = "${config.home.homeDirectory}/desktop";
download = "${config.home.homeDirectory}/downloads";
documents = "${config.home.homeDirectory}/docs";
pictures = "${config.home.homeDirectory}/pics";
videos = "${config.home.homeDirectory}/vids";
music = "${config.home.homeDirectory}/music";
};
systemd.user.settings.Manager.DefaultEnvironment = {
# QT_QPA_PLATFORMTHEME = "gtk3";
QT_QPA_PLATFORM = "wayland";

View File

@ -1347,18 +1347,6 @@ in {
"x-scheme-handler/unknown" = web_browser;
};
};
xdg.userDirs = {
enable = true;
createDirectories = true;
templates = "${config.home.homeDirectory}/temps";
publicShare = "${config.home.homeDirectory}/pub";
desktop = "${config.home.homeDirectory}/desktop";
download = "${config.home.homeDirectory}/downloads";
documents = "${config.home.homeDirectory}/docs";
pictures = "${config.home.homeDirectory}/pics";
videos = "${config.home.homeDirectory}/vids";
music = "${config.home.homeDirectory}/music";
};
systemd.user.settings.Manager.DefaultEnvironment = {
# QT_QPA_PLATFORMTHEME = "gtk3";
QT_QPA_PLATFORM = "wayland";

View File

@ -14,19 +14,7 @@ in {
config = mkIf cfg.enable {
stylix.targets.kde.enable = true;
home.packages = with pkgs; [
wl-clipboard
wl-clipboard-rs
];
xdg.userDirs = {
enable = true;
createDirectories = true;
templates = "${config.home.homeDirectory}/temps";
publicShare = "${config.home.homeDirectory}/pub";
desktop = "${config.home.homeDirectory}/desktop";
download = "${config.home.homeDirectory}/downloads";
documents = "${config.home.homeDirectory}/docs";
pictures = "${config.home.homeDirectory}/pics";
videos = "${config.home.homeDirectory}/vids";
music = "${config.home.homeDirectory}/music";
};
};
}