-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
1424 lines (1173 loc) · 53.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env make -f
.ONESHELL:
.DEFAULT_GOAL := help
SHELL = /bin/bash
# .SHELLFLAGS := -eu -o pipefail -c # Useful debug options
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
COLOR_GREEN := \033[0;32m
COLOR_RED := \033[0;31m
COLOR_BLUE := \033[0;34m
COLOR_YELLOW := \033[0;33m
END_COLOR := \033[0m
INFO := $(COLOR_GREEN)
WARN := $(COLOR_YELLOW)
ERR := $(COLOR_RED)
colon := :
$(colon) := :
space := $(subst ,, )
dash := -
slash := /
export XDG_CONFIG_HOME ?= $(HOME)/.config
export XDG_DATA_HOME ?= $(HOME)/.local/share
export XDG_CACHE_HOME ?= $(HOME)/.cache
export XDG_PICTURES_DIR ?= $(HOME)/Private/Pictures
export NVM_DIR ?= $(XDG_DATA_HOME)/nvm
top := $(shell pwd)
now := $(shell date +%Y-%m-%d_%H:%M:%S)
uid := $(shell id -u)
model := $(shell (if command -v hostnamectl > /dev/null 2>&1; \
then hostnamectl | grep 'Hardware Model:' | sed 's/^.*: //'; \
else sudo dmidecode -s system-product-name ; fi) | tr "[:upper:]" "[:lower:]")
OS_RELEASE_EOL=$(shell grep -o 'SUPPORT_END=.*' /etc/os-release | sed 's/SUPPORT_END=//' )
INCLUDE = ./include
NVM_PATH = $(NVM_DIR)
NVM_CMD = . $(NVM_PATH)/nvm.sh && nvm
MAKEFILE_NAME := $(abspath $(lastword $(MAKEFILE_LIST)))
DOTFILES := $(abspath $(dir $(MAKEFILE_NAME)))
DOTHOME := $(abspath $(HOME)/.home)
BASHRCD := $(abspath $(HOME)/.bashrc.d)
HOME_BIN := $(abspath $(DOTHOME)/bin)
HOME_OPT := $(abspath $(DOTHOME)/opt)
PASS_HOME := $(abspath $(HOME)/.password-store)
PASS_EXT := $(abspath $(PASS_HOME)/.extensions)
VIVALDI_CF_SRC := $(DOTFILES)/.config/vivaldi/CustomUIModifications
VIVALDI_CF_DEST := $(XDG_CONFIG_HOME)/vivaldi/CustomUIModifications
ULAUNCHER_EXT := $(XDG_DATA_HOME)/ulauncher/extensions
STREAMDECK_CF_SRC := $(DOTFILES)/.config/streamdeck-ui
STREAMDECK_CF_DEST := $(XDG_CONFIG_HOME)/streamdeck-ui
INSTALL =
PATCH =
UPDATE =
CLEAN =
SETUP =
CHECK =
BACKUP =
ARC_THEME_SOURCE ?= git
########################################################################################################################
#
# Includes
#
# Include model-specific patches
-include $(INCLUDE)/$(subst $(space),$(dash),$(model)).mk
########################################################################################################################
#
# Functions
#
# Remove all URI components except package name and arch if the package is an URL
# Force package installation if `-B` flag is present
define dnf
$(foreach pkg, $(strip $(1)), \
$(eval $@_PACKAGE = $(pkg)) \
$(eval $@_SOURCE = $(pkg)) \
$(if $(findstring $(slash),$($@_PACKAGE)), \
$(eval $@_PACKAGE = $(subst .rpm,$(space),$(lastword $(subst $(slash),$(space),$(pkg)))))) \
$(if $(findstring B,$(firstword -$(MAKEFLAGS))), \
sudo dnf -y install $($@_SOURCE);, \
rpm -q $($@_PACKAGE) >& /dev/null || sudo dnf -y install $($@_SOURCE);))
endef
define clone
mkdir -pv $(HOME_OPT)
if [ ! -d $(HOME_OPT)/$(1) ]; then git clone 'https://github.com/obatiuk/$(1)' $(HOME_OPT)/$(1); fi
cd $(HOME_OPT)/$(1) && git pull
endef
define log
echo -e "$(1)$(2)$(END_COLOR)"
endef
########################################################################################################################
#
# Packages
#
# All rpm packages that are not directly referenced
packages_rpm := rpm dnf redhat-lsb rpmconf pwgen systemd pam-u2f pamu2fcfg xdg-user-dirs audit golang akmods mokutil
packages_rpm += iwl*-firmware fwupd bluez bash bash-completion avahi avahi-tools samba-client tree brightnessctl
packages_rpm += hplip hplip-gui xsane ffmpeg feh nano htop btop fzf less xdg-utils httpie lynis cheat tldr
packages_rpm += ImageMagick baobab gimp gparted gnome-terminal seahorse cups duf ssh-audit coreutils openssl
packages_rpm += libreoffice-core libreoffice-writer libreoffice-calc libreoffice-filters minder firefox
packages_rpm += gnome-pomodoro gnome-clocks fd-find ydiff webp-pixbuf-loader usbguard
packages_rpm += fastfetch bc usbutils pciutils acpi policycoreutils-devel pass-otp pass-audit
packages_rpm += gnupg2 pinentry-gtk pinentry-tty pinentry-gnome3 gedit gedit-plugins gedit-plugin-editorconfig
packages_rpm += gvfs-mtp screen tio dialog catimg cifs-utils sharutils binutils
packages_rpm += restic rsync rclone micro wget xsensors lm_sensors curl jq
packages_rpm += unrar lynx crudini sysstat p7zip nmap cabextract iotop qrencode uuid
packages_rpm += git diffutils git-lfs git-extras git-credential-libsecret git-crypt bat mc gh perl-Image-ExifTool
packages_rpm += snapd calibre clamav clamav-freshclam
packages_rpm += fedora-workstation-repositories
packages_rpm += adwaita-icon-theme adwaita-cursor-theme dconf
packages_rpm += python3 python3-pip python3-devel python3-virtualenv
# DNF plugins
plugins_dnf := dnf-plugins-core dnf-plugin-diff python3-dnf-plugin-tracer dnf-plugin-system-upgrade
plugins_dnf += remove-retired-packages
# All `snap` packages that are not directly referenced
packages_snap := chromium-ffmpeg brave intellij-idea-community
# All **user** `flatpak` packages that are not directly referenced
packages_flatpak := com.vscodium.codium org.gnupg.GPA org.gtk.Gtk3theme.Arc-Darker eu.betterbird.Betterbird
# Font packages
packages_fonts := google-droid-sans-fonts google-droid-serif-fonts google-droid-sans-mono-fonts
packages_fonts += google-roboto-fonts adobe-source-code-pro-fonts dejavu-sans-fonts dejavu-sans-mono-fonts
packages_fonts += dejavu-serif-fonts liberation-fonts-common liberation-mono-fonts liberation-narrow-fonts
packages_fonts += liberation-sans-fonts liberation-serif-fonts jetbrains-mono-fonts-all fontawesome4-fonts
# GNOME Shell extensions
packages_gshell := gnome-shell-extension-dash-to-dock gnome-shell-extension-appindicator
packages_gshell += gnome-shell-extension-frippery-move-clock gnome-shell-extension-gsconnect
packages_gshell += gnome-shell-extension-sound-output-device-chooser gnome-shell-extension-freon
packages_gshell += gnome-shell-extension-blur-my-shell gnome-shell-extension-user-theme
packages_gshell += gnome-shell-extension-no-overview
ext_gshell := https\://extensions.gnome.org/extension/1401/bluetooth-quick-connect
ext_gshell += https\://extensions.gnome.org/extension/3780/ddterm
ext_gshell += https\://extensions.gnome.org/extension/4451/logo-menu
ext_gshell += https\://extensions.gnome.org/extension/4470/media-controls
ext_gshell += https\://extensions.gnome.org/extension/1112/screenshot-tool
ext_gshell += https\://extensions.gnome.org/extension/277/impatience/
# VSCode extensions
ext_vscode := EditorConfig.EditorConfig jianbingfang.dupchecker mechatroner.rainbow-csv bierner.markdown-mermaid
ext_vscode += bpruitt-goddard.mermaid-markdown-syntax-highlighting eamodio.gitlens ecmel.vscode-html-css
ext_vscode += humao.rest-client jebbs.plantuml moshfeu.compare-folders ms-azuretools.vscode-docker ph-hawkins.arc-plus
ext_vscode += PKief.material-icon-theme redhat.java redhat.vscode-xml redhat.vscode-yaml
ext_vscode += streetsidesoftware.code-spell-checker timonwong.shellcheck usernamehw.errorlens vscjava.vscode-maven
ext_vscode += yzhang.markdown-all-in-one
# Ulauncher extensions
ext_ulauncher += ulauncher-emoji.git pass-ulauncher.git pass-for-ulauncher.git pass-otp-for-ulauncher.git
ext_ulauncher += ulauncher-obsidian.git ulauncher-numconverter.git ulauncher-list-keywords.git
# IntelliJ extensions
ext_intellij := ru.adelf.idea.dotenv lermitage.intellij.battery.status Docker name.kropp.intellij.makefile
ext_intellij += com.jetbrains.packagesearch.intellij-plugin com.jetbrains.plugins.ini4idea
# micro extensions
ext_micro += $(addprefix micro_,editorconfig fzf filemanager)
vivaldi_conf_files := $(shell find .config/vivaldi/CustomUIModifications -type f -name '*.*')
vivaldi_conf_dest_files := $(addprefix $(HOME)/, $(vivaldi_conf_files))
streamdeck_conf_files := $(shell find .config/streamdeck-ui -type f -name '*.*')
streamdeck_conf_dest_files := $(addprefix $(HOME)/, $(streamdeck_conf_files))
ext_pass_dest_files = $(addprefix $(PASS_EXT)/,symlink.bash age.bash ln.bash file.bash update.bash tessen.bash \
meta.bash)
########################################################################################################################
#
# Package installation customizations and aliases
#
INSTALL += dnf-plugins
dnf-plugins: $(plugins_dnf)
INSTALL += dnf-settings
dnf-settings: | crudini
@sudo crudini --ini-options=nospace --set /etc/dnf/dnf.conf main fastestmirror 1
@sudo crudini --ini-options=nospace --set /etc/dnf/dnf.conf main max_parallel_downloads 10
@sudo crudini --ini-options=nospace --set /etc/dnf/dnf.conf main deltarpm true
@sudo crudini --ini-options=nospace --set /etc/dnf/dnf.conf main ip_resolve 4
INSTALL += ecryptfs-utils
ecryptfs-utils:
@$(call dnf,$@)
@sudo modprobe ecryptfs
@sudo usermod -aG ecryptfs '$(USER)'
INSTALL += fonts_better
fonts_better: /etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:chriscowleyunix\:better_fonts.repo
@$(call dnf,fontconfig-enhanced-defaults fontconfig-font-replacements)
INSTALL += fonts_ms
fonts_ms:
@$(call dnf,http://sourceforge.net/projects/mscorefonts2/files/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm)
INSTALL += fonts
fonts: $(packages_fonts) fonts_better fonts_ms
INSTALL += flatpak
flatpak: gnome-desktop
@$(call dnf,$@)
@flatpak remotes | grep 'flathub' > /dev/null || flatpak remote-add --if-not-exists \
flathub https://flathub.org/repo/flathub.flatpakrepo
@flatpak --user remotes | grep 'flathub' > /dev/null || flatpak --user remote-add --if-not-exists \
flathub https://flathub.org/repo/flathub.flatpakrepo
@flatpak install --system org.gtk.Gtk3theme.Arc-Darker
INSTALL += nvm
nvm: | git
@mkdir -pv $(NVM_PATH)
@PROFILE=/dev/null bash -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash'
INSTALL += npm
npm: | nvm
@. $(NVM_PATH)/nvm.sh && nvm install --lts
INSTALL +=git-split-diffs
git-split-diffs: npm
@. $(NVM_PATH)/nvm.sh && npm install -g git-split-diffs
# Disable GNOME search engine
INSTALL += disable-gnome-tracker
disable-gnome-tracker: | gnome-desktop gnome-tracker-settings
-@sudo systemctl --user mask \
tracker-extract-3.service \
tracker-miner-fs-3.service \
tracker-miner-rss-3.service \
tracker-writeback-3.service \
tracker-xdg-portal-3.service \
tracker-miner-fs-control-3.service
-@tracker3 reset -s -r || true
INSTALL += docker
docker: /etc/yum.repos.d/docker-ce.repo | systemd
@sudo dnf -y remove --exclude=container-selinux \
docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
@$(call dnf,docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin)
@sudo groupadd --force docker
@sudo usermod -aG docker '$(USER)'
@sudo systemctl enable --now docker
INSTALL += ql700
ql700: | cups
@$(call dnf,https://download.brother.com/welcome/dlfp002191/ql700pdrv-3.1.5-0.i386.rpm)
# Fix QL-700 brother printer access when SELinux is enabled
# Source:
# - http://support.brother.com/g/s/id/linux/en/faq_prn.html?c=us_ot&lang=en&comple=on&redirect=on#f00115
# - http://www.pclinuxos.com/forum/index.php?topic=138727.0
@sudo restorecon -RFv /usr/lib/cups/filter/*
@sudo setsebool -P cups_execmem 1
@sudo setsebool mmap_low_allowed 1
INSTALL += codecs
codecs: | /etc/yum.repos.d/rpmfusion-free.repo /etc/yum.repos.d/rpmfusion-nonfree.repo /etc/yum.repos.d/fedora-cisco-openh264.repo
@sudo dnf -y --setopt=strict=0 install \
gstreamer{1,}-{ffmpeg,libav,vaapi,plugins-{good,ugly,bad{,-free,-nonfree,-freeworld,-extras}}}
@sudo dnf -y install *openh264
INSTALL += gnome-desktop
gnome-desktop:
@# Force group installation if -B flag is present
@$(if $(findstring B,$(firstword -$(MAKEFLAGS))), \
@sudo dnf -y group install $@, \
@sudo dnf group list installed -v | grep $@ > /dev/null || dnf -y group install $@)
INSTALL += google-chrome
google-chrome: | gnome-desktop /etc/yum.repos.d/google-chrome.repo
@$(call dnf,google-chrome-stable)
INSTALL += vivaldi-bin
vivaldi-bin: | gnome-desktop /etc/yum.repos.d/vivaldi-fedora.repo
@$(call dnf,vivaldi-stable)
INSTALL += vivaldi
vivaldi: | vivaldi-bin $(vivaldi_conf_dest_files)
INSTALL += opera
opera: | gnome-desktop /etc/yum.repos.d/opera.repo
@$(call dnf,opera-stable)
INSTALL += keybase
keybase: | gnome-desktop /etc/yum.repos.d/keybase.repo
@$(call dnf,$@)
INSTALL += arduino
arduino: flatpak
@flatpak -y --user install cc.arduino.arduinoide cc.arduino.IDE2
@sudo usermod -aG dialout,tty,lock '$(USER)'
INSTALL += vscode
vscode: | com.vscodium.codium $(ext_vscode)
INSTALL += ddcutil
ddcutil: | /etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:rockowitz\:ddcutil.repo
@$(call dnf,$@)
INSTALL += morewaita-icon-theme
morewaita-icon-theme: | /etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:dusansimic\:themes.repo
@$(call dnf,$@)
@sudo gtk-update-icon-cache -f -t /usr/share/icons/MoreWaita && xdg-desktop-menu forceupdate
INSTALL += ulauncher
ulauncher:
@$(call dnf,$@)
@systemctl --user daemon-reload
@systemctl --user enable --now ulauncher.service
INSTALL += ulauncher-extensions
ulauncher-extensions: ulauncher $(ext_ulauncher)
-@systemctl --user restart ulauncher.service
INSTALL += gnome-themes
gnome-themes: | gnome-desktop adwaita-icon-theme adwaita-cursor-theme morewaita-icon-theme arc-theme
INSTALL += gnome-shell-extensions
gnome-shell-extensions: | gnome-desktop $(packages_gshell) $(ext_gshell)
@gsettings set org.gnome.shell disable-user-extensions false
-@gnome-extensions disable '[email protected]'
-@gnome-extensions disable '[email protected]'
ifeq ($(ARC_THEME_SOURCE),git)
# `arc-theme` package from the official repository doesn't have latest patches
# Use patched Arc themes version from git: https://github.com/jnsh/arc-theme/blob/master/INSTALL.md
INSTALL += arc-theme
arc-theme: | gnome-desktop git arc-theme-git-install arc-them-git-build
arc-theme-git-install:
@sudo dnf -y remove arc-theme
# install pre-requisites
@$(call dnf,optipng gnome-themes-extra gtk-murrine-engine meson inkscape sassc glib2-devel gdk-pixbuf2 \
gtk3-devel gtk4-devel autoconf automake)
# Using SELF_CALL=xxx to avoid `inkscape` segfaults during build (https://gitlab.com/inkscape/inkscape/-/issues/4716)
arc-them-git-build:
@mkdir -pv $(HOME_OPT)
@rebuild_theme=false
@if [ ! -d $(HOME_OPT)/arc-theme ]; then
cd $(HOME_OPT) && git clone https://github.com/obatiuk/arc-theme --depth 1
cd $(HOME_OPT)/arc-theme && git pull
cd $(HOME_OPT)/arc-theme && meson setup --reconfigure --prefix=$(HOME)/.local \
-Dvariants=dark,darker \
-Dthemes=gnome-shell,gtk2,gtk3,gtk4 \
build
rebuild_theme=true
fi
@if [ $$rebuild_theme == true ] || [ ! z $$(cd $(HOME_OPT)/arc-theme && git diff --shortstat HEAD) ]; then
cd $(HOME_OPT)/arc-theme && git pull
cd $(HOME_OPT)/arc-theme && SELF_CALL=true bash -c 'meson install -C build'
mkdir -p $(HOME)/.themes
for theme in Arc{,-Dark,-Darker,-Lighter}{,-solid}; do
if [ -d $(XDG_DATA_HOME)/themes/$${theme} ]; then
ln -svfn $(XDG_DATA_HOME)/themes/$${theme} $(HOME)/.themes/$${theme}
fi
done
fi
UPDATE += arc-theme-git-update
arc-theme-git-update: | git arc-them-git-build
CLEAN += arch-theme-git-clean
arch-theme-git-clean:
@cd $(HOME_OPT)/arc-theme && meson compile --clean -C build
else
# Install `arc-theme` from the official repository. Updates will be tracked by default
INSTALL += arc-theme
arc-theme:
@$(call dnf,arc-theme)
@rm -rf $(HOME_OPT)/arc-theme
@rm -rf $(XDG_DATA_HOME)/themes/Arc{,-Dark,-Darker,-Lighter}{,-solid}
@rm -rf $(HOME)/.themes/Arc{,-Dark,-Darker,-Lighter}{,-solid}
endif
INSTALL += plymouth
plymouth:
@$(call dnf,$@ plymouth-system-theme)
@sudo plymouth-set-default-theme bgrt -R
@sudo grub2-mkconfig -o /etc/grub2.cfg
INSTALL += power-profiles-daemon
power-profiles-daemon:
@$(call dnf,$@)
@sudo systemctl enable --now power-profiles-daemon
INSTALL += pass
pass: | git
@$(call dnf,$@)
@mkdir -pv "$(HOME)/.password-store"
INSTALL += pass-extensions
pass-extensions: | pass pass-otp pass-audit $(ext_pass_dest_files)
INSTALL += authselect
authselect: | pam-u2f ecryptfs-utils
@# FIXME: add check if all settings are applied already
@$(call dnf,$@)
@authselect check \
&& sudo authselect select sssd with-ecryptfs with-fingerprint with-pam-u2f without-nullok -b \
|| $(call log,$(ERR),'Current authselect configuration is NOT valid. Aborting to avoid more damage.');
INSTALL += gnome-shell-extensions-bin
gnome-shell-extensions-bin: | gnome-desktop git
@$(call clone,install-gnome-extensions.git)
@ln -snvf $(HOME_OPT)/install-gnome-extensions.git/install-gnome-extensions.sh $(HOME_BIN)/install-gnome-extensions
@chmod u+x $(HOME_BIN)/install-gnome-extensions
UPDATE += gnome-shell-extensions-bin-update
gnome-shell-extensions-bin-update:
@if [ -d $(HOME_OPT)/install-gnome-extensions.git ]; then cd $(HOME_OPT)/install-gnome-extensions.git && git pull; fi
INSTALL += pip
pip: | python3 python3-pip
@python -m pip install --upgrade pip
INSTALL += streamdeck-ui
streamdeck-ui: | python3-devel pip $(streamdeck_conf_dest_files)
@$(call dnf,hidapi)
@python -m pip install streamdeck-linux-gui --user
INSTALL += smartmontools
smartmontools:
@$(call dnf,$@)
@sudo systemctl enable --now smartd
INSTALL += meld
meld: | gnome-desktop dconf
@$(call dnf,$@)
@dconf load '/' < $(INCLUDE)/meld.ini
INSTALL += obsidian
obsidian: | flatpak
#@flatpak install md.obsidian.Obsidian
INSTALL += steam
steam: | flatpak /etc/yum.repos.d/rpmfusion-nonfree.repo
@$(call dnf,steam-devices)
@flatpak install --user flathub com.valvesoftware.Steam \
com.valvesoftware.Steam.CompatibilityTool.Proton \
com.valvesoftware.Steam.Utility.gamescope \
org.freedesktop.Platform.VulkanLayer.gamescope
@flatpak override --user --filesystem=/run/udev:ro com.valvesoftware.Steam
INSTALL += snap
snap: | snapd /snap
@sudo snap set system refresh.retain=2
INSTALL += logrotate
logrotate:
@$(call dnf,$@)
@sudo systemctl enable --now logrotate.timer
# Add missing logrotate rules (F39)
@sudo tee /etc/logrotate.d/dnf <<- EOF
#
# Updated by dotfiles setup script on $$(date -I) by ${USER}
#
/var/log/hawkey.log /var/log/dnf.librepo.log /var/log/dnf.rpm.log /var/log/dnf.log {
missingok
notifempty
rotate 4
weekly
create 0600 root root
}
EOF
INSTALL += browserpass-bin
browserpass-bin:
@$(call clone,browserpass-native.git)
@cd $(HOME_OPT)/browserpass-native.git && make browserpass configure
@cd $(HOME_OPT)/browserpass-native.git && sudo make install
@cd $(HOME_OPT)/browserpass-native.git && make hosts-chrome-user hosts-firefox-user hosts-vivaldi-user \
policies-chrome-user policies-vivaldi-user
CLEAN += browserpass-clean
browserpass-clean:
@cd $(HOME_OPT)/browserpass-native.git && make clean
INSTALL += browserpass
browserpass: | git coreutils golang pass pass-extensions $(PASS_HOME)/.browserpass.json vivaldi google-chrome firefox \
browserpass-bin browserpass-clean
INSTALL += geoclue2
geoclue2: | crudini
@$(call dnf, $@)
@sudo crudini --ini-options=nospace --set /etc/geoclue/geoclue.conf wifi enable true
@sudo crudini --ini-options=nospace --set /etc/geoclue/geoclue.conf wifi url 'https://beacondb.net/v1/geolocate'
@sudo systemctl restart geoclue
INSTALL += proton-mail-bridge
proton-mail-bridge: | pass
@sudo dnf -y install https://proton.me/download/bridge/protonmail-bridge-3.13.0-1.x86_64.rpm
@if ! grep -q "protonmail-credentials" "$(HOME)/.password-store/.gitignore"; then \
echo "protonmail-credentials" >> "$(HOME)/.password-store/.gitignore"; \
echo "docker-credential-helpers" >> "$(HOME)/.password-store/.gitignore"; fi
########################################################################################################################
#
# GNOME settings
#
INSTALL += gnome-key-binding-settings
gnome-key-binding-settings: | gnome-desktop $(HOME_BIN)/dell-kvm-switch-input ulauncher
@$(eval custom0=/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/)
@$(eval custom1=/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/)
@$(eval custom2=/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/)
@gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['$(custom0)', '$(custom1)', '$(custom2)']"
@gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$(custom0) name 'Run Terminal'
@gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$(custom0) command '$(shell command -v gnome-terminal)'
@gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$(custom0) binding '<Super>t'
@gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$(custom1) name 'Dell KVM - Switch Input'
@gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$(custom1) command '$(HOME_BIN)/dell-kvm-switch-input'
@gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$(custom1) binding '<Alt>i'
@gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$(custom2) name 'Display Ulauncer'
@gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$(custom2) command '$(shell command -v ulauncher-toggle)'
@gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$(custom2) binding '<Super>r'
@gsettings set org.gnome.settings-daemon.plugins.media-keys home "['<Super>h']"
@gsettings set org.gnome.settings-daemon.plugins.media-keys screensaver "['<Super>l']"
@gsettings set org.gnome.settings-daemon.plugins.media-keys control-center "['<Super>s']"
# Possible fix for a sporadic flight-mode toggle
@gsettings set org.gnome.settings-daemon.plugins.media-keys rfkill []
@gsettings set org.gnome.settings-daemon.plugins.media-keys rfkill-bluetooth []
@gsettings set org.gnome.settings-daemon.plugins.media-keys rfkill-bluetooth-static []
@gsettings set org.gnome.settings-daemon.plugins.media-keys rfkill-static []
INSTALL += gnome-theme-settings
gnome-theme-settings: | gnome-themes arc-theme gnome-shell-extension-user-theme \
$(XDG_CONFIG_HOME)/gtk-2.0/gtkrc \
$(XDG_CONFIG_HOME)/gtk-3.0/settings.ini $(XDG_CONFIG_HOME)/gtk-3.0/gtk.css \
$(XDG_CONFIG_HOME)/gtk-4.0/settings.ini
@gsettings set org.gnome.desktop.interface gtk-theme 'Arc-Darker'
@gsettings set org.gnome.desktop.wm.preferences theme 'Arc-Darker'
@gsettings set org.gnome.desktop.interface icon-theme 'MoreWaita'
@gsettings set org.gnome.desktop.wm.preferences titlebar-uses-system-font true
@gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Super>'
INSTALL += gnome-wallpaper
gnome-wallpaper: $(XDG_DATA_HOME)/backgrounds/current | gnome-desktop
@gsettings set org.gnome.desktop.background picture-uri 'file://$<'
@gsettings set org.gnome.desktop.background picture-uri-dark 'file://$<'
@gsettings set org.gnome.desktop.background color-shading-type 'solid'
@gsettings set org.gnome.desktop.background picture-options 'zoom'
INSTALL += gnome-input-settings
gnome-input-settings: | gnome-desktop
@gsettings set org.gnome.desktop.wm.keybindings switch-applications []
@gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward []
@gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Primary>Tab']"
@gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['<Primary><Shift>Tab']"
@gsettings set org.gnome.desktop.wm.keybindings switch-group "['<Primary>grave']"
@gsettings set org.gnome.desktop.wm.keybindings switch-group-backward "['<Primary><Shift>grave']"
@gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>1']"
@gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Super>2']"
@gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['<Super>3']"
@gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['<Super>4']"
@gsettings set org.gnome.desktop.wm.keybindings move-to-monitor-right "['<Shift><Super>x']"
@gsettings set org.gnome.desktop.wm.keybindings move-to-monitor-left "['<Shift><Super>z']"
@gsettings set org.gnome.desktop.wm.keybindings maximize "['<Shift><Super>f']"
@gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up []
@gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down []
@gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left []
@gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right []
@gsettings set org.gnome.mutter.keybindings toggle-tiled-left []
@gsettings set org.gnome.mutter.keybindings toggle-tiled-right []
@gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb', 'ru'), ('xkb', 'ua')]"
@gsettings set org.gnome.desktop.input-sources mru-sources "[('xkb', 'us'), ('xkb', 'ru'), ('xkb', 'ua')]"
@gsettings set org.gnome.desktop.input-sources per-window false
@gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:ralt_switch']"
@gsettings set org.gnome.desktop.peripherals.keyboard numlock-state false
@gsettings set org.gnome.desktop.peripherals.keyboard delay 180
@gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 15
@gsettings set org.gnome.desktop.peripherals.mouse speed -0.44
@gsettings set org.gnome.desktop.peripherals.touchpad edge-scrolling-enabled false
@gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false
@gsettings set org.gnome.desktop.peripherals.touchpad speed 0.068
@gsettings set org.gnome.desktop.peripherals.touchpad two-finger-scrolling-enabled true
INSTALL += gnome-desktop-settings
gnome-desktop-settings: | gnome-desktop fonts
@# Desktop
@gsettings set org.gnome.desktop.interface show-battery-percentage true
@gsettings set org.gnome.desktop.interface clock-show-date true
@gsettings set org.gnome.desktop.interface clock-show-weekday true
@gsettings set org.gnome.desktop.interface text-scaling-factor '1.0'
@gsettings set org.gnome.desktop.background show-desktop-icons false
@gsettings set org.gnome.desktop.datetime automatic-timezone true
@gsettings set org.gnome.desktop.screensaver lock-enabled true
@gsettings set org.gnome.desktop.screensaver lock-delay 0
@gsettings set org.gnome.desktop.session idle-delay 600
@gsettings set org.gnome.desktop.sound event-sounds false
@gsettings set org.gnome.desktop.calendar show-weekdate false
@gsettings set org.gnome.desktop.wm.preferences num-workspaces 1
@gsettings set org.gnome.mutter dynamic-workspaces false
@gsettings set org.gnome.mutter workspaces-only-on-primary false
@gsettings set org.gnome.SessionManager logout-prompt false
# Fonts
@gsettings set org.gnome.desktop.interface monospace-font-name 'JetBrainsMono Nerd Font Mono 10'
@gsettings set org.gnome.desktop.interface font-name 'Sans 9'
@gsettings set org.gnome.desktop.interface document-font-name 'Sans 9'
@gsettings set org.gnome.desktop.interface font-antialiasing 'grayscale'
@gsettings set org.gnome.desktop.interface font-hinting 'slight'
@gsettings set org.gnome.desktop.interface cursor-size 24
@gsettings set org.gnome.desktop.interface cursor-blink true
@gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop', 'org.gnome.Terminal.desktop', \
'intellij-idea-community_intellij-idea-community.desktop', 'com.vscodium.codium.desktop', \
'vivaldi-stable.desktop', 'google-chrome.desktop', 'firefox.desktop', 'md.obsidian.Obsidian.desktop', \
'xmind.desktop', 'org.gnome.gedit.desktop', 'chrome-cinhimbnkkaeohfgghhklpknlkffjgod-Profile_4.desktop', \
'chrome-hpfldicfbfomlpcikngkocigghgafkph-Profile_4.desktop', 'org.gnome.Pomodoro.desktop', \
'cc.arduino.IDE2.desktop', 'calibre-gui.desktop', 'com.valvesoftware.Steam.desktop']"
# GNOME display settings
INSTALL += gnome-display-settings
gnome-display-settings: | gnome-desktop
@gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
@gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 4378
@gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true
@gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-automatic true
@gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-to 6.0
@gsettings set org.gnome.settings-daemon.plugins.color night-light-schedule-from 20.0
@gsettings set org.gnome.settings-daemon.plugins.color recalibrate-display-threshold 0
INSTALL += gnome-nautilus-settings
gnome-nautilus-settings: | gnome-desktop
@gsettings set org.gnome.nautilus.preferences show-create-link true
@gsettings set org.gnome.nautilus.preferences default-folder-viewer 'icon-view'
@gsettings set org.gnome.nautilus.list-view default-visible-columns "['name', 'size', 'type', 'where', 'date_modified']"
@gsettings set org.gnome.nautilus.list-view default-zoom-level 'small'
@gsettings set org.gnome.nautilus.preferences always-use-location-entry true
@gsettings set org.gnome.nautilus.preferences show-delete-permanently true
@gsettings set org.gnome.nautilus.preferences show-hidden-files true
INSTALL += gnome-file-chooser-settings
gnome-file-chooser-settings: | gnome-desktop
@gsettings set org.gtk.Settings.FileChooser sort-column 'name'
@gsettings set org.gtk.Settings.FileChooser date-format 'regular'
@gsettings set org.gtk.Settings.FileChooser show-hidden true
@gsettings set org.gtk.Settings.FileChooser clock-format '24h'
@gsettings set org.gtk.Settings.FileChooser startup-mode 'cwd'
@gsettings set org.gtk.Settings.FileChooser show-type-column true
@gsettings set org.gtk.Settings.FileChooser sort-order 'ascending'
@gsettings set org.gtk.Settings.FileChooser type-format 'category'
@gsettings set org.gtk.Settings.FileChooser show-size-column true
@gsettings set org.gtk.Settings.FileChooser location-mode 'path-bar'
@gsettings set org.gtk.Settings.FileChooser sort-directories-first true
INSTALL += gnome-screenshot-settings
gnome-screenshot-settings: | gnome-desktop
@gsettings set org.gnome.gnome-screenshot auto-save-directory 'file://$(XDG_PICTURES_DIR)/Screenshots'
@gsettings set org.gnome.gnome-screenshot last-save-directory 'file://$(XDG_PICTURES_DIR)/Screenshots'
@gsettings set org.gnome.gnome-screenshot default-file-type 'png'
@gsettings set org.gnome.gnome-screenshot include-pointer false
@gsettings set org.gnome.gnome-screenshot delay 2
@gsettings set org.gnome.gnome-screenshot take-window-shot false
INSTALL += gnome-power-settings
gnome-power-settings: | gnome-desktop
@gsettings set org.gnome.settings-daemon.plugins.power idle-dim true
@gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'
@gsettings set org.gnome.settings-daemon.plugins.power idle-brightness 30
@gsettings set org.gnome.settings-daemon.plugins.power power-saver-profile-on-low-battery true
@gsettings set org.gnome.settings-daemon.plugins.power ambient-enabled true
@gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 1200
@gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 3600
@gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'
@gsettings set org.gnome.settings-daemon.plugins.power power-button-action 'nothing'
INSTALL += gnome-privacy-settings
gnome-privacy-settings: | gnome-desktop
@gsettings set org.gnome.desktop.privacy old-files-age 10
@gsettings set org.gnome.desktop.privacy remove-old-temp-files true
@gsettings set org.gnome.desktop.privacy remove-old-trash-files false
@gsettings set org.gnome.desktop.privacy usb-protection-level 'lockscreen'
@gsettings set org.gnome.desktop.notifications show-banners false
@gsettings set org.gnome.desktop.notifications show-in-lock-screen false
@gsettings set org.gnome.login-screen disable-user-list true
@gsettings set org.gnome.shell remember-mount-password false
@gsettings set org.gnome.system.location enabled true
@gsettings set org.gnome.desktop.search-providers disable-external true
INSTALL += gnome-gedit-settings
gnome-gedit-settings: | gedit dconf
@dconf load '/' < $(INCLUDE)/gnome-gedit.ini
INSTALL += gnome-tracker-settings
gnome-tracker-settings: | dconf
@dconf load '/' < $(INCLUDE)/gnome-tracker.ini
INSTALL += gnome-terminal-settings
gnome-terminal-settings: | gnome-terminal dconf
@dconf load '/' < $(INCLUDE)/gnome-terminal.ini
INSTALL += gnome-pomodoro-settings
gnome-pomodoro-settings: | gnome-pomodoro dconf
@dconf load '/' < $(INCLUDE)/gnome-pomodoro.ini
INSTALL += gnome-clocks-settings
gnome-clocks-settings: | gnome-clocks dconf
@dconf load '/' < $(INCLUDE)/gnome-clocks.ini
########################################################################################################################
#
# Balk installation rules
#
INSTALL += $(plugins_dnf)
$(plugins_dnf):
@$(call dnf,$@)
INSTALL += $(packages_rpm)
$(packages_rpm): | gnome-desktop
@$(call dnf,$@)
INSTALL += $(packages_fonts)
$(packages_fonts):
@$(call dnf,$@)
INSTALL += $(packages_gshell)
$(packages_gshell): | gnome-desktop
@$(call dnf,$@)
@if [ -f $(INCLUDE)/[email protected] ]; then dconf load '/' < $(INCLUDE)/[email protected]; fi
INSTALL += $(packages_snap)
$(packages_snap): | gnome-desktop snapd /snap
@sudo snap install $@
INSTALL += $(packages_flatpak)
$(packages_flatpak): | gnome-desktop flatpak
@flatpak install --user $@
INSTALL += $(ext_ulauncher)
$(ext_ulauncher): | git ulauncher
@$(call clone,$@)
@mkdir -pv $(ULAUNCHER_EXT)
@ln -svfn $(HOME_OPT)/$@ $(ULAUNCHER_EXT)/$(subst .git,,$@)
INSTALL += $(ext_gshell)
$(ext_gshell): | gnome-desktop dconf gnome-shell-extensions-bin
@mkdir -pv $(HOME_OPT)
@$(eval __ext=$(subst $(slash),$(space),$(subst https://extensions.gnome.org/extension/,,$(strip $@))))
@$(eval __ext_id=$(word 1, $(__ext)))
@$(eval __ext_name=$(word 2, $(__ext)))
@if [ -f $(INCLUDE)/gnome-shell-extension-$(__ext_name).ini ]; then dconf load '/' < $(INCLUDE)/gnome-shell-extension-$(__ext_name).ini; fi
@$(HOME_BIN)/install-gnome-extensions --enable $(__ext_id)
INSTALL += $(ext_vscode)
$(ext_vscode): | flatpak com.vscodium.codium
@flatpak run --user com.vscodium.codium --force --install-extension '$@'
INSTALL += $(ext_intellij)
$(ext_intellij): | intellij-idea-community $(HOME_BIN)/acpi-battery-status
@$$(command -v intellij-idea-community) installPlugins $@
INSTALL += $(ext_micro)
$(ext_micro): | micro fzf
@$$(command -v micro) -plugin install $(subst micro_,,$@)
########################################################################################################################
#
# Files
#
FILES += /snap
/snap: /var/lib/snapd/snap | snapd
@sudo ln -svnf $< $@
FILES += /etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:chriscowleyunix\:better_fonts.repo
/etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:chriscowleyunix\:better_fonts.repo:
@sudo dnf copr enable -y chriscowleyunix/better_fonts
FILES += /etc/yum.repos.d/docker-ce.repo
/etc/yum.repos.d/docker-ce.repo: | dnf-plugins
@sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
FILES += /etc/yum.repos.d/google-chrome.repo
/etc/yum.repos.d/google-chrome.repo: | dnf-plugins fedora-workstation-repositories
@sudo dnf config-manager --set-enabled google-chrome
FILES += /etc/yum.repos.d/vivaldi-fedora.repo
/etc/yum.repos.d/vivaldi-fedora.repo: | dnf-plugins
@sudo dnf config-manager --add-repo https://repo.vivaldi.com/stable/vivaldi-fedora.repo
FILES += /etc/yum.repos.d/opera.repo
/etc/yum.repos.d/opera.repo:
-@sudo rpm --import https://rpm.opera.com/rpmrepo.key
@sudo tee $@ <<- EOF
#
# Created by dotfiles setup script on $$(date -I) by ${USER}
#
[opera]
name=Opera packages
type=rpm-md
baseurl=https://rpm.opera.com/rpm
enabled=1
gpgcheck=1
gpgkey=https://rpm.opera.com/rpmrepo.key
EOF
FILES += /etc/yum.repos.d/keybase.repo
/etc/yum.repos.d/keybase.repo:
@sudo tee $@ <<- EOF
#
# Created by dotfiles setup script on $$(date -I) by ${USER}
#
[keybase]
name=keybase
baseurl=http://prerelease.keybase.io/rpm/x86_64
enabled=1
gpgcheck=1
gpgkey=https://keybase.io/docs/server_security/code_signing_key.asc
EOF
FILES += /etc/yum.repos.d/rpmfusion-free.repo
/etc/yum.repos.d/rpmfusion-free.repo:
@$(call dnf,\
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(shell rpm -E %fedora).noarch.rpm)
FILES += /etc/yum.repos.d/rpmfusion-nonfree.repo
/etc/yum.repos.d/rpmfusion-nonfree.repo:
@$(call dnf,\
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(shell rpm -E %fedora).noarch.rpm)
FILES += /etc/yum.repos.d/fedora-cisco-openh264.repo
/etc/yum.repos.d/fedora-cisco-openh264.repo: | dnf-plugins
@sudo dnf config-manager --set-enabled fedora-cisco-openh264
FILES += /etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:rockowitz\:ddcutil.repo
/etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:rockowitz\:ddcutil.repo:
@sudo dnf copr enable -y rockowitz/ddcutil
FILES += /etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:dusansimic\:themes.repo
/etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:dusansimic\:themes.repo:
@sudo dnf copr enable -y dusansimic/themes
FILES += $(HOME)/.bashrc
$(HOME)/.bashrc: $(DOTFILES)/.bashrc
@mkdir -pv $(@D)
@ln -svnf $< $@
FILES += $(HOME)/.bash_profile
$(HOME)/.bash_profile: $(DOTFILES)/.bash_profile
@mkdir -pv $(@D)
@ln -svnf $< $@
FILES += $(HOME)/.bash_logout
$(HOME)/.bash_logout: $(DOTFILES)/.bash_logout
@mkdir -pv $(@D)
@ln -svnf $< $@
FILES += $(BASHRCD)/bashrc-git
$(BASHRCD)/bashrc-git: $(DOTFILES)/.bashrc.d/bashrc-git | git
@mkdir -pv $(@D)
@ln -svnf $< $@
FILES += $(BASHRCD)/bashrc-base
$(BASHRCD)/bashrc-base: $(DOTFILES)/.bashrc.d/bashrc-base | git
@mkdir -pv $(@D)
@ln -svnf $< $@
FILES += $(BASHRCD)/bashrc-fonts
$(BASHRCD)/bashrc-fonts: $(DOTFILES)/.bashrc.d/bashrc-fonts | fonts
@mkdir -pv $(@D)
@ln -svnf $< $@
FILES += $(BASHRCD)/bashrc-xdg
$(BASHRCD)/bashrc-xdg: $(DOTFILES)/.bashrc.d/bashrc-xdg | xdg-utils
@mkdir -pv $(@D)
@ln -svnf $< $@
FILES += $(BASHRCD)/bashrc-dev
$(BASHRCD)/bashrc-dev: $(DOTFILES)/.bashrc.d/bashrc-dev
@mkdir -pv $(@D)
@ln -svnf $< $@
FILES += $(BASHRCD)/bashrc-pass
$(BASHRCD)/bashrc-pass: $(DOTFILES)/.bashrc.d/bashrc-pass | pass pass-extensions
@mkdir -pv $(@D)
@ln -svnf $< $@
FILES += $(HOME)/.face.icon
$(HOME)/.face.icon: $(DOTFILES)/.face.icon
@ln -svnf $< $@
FILES += $(XDG_CONFIG_HOME)/git/config
$(XDG_CONFIG_HOME)/git/config: $(DOTFILES)/.config/git/config | git git-lfs git-credential-libsecret \
git-split-diffs bat meld perl-Image-ExifTool
@mkdir -pv $(@D)
@ln -svfn $< $@
FILES += $(HOME)/.trackerignore
$(HOME)/.trackerignore: $(DOTFILES)/.trackerignore | disable-gnome-tracker
@ln -svnf $< $@
FILES += $(HOME)/.editorconfig
$(HOME)/.editorconfig : $(DOTFILES)/.editorconfig
@ln -svfn $< $@
FILES += $(HOME)/.passgenrc
$(HOME)/.passgenrc : $(DOTFILES)/.passgenrc | pass
@ln -svfn $< $@
FILES += $(HOME_BIN)/dell-kvm-switch-input
$(HOME_BIN)/dell-kvm-switch-input: $(DOTFILES)/.home/bin/dell-kvm-switch-input | ddcutil
@ln -svfn $< $@
@chmod +x $<
FILES += $(HOME_BIN)/acpi-battery-status
$(HOME_BIN)/acpi-battery-status: $(DOTFILES)/.home/bin/acpi-battery-status | acpi
@ln -svfn $< $@
@chmod +x $<
FILES += $(XDG_CONFIG_HOME)/gtk-2.0/gtkrc
$(XDG_CONFIG_HOME)/gtk-2.0/gtkrc: $(DOTFILES)/.config/gtk-2.0/gtkrc | gnome-desktop
@ln -svfn $< $@
FILES += $(XDG_CONFIG_HOME)/gtk-3.0/settings.ini
$(XDG_CONFIG_HOME)/gtk-3.0/settings.ini: $(DOTFILES)/.config/gtk-3.0/settings.ini | gnome-desktop
@mkdir -pv $(@D)
@ln -svfn $< $@
FILES += $(XDG_CONFIG_HOME)/gtk-3.0/gtk.css
$(XDG_CONFIG_HOME)/gtk-3.0/gtk.css: $(DOTFILES)/.config/gtk-3.0/gtk.css | gnome-desktop
@mkdir -pv $(@D)
@ln -svfn $< $@
FILES += $(XDG_CONFIG_HOME)/gtk-3.0/bookmarks
$(XDG_CONFIG_HOME)/gtk-3.0/bookmarks: | gnome-desktop
@tee $@ <<- EOF
file://$(HOME)/Private/Sync
file://$(HOME)/Projects
file://$(HOME)/Temp
file://$(HOME)/Documents/Private/Notes/Default/Files
EOF
FILES += $(XDG_CONFIG_HOME)/gtk-4.0/settings.ini
$(XDG_CONFIG_HOME)/gtk-4.0/settings.ini: $(DOTFILES)/.config/gtk-4.0/settings.ini | gnome-desktop
@mkdir -pv $(@D)
@ln -svfn $< $@
FILES += $(XDG_CONFIG_HOME)/user-dirs.dirs
$(XDG_CONFIG_HOME)/user-dirs.dirs: $(DOTFILES)/.config/user-dirs.dirs | xdg-user-dirs
@mkdir -pv $(@D)
@ln -svnf $< $@
FILES += $(XDG_CONFIG_HOME)/mc/ini
$(XDG_CONFIG_HOME)/mc/ini: $(DOTFILES)/.config/mc/ini | mc
@mkdir -pv $(@D)
@ln -svfn $< $@
FILES += $(vivaldi_conf_dest_files)
$(VIVALDI_CF_DEST)/%: $(VIVALDI_CF_SRC)/%
@mkdir -pv $(@D)
@ln -svfn $< $@
FILES += $(streamdeck_conf_dest_files)
$(STREAMDECK_CF_DEST)/%: $(STREAMDECK_CF_SRC)/%
@mkdir -pv $(@D)
@ln -svfn $< $@