Better location handing
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ config, pkgs, lib, flakeRoot, ... }:
|
||||
let
|
||||
repoWallpaperDir = flakeRoot + "/assets/conf/desktop/wallpaper";
|
||||
userRelRoot = "nixos_conf/wallpaperstuff/pictures";
|
||||
userRelRoot = "nixos_conf/wallpaperstuff";
|
||||
userAbsRoot = "${config.home.homeDirectory}/${userRelRoot}";
|
||||
scriptRel = "hypr/scripts/wpaperd-workspace-1to9.sh";
|
||||
|
||||
@@ -59,7 +59,7 @@ in
|
||||
img_for_ws() {
|
||||
local n="$1"
|
||||
case "$n" in
|
||||
1|2|3|4|5|6|7|8|9) printf '%s/wallpaper%s.jpg\n' "$ROOT" "$n" ;;
|
||||
1|2|3|4|5|6|7|8|9) printf '%s/pictures/wallpaper%s.jpg\n' "$ROOT" "$n" ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user