bringing back hyprland

This commit is contained in:
ari committed 2026-08-25 17:04:33 -04:00
1 parent aa41228d27
commit 9d9a890877
43 files changed
+976 -1036

No files matched your search

+7 -2
View File
@@ -3,14 +3,19 @@
makeHyperlinkScriptToConfigs =
{ filePath
, configSource
# Where the symlink is created under ~/.config. Defaults to filePath so
# existing callers keep linking ~/.config/<filePath> -> <configSource>/<filePath>.
# Set this when the source lives under a subdir but should surface at a
# flatter ~/.config path, e.g. filePath = "fwbook/hypr", targetPath = "hypr".
, targetPath ? filePath
}:
let
homePath = "$HOME/.config/${filePath}";
homePath = "$HOME/.config/${targetPath}";
sourcePath = "${configSource}/${filePath}";
in
''
rm -f "${homePath}"
if [[ ! -h "$HOME/.config/${filePath}" ]]; then
if [[ ! -h "${homePath}" ]]; then
ln -s "${sourcePath}" "${homePath}" || {
echo "Failed to create symlink for ${filePath} at ${homePath}"
exit 1