sylware / nyanlinux (public) (License: AFFERO GPLv3) (since 2019-09-09) (hash sha1)
scripts for a lean, from scratch, amd hardware, linux distro
List of commits:
Subject Hash Author Date (UTC)
dwm addition (dota2 friendly edition) 9b1ee73aacde79f4831357484f6ede3d5b8bae9b Sylvain BERTRAND 2020-01-01 22:05:35
gfx stack update 3af4530977ef1b01b58184b8335c5dec184043f4 Sylvain BERTRAND 2019-12-29 18:29:34
gfx stack update 8d0a533fd0d9254794e52ccca3eb060884fb4103 Sylvain BERTRAND 2019-12-22 19:46:39
update libressl/gnutls (gnu is technically dying) 176392c0d069861eb5ad4dfaa88c8e82f37ff3be Sylvain BERTRAND 2019-12-22 19:44:31
gfx stack update 9ee999ade37cc3bf0028cc4d9cd0a6320fb04872 Sylvain BERTRAND 2019-12-16 19:40:10
fontconfig update with new lean build system 0c6bc4799fea2a88efccc0f84ad6ff8805f88504 Sylvain BERTRAND 2019-12-12 23:08:17
gfx stack update b2f427e870c7d08306b85aa6554e2d0a537f626e Sylvain BERTRAND 2019-12-09 18:21:12
dosfstools for fat32 d6df64f27c7f25e8c36de1e8f6bb2d89c0605827 Sylvain BERTRAND 2019-12-09 11:27:51
gfx stack update 1745824d280d1a172f69f6e7141a34d83798c4ab Sylvain BERTRAND 2019-12-02 03:33:06
gfx stack update 53b14f9e2383f3c5b24ff5ba47a97295ad778389 Sylvain BERTRAND 2019-11-24 20:50:01
enable mplayer av1 decoding with ffmpeg c77b02db60e924fe8473827903712d6456d0e04b Sylvain BERTRAND 2019-11-19 23:31:12
remove old vulkan loader f6c3134c6c5603ef3c8ca628b0aae6cfe2aa806c Sylvain BERTRAND 2019-11-19 20:24:12
added ffmpeg av1 decoding using dav1d 656ff5ec5cd4f66ad3d26e81ca9fc62a4a24f056 Sylvain BERTRAND 2019-11-19 20:15:06
gfx stack update f504d662bcef4ea5ee49de01a312b2b6eead3a72 Sylvain BERTRAND 2019-11-18 15:56:11
significant gfx stack update 81b1641e4a68d13bdb3207958c1b61f5c9178110 Sylvain BERTRAND 2019-11-12 17:19:01
st with alpha 40c4dd0ba37efa471f371b5ebb2c700791cf2e41 Sylvain BERTRAND 2019-10-29 04:12:09
gfx stack update 2e34313ea063d321682a21a4d1b18b33fd1c08b2 Sylvain BERTRAND 2019-10-28 19:42:48
add a direct into steam startup 2f9f5cdf6cc52bd91252d3320e84a75b51e9ba29 Sylvain BERTRAND 2019-10-27 18:38:37
gfx stack update 7f8dbe3e5666565b1d7dbd593894440dce671843 Sylvain BERTRAND 2019-10-24 23:08:53
alsa 1.1.9 1962471fe6f6cbf49db17de01d37a0eb312c351a Sylvain BERTRAND 2019-10-16 19:48:29
Commit 9b1ee73aacde79f4831357484f6ede3d5b8bae9b - dwm addition (dota2 friendly edition)
Author: Sylvain BERTRAND
Author date (UTC): 2020-01-01 22:05
Committer name: Sylvain BERTRAND
Committer date (UTC): 2020-01-01 22:05
Parent(s): 3af4530977ef1b01b58184b8335c5dec184043f4
Signing key:
Tree: 7243f6b77a7aa1b5d5ec5d396e5a17d217de5f95
File Lines added Lines deleted
builders/dwm-0/builder.sh 73 0
builders/dwm-0/config.h 128 0
File builders/dwm-0/builder.sh added (mode: 100644) (index 0000000..7f570ee)
1 src_name=dwm
2 git_commit=cb3f58ad06993f7ef3a7d8f61468012e2b786cab
3 git_url0=https://git.suckless.org/dwm
4
5 slot=0
6
7 pkg_dir=$pkgs_dir_root/$pkg_name
8 src_dir=$src_dir_root/$src_name
9 rm -Rf $pkg_dir
10 mkdir -p $pkgs_dir_root
11 cp -r $src_dir $pkg_dir
12
13 #-------------------------------------------------------------------------------
14
15 cd $pkg_dir
16
17 git checkout --force $git_commit
18 git reset --hard
19
20 #-------------------------------------------------------------------------------
21
22 build_dir=$builds_dir_root/$pkg_name
23 rm -Rf $build_dir
24 mkdir -p $build_dir
25 cd $build_dir
26
27 # install our config.h
28 cp $nyan_root/builders/dwm-$slot/config.h ./
29
30 version=6.2
31
32 cppflags="\
33 -DVERSION=\"$version\" \
34 -I$build_dir \
35 -I/nyan/xorgproto/current/include \
36 -I/nyan/libX11/current/include \
37 -I/nyan/libXft/current/include \
38 -I/nyan/freetype/current/include/freetype2 \
39 -I/nyan/fontconfig/current/include \
40 -I/nyan/libXrender/current/include \
41 "
42
43 ldflags="\
44 -L/nyan/libX11/current/lib \
45 -L/nyan/freetype/current/lib \
46 -L/nyan/libXft/current/lib \
47 -L/nyan/fontconfig/current/lib \
48 "
49
50 libs="\
51 -lX11 \
52 -lfreetype \
53 -lXft \
54 -lfontconfig \
55 "
56
57 gcc -Os -pipe -static-libgcc -c $cppflags $pkg_dir/drw.c -o $build_dir/drw.o
58 gcc -Os -pipe -static-libgcc -c $cppflags $pkg_dir/dwm.c -o $build_dir/dwm.o
59 gcc -Os -pipe -static-libgcc -c $cppflags $pkg_dir/util.c -o $build_dir/util.o
60
61 gcc -pipe -static-libgcc -B/nyan/glibc/current/lib $ldflags $libs -o $build_dir/dwm \
62 $build_dir/drw.o $build_dir/dwm.o $build_dir/util.o \
63 -Wl,-rpath-link,\
64 /nyan/glibc/current/lib:\
65 /nyan/libXrender/current/lib:\
66 /nyan/libxcb/current/lib:\
67 /nyan/libXau/current/lib
68
69 mkdir -p /nyan/dwm/$slot/bin
70 cp -f $build_dir/dwm /nyan/dwm/$slot/bin
71 strip -s /nyan/dwm/$slot/bin/dwm
72
73 rm -Rf $build_dir $pkg_dir
File builders/dwm-0/config.h added (mode: 100644) (index 0000000..16b5c02)
1 /* See LICENSE file for copyright and license details. */
2 #include "/nyan/xorgproto/current/include/X11/XF86keysym.h"
3
4 /* appearance */
5 static const unsigned int borderpx = 4; /* border pixel of windows */
6 static const unsigned int snap = 32; /* snap pixel */
7 static const int showbar = 1; /* 0 means no bar */
8 static const int topbar = 1; /* 0 means bottom bar */
9 static const char *fonts[] = { "DejaVu Sans Mono:size=10" };
10 static const char dmenufont[] = "DejaVu Sans Mono:size=10";
11 static const char col_gray1[] = "#222222";
12 static const char col_gray2[] = "#444444";
13 static const char col_gray3[] = "#bbbbbb";
14 static const char col_gray4[] = "#eeeeee";
15 static const char col_cyan[] = "#005577";
16 static const char *colors[][3] = {
17 /* fg bg border */
18 [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
19 [SchemeSel] = { col_gray4, col_cyan, col_cyan },
20 };
21
22 /* tagging */
23 static const char *tags[] = { "steam", "2", "3", "4", "5", "6", "7", "8", "9" };
24
25 static const Rule rules[] = {
26 /* xprop(1):
27 * WM_CLASS(STRING) = instance, class
28 * WM_NAME(STRING) = title
29 */
30 /* class instance title tags mask isfloating monitor */
31 // { "Gimp", NULL, NULL, 0, 1, -1 },
32 // { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
33 { "Steam", NULL, NULL, 0, 1, -1 },
34 { "MPlayer", NULL, NULL, 0, 1, -1 },
35 };
36
37 /* layout(s) */
38 static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
39 static const int nmaster = 1; /* number of clients in master area */
40 static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
41
42 static const Layout layouts[] = {
43 /* symbol arrange function */
44 { "[]=", tile }, /* first entry is default */
45 { "><>", NULL }, /* no layout function means floating behavior */
46 { "[M]", monocle },
47 };
48
49 /* key definitions */
50 #define MODKEY Mod1Mask
51 //#define TAGKEYS(KEY,TAG) \
52 { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
53 { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
54 { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
55 { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
56
57 #define TAGKEYS(KEY,TAG) \
58 { MODKEY|ControlMask, KEY, view, {.ui = 1 << TAG} }, \
59 { MODKEY|ControlMask|ShiftMask, KEY, tag, {.ui = 1 << TAG} },
60
61 /* helper for spawning shell commands in the pre dwm-5.0 fashion */
62 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
63
64 /* commands */
65 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
66 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
67 //TODO: put the complete command line
68 static const char *termcmd[] = { "/nyan/st/current/bin/st", "-g", "80x34", "-e", "/bin/sh", "-i", NULL };
69 static const char *linkscmd[] = { "/nyan/links/current/bin/links", "-g", NULL };
70 static const char *bgcmd[] = { "/root/bin/bg", NULL };
71
72 static Key keys[] = {
73 /* modifier key function argument */
74 //{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
75 //{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
76 { 0, XF86XK_Calculator, spawn, {.v = termcmd } },
77 { 0, XF86XK_HomePage, spawn, {.v = linkscmd } },
78 { 0, XF86XK_Mail, spawn, {.v = bgcmd } },
79 { MODKEY|ControlMask, XK_b, togglebar, {0} },
80 { MODKEY, XK_Page_Down, focusstack, {.i = +1 } },
81 { MODKEY, XK_Page_Up, focusstack, {.i = -1 } },
82 { MODKEY|ControlMask, XK_i, incnmaster, {.i = +1 } },
83 { MODKEY|ControlMask, XK_d, incnmaster, {.i = -1 } },
84 { MODKEY|ControlMask, XK_l, setmfact, {.f = -0.05} },
85 { MODKEY|ControlMask, XK_r, setmfact, {.f = +0.05} },
86 { MODKEY|ControlMask, XK_Return, zoom, {0} },
87 { MODKEY, XK_Tab, view, {0} },
88 { MODKEY|ControlMask|ShiftMask, XK_c, killclient, {0} },
89 { MODKEY|ControlMask, XK_t, setlayout, {.v = &layouts[0]} },
90 { MODKEY|ControlMask, XK_f, setlayout, {.v = &layouts[1]} },
91 { MODKEY|ControlMask, XK_m, setlayout, {.v = &layouts[2]} },
92 // { MODKEY, XK_space, setlayout, {0} },
93 // { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
94 // { MODKEY, XK_0, view, {.ui = ~0 } },
95 // { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
96 //{ MODKEY, XK_comma, focusmon, {.i = -1 } },
97 //{ MODKEY, XK_period, focusmon, {.i = +1 } },
98 //{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
99 //{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
100 TAGKEYS( XK_1, 0)
101 TAGKEYS( XK_2, 1)
102 TAGKEYS( XK_3, 2)
103 TAGKEYS( XK_4, 3)
104 TAGKEYS( XK_5, 4)
105 TAGKEYS( XK_6, 5)
106 TAGKEYS( XK_7, 6)
107 TAGKEYS( XK_8, 7)
108 TAGKEYS( XK_9, 8)
109 { MODKEY|ControlMask|ShiftMask, XK_q, quit, {0} },
110 };
111
112 /* button definitions */
113 /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
114 static Button buttons[] = {
115 /* click event mask button function argument */
116 // { ClkLtSymbol, 0, Button1, setlayout, {0} },
117 // { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
118 // { ClkWinTitle, 0, Button2, zoom, {0} },
119 // { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
120 { ClkClientWin, MODKEY|ControlMask, Button1, movemouse, {0} },
121 { ClkClientWin, MODKEY|ControlMask, Button2, togglefloating, {0} },
122 { ClkClientWin, MODKEY|ControlMask, Button3, resizemouse, {0} },
123 // { ClkTagBar, 0, Button1, view, {0} },
124 // { ClkTagBar, 0, Button3, toggleview, {0} },
125 // { ClkTagBar, MODKEY, Button1, tag, {0} },
126 // { ClkTagBar, MODKEY, Button3, toggletag, {0} },
127 };
128
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/sylware/nyanlinux

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/sylware/nyanlinux

Clone this repository using git:
git clone git://git.rocketgit.com/user/sylware/nyanlinux

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main