diff options
author | Matt Singleton <matt@xcolour.net> | 2024-11-06 15:56:54 -0600 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2024-11-06 15:56:54 -0600 |
commit | 2be10e1420afea58f859ea4ec5b7565ac1849de2 (patch) | |
tree | 715f93c1ca6e7285c948142c49ebf909c2a367da /Makefile | |
parent | 0b463ce1acc22f128ff1fd1e4cf48c1612c4b946 (diff) |
manage configs for machines with different screen sizes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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 |