-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
73 lines (51 loc) · 1.79 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
.PHONY : zsh vimperator
all: zsh vimperator
zsh: ~/.zshrc ~/.oh-my-zsh/custom/plugins/zsh-completions
~/.oh-my-zsh/custom/plugins/zsh-completions: ~/.oh-my-zsh
git clone "https://github.com/zsh-users/zsh-completions" $@
vimperator: ~/.vimperatorrc ~/.vimperator/plugins
~/.vimperator/plugins:
mkdir -p $(shell dirname $@)
ln -s `pwd`/vimperator_plugins $@
~/.vimperatorrc:
ln -s $(PWD)/vimperatorrc ~/.vimperatorrc
~/.zshrc: ~/.oh-my-zsh
rm -rf $@ && ln -s $(PWD)/zshrc ~/.zshrc
~/.oh-my-zsh:
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh \
| bash
~/.offlineimaprc: ~/.offlineimap.py
ln -s $(PWD)/offlineimaprc ~/.offlineimaprc
~/.offlineimap.py:
ln -s $(PWD)/offlineimap.py ~/.offlineimap.py
offlineimap-sysctl:
echo "[Unit]
Description=Start offlineimap as a daemon
Requires=network.target
After=network.target
[Service]
User=%i
ExecStart=/usr/bin/offlineimap
KillSignal=SIGUSR2
Restart=always
[Install]
WantedBy=multi-user.target
" > /etc/systemd/system/[email protected]
systemctl offlineimap enable
offlineimap-update:
offlineimap
.PHONY:
offlineimap: ~/.offlineimaprc
.PHONY:
offlineimap-clean:
rm -rf ~/.offlineimaprc ~/.offlineimap.py
THEME_FILE=/usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
# This doesn't really work but you get the idea.
.PHONY:
gnome-small-maximized:
cat $(THEME_FILE) |awk 'BEGIN{a=0} /<frame-geometry .*name="max"/{a=1} /<\/frame_geometry>/{a=0} /name="title_vertical_pad"/{if (a==1) {gsub("value=\".*\"", "value=\"1\""); print}'
WORKSPACE_GRID_URL = https://bitbucket.org/migerh/workspace-grid-gnome-shell-extension/downloads/[email protected]
gnome-workspace-grid:
wget $(WORKSPACE_GRID_URL) -O /tmp/workspacegrid.zip
~/.screenrc: $(CURDIR)/screenrc
ln -s $< $@