-
Notifications
You must be signed in to change notification settings - Fork 0
/
s_build_suckless
executable file
·58 lines (48 loc) · 1.81 KB
/
s_build_suckless
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
#!/usr/bin/env bash
#
# Bin is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Bin is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Bin. If not, see <https://www.gnu.org/licenses/>.
#
# DEBUG OPTIONS
set -euo pipefail
if ! grep 'Type=XSession' /usr/share/xsessions/dwm-local.desktop; then
cat <<EOF | sudo tee -a "/usr/share/xsessions/dwm-local.desktop"
[Desktop Entry]
Encoding=UTF-8
Name=dwm-local
Comment=Local dwm build
Exec=$HOME/.local/bin/dwm
Type=XSession
EOF
fi
# $HOME_LOCAL="$HOME/.local"
# SUCKLESS_BASE="$XDG_CONFIG_HOME/suckless"
# # DWM
# # ======================================================
# DWM_BUILD="$HOME/Builds/dwm"
# DWM_TAG=6.3
# DWM_BASE="$SUCKLESS_BASE/dwm"
# DWM_CUSTOM_CONFIG="$DWM_BASE/config.h"
# [[ ! -d "$DWM_BUILD/.git" ]] && rm -rf "$DWM_BUILD"
# [[ -d "$DWM_BASE/dwm-6.3.tar.gz" ]] && tar "$DWM_BASE/dwm-6.3.tar.gz"
# cd "$DWM_BUILD"
# git apply "$DWM_BASE/patches/dwm-systray-6.3.diff"
# make PREFIX="$HOME_LOCAL" config.h clean install
# [[ ! -d "$DWM_BUILD/.git" ]] && git clone --depth 1 --branch $DWM_TAG https://git.suckless.org/dwm "$DWM_BUILD"
# wget -c https://dwm.suckless.org/patches/systray/dwm-systray-6.3.diff
# * ST
# ===================================================
# if [ ! -d "$XDG_CONFIG_HOME/st/.git" ]; then
# echo -e " -- Cloning st to $XDG_CONFIG_HOME"
# git clone https://git.suckless.org/st "$XDG_CONFIG_HOME/st"
# fi