From 2be10e1420afea58f859ea4ec5b7565ac1849de2 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Wed, 6 Nov 2024 15:56:54 -0600 Subject: manage configs for machines with different screen sizes --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3