aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3b0f54d..56ffccb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
REPO_CHANGES := $(shell git status --porcelain | wc -l)
IS_FEDORA := $(shell command -v dnf > /dev/null && test -f /etc/fedora-release; echo $$?)
+include environment.mk
+
.PHONY: console
console:
ifneq ($(REPO_CHANGES),0)
@@ -38,6 +40,15 @@ fedora: console
ifneq ($(IS_FEDORA),0)
$(warning not fedora workstation, skipping.)
else
+ifeq ($(COMPUTER_IDENTITY),desktop)
+ ln -sfr stow/swaylock/.config/swaylock/config.4k stow/swaylock/.config/swaylock/config
+ ln -sfr stow/foot/.config/foot/foot.4k.ini stow/foot/.config/foot/foot-environment.ini
+ ln -sfr stow/waybar/.config/waybar/config.4k stow/waybar/.config/waybar/config
+else
+ ln -sfr stow/swaylock/.config/swaylock/config.1k stow/swaylock/.config/swaylock/config
+ ln -sfr stow/foot/.config/foot/foot.1k.ini stow/foot/.config/foot/foot-environment.ini
+ ln -sfr stow/waybar/.config/waybar/config.1k stow/waybar/.config/waybar/config
+endif
stow --adopt --dir=stow --target=$(HOME) foot
stow --adopt --dir=stow --target=$(HOME) mako
stow --adopt --dir=stow --target=$(HOME) rofi
@@ -53,7 +64,10 @@ else
systemctl --user enable udiskie.service
systemctl --user enable xdg-names.service
endif
- sudo systemctl enable --now dnf-automatic-install.timer
+ sudo systemctl enable --now dnf-automatic.timer
+ mkdir -p ${HOME}/.local/share/backgrounds
+ ln -sf /usr/share/backgrounds/default.png ${HOME}/.local/share/backgrounds/default
+ ln -sf /usr/share/backgrounds/default.png ${HOME}/.local/share/backgrounds/locked
endif
.PHONY: restore