-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
165 lines (103 loc) · 4.38 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
SHELL := /bin/bash
PYTHON_VERSION ?= "3.9.10"
GO_VERSION ?= "go1.15.2"
##@ Mackup
install-mackup: ## Install mackup with homebrew
brew install mackup
cp-mackup-config: ## Copy mackup config to ~/
cp ./.mackup.cfg ~/
add-i3-bin-cfg-to-mackup: ## Add i3-bin cfg file to ~/.mackup
wget https://raw.githubusercontent.com/jneo8/mackup/feat/i3-bin/mackup/applications/i3-bin.cfg -O ~/.mackup/i3-bin.cfg
.PHONY: install-mackup cp-mackup-config add-i3-bin-cfg-to-mackup
##@ Application
apt-install: ## Run ./apt-install.sh
./apt-install.sh
snap-install: ## Run ./snap-install.sh
./snap-install.sh
install-homebrew: ## Install homebrew
@bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
echo 'eval $$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> ~/.profile
install-calibre: ## Install calibre https://calibre-ebook.com/download_linux
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
.PHONY: apt-install snap-install install-homebrew
##@ Shell
install-oh-my-zsh: ## Setup zsh
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
sudo chsh -s $$(which zsh)
.PHONY: install-oh-my-zsh
n
##@ Terminal
color-terminal: ## Color terminal with goph
export TERMINAL=gnome-terminal && $(SHELL) -c "$$(wget -qO- https://git.io/vQgMr)"
.PHONY: color-terminal
##@ Python
install-pipx: ## install pipx
sudo apt install pipx
install-uv: ## install uv
pipx install uv
uv-install-basic-pkgs: ## Install basic package with uv
uv tool install mypy
uv tool install isort
uv tool install pre-commit
uv tool install Commitizen
uv tool install ruff
##@ Rust
install-rust: ## Install rust
curl https://sh.rustup.rs -sSf | sh
.PHONY: install-rust
##@ gvm
install-gvm: ## Install gvm
zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
PHONY: install-gvm
##@ Wallpaper
init-wallpaper-lucifer-angel: ## Init wall paper with feh
feh --bg-fill ~/Dropbox/Img/wallpapers/LuciferAngel.jpeg
init-wallpaper-whale: ## Init wall paper with feh
feh --bg-fill ~/Dropbox/Img/wallpapers/whale.jpg
init-wallpaper-moon-whale: ## Init wall paper with feh
feh --bg-fill ~/Dropbox/Img/wallpapers/moon-whale.png
init-wallpaper-silverhand: ## Init wall paper with feh
feh --bg-fill ~/Dropbox/Img/wallpapers/Silverhand.jpg
init-wallpaper-jammy-jellyfish: ## Init wall paper with feh
feh --bg-fill ~/Dropbox/Img/wallpapers/jammy-jellyfish.jpeg
init-wallpaper-space-art: ## Init wall paper with feh
feh --bg-fill ~/Dropbox/Img/wallpapers/space-art-fantasy-art-sky-clouds-wallpaper.jpg
.PHONY: init-wallpaper-lucifer-angel init-wallpaper-whale init-wallpaper-moon-whale init-wallpaper-silverhand init-wallpaper-jammy-jellyfish init-wallpaper-space-art
##@ i3
install-i3-gaps: ## Install i3-gaps from source
./install-i3-gaps.sh
.PHONY: install-i3-gaps
##@ polybar
install-polybar: ## Install polybar
./install-polybar.sh
./install-zscroll.sh
./install-playerctl.sh
relaunch-polybar: ## Relaunch polybar
~/.config/polybar/launch.sh
.PHONY: install-polybar relaunch-polybar
##@ device commands
disable-bluetooth: ## Disable bluetooth on ubuntu
sudo systemctl disable bluetooth.service
reload-bluetooth: ## Reload bluetooth
sudo rfkill block bluetooth
sudo rfkill unblock bluetooth
sudo systemctl stop bluetooth
sudo systemctl restart bluetooth
sudo systemctl status bluetooth
.PHONY: disable-bluetooth reload-bluetooth
##@ Monitor
list-monitor: ## Run xrandr --listmonitors
xrandr --listmonitors
xrandr-left-mirror: ## Make DP1 output mirror
xrandr --output DP-1 --scale-from 3456x2160 --auto --same-as eDP-1
xrandr-left-output-right-of-main: ## Make DP1 output right of eDP-1
xrandr --output DP-1 --auto --scale-from 3456x2160 --right-of eDP-1
xrandr-right-output-right-of-main: ## Make DP3 output right of eDP-1
xrandr --output DP-1 --auto --scale-from 3456x2160 --right-of eDP-1
,PHONY: listmonitors xrandr-left-output-right-of-main xrandr-right-output-right-of-main xrandr-left-mirror
##@ Help
.PHONY: help
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help