File builders/dwm-d3f93c7c1a13a2a78f04fb41ad1935525df948db/builder.sh added (mode: 100644) (index 0000000..ba33a3e) |
|
1 |
|
src_name=dwm |
|
2 |
|
git_commit=${pkg_name##*-} |
|
3 |
|
slot=$git_commit |
|
4 |
|
git_url0=https://git.suckless.org/dwm |
|
5 |
|
|
|
6 |
|
pkg_dir=$pkgs_dir_root/$src_name |
|
7 |
|
src_dir=$src_dir_root/$src_name |
|
8 |
|
rm -Rf $pkg_dir |
|
9 |
|
mkdir -p $pkgs_dir_root |
|
10 |
|
cp -r $src_dir $pkg_dir |
|
11 |
|
|
|
12 |
|
PATH_SAVED=$PATH |
|
13 |
|
export PATH="\ |
|
14 |
|
/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\ |
|
15 |
|
/nyan/make/current/bin:\ |
|
16 |
|
/nyan/git/current/bin:\ |
|
17 |
|
$PATH\ |
|
18 |
|
" |
|
19 |
|
target_gnu_triple=$(basename "$(ls -d /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/*-gcc)") |
|
20 |
|
target_gnu_triple=${target_gnu_triple%-gcc} |
|
21 |
|
|
|
22 |
|
cd $pkg_dir |
|
23 |
|
|
|
24 |
|
if test x$git_commit != x; then |
|
25 |
|
git checkout --force $git_commit |
|
26 |
|
git reset --hard |
|
27 |
|
fi |
|
28 |
|
|
|
29 |
|
cp $nyan_root/builders/$pkg_name/dwm-actualfullscreen*.diff ./ |
|
30 |
|
patch -p 1 -i dwm-actualfullscreen*.diff |
|
31 |
|
|
|
32 |
|
build_dir=/run/builds/$pkg_name |
|
33 |
|
rm -Rf $build_dir |
|
34 |
|
mkdir -p $build_dir |
|
35 |
|
cd $build_dir |
|
36 |
|
|
|
37 |
|
# install our config.h |
|
38 |
|
cp $nyan_root/builders/dwm-$slot/config.h ./ |
|
39 |
|
#--------------------------------------------------------------------------------------------------- |
|
40 |
|
version=6.3 |
|
41 |
|
|
|
42 |
|
cppflags="\ |
|
43 |
|
-isystem /nyan/glibc/current/include \ |
|
44 |
|
-isystem /nyan/linux-headers/current/include \ |
|
45 |
|
-DVERSION=\"$version\" \ |
|
46 |
|
-I$build_dir \ |
|
47 |
|
-I/nyan/xorgproto/current/include \ |
|
48 |
|
-I/nyan/libX11/current/include \ |
|
49 |
|
-I/nyan/libXft/current/include \ |
|
50 |
|
-I/nyan/freetype/current/include/freetype2 \ |
|
51 |
|
-I/nyan/fontconfig/current/include \ |
|
52 |
|
-I/nyan/libXrender/current/include \ |
|
53 |
|
" |
|
54 |
|
|
|
55 |
|
ldflags="\ |
|
56 |
|
-L/nyan/libX11/current/lib \ |
|
57 |
|
-L/nyan/freetype/current/lib \ |
|
58 |
|
-L/nyan/libXft/current/lib \ |
|
59 |
|
-L/nyan/fontconfig/current/lib \ |
|
60 |
|
" |
|
61 |
|
|
|
62 |
|
libs="\ |
|
63 |
|
-lX11 \ |
|
64 |
|
-lfreetype \ |
|
65 |
|
-lXft \ |
|
66 |
|
-lfontconfig \ |
|
67 |
|
" |
|
68 |
|
#--------------------------------------------------------------------------------------------------- |
|
69 |
|
$target_gnu_triple-gcc -Os -pipe -static-libgcc -c $cppflags $pkg_dir/drw.c -o $build_dir/drw.o |
|
70 |
|
$target_gnu_triple-gcc -Os -pipe -static-libgcc -c $cppflags $pkg_dir/dwm.c -o $build_dir/dwm.o |
|
71 |
|
$target_gnu_triple-gcc -Os -pipe -static-libgcc -c $cppflags $pkg_dir/util.c -o $build_dir/util.o |
|
72 |
|
|
|
73 |
|
$target_gnu_triple-gcc -pipe -static-libgcc -B/nyan/glibc/current/lib $ldflags $libs -o $build_dir/dwm \ |
|
74 |
|
$build_dir/drw.o $build_dir/dwm.o $build_dir/util.o \ |
|
75 |
|
-Wl,-rpath-link,\ |
|
76 |
|
/nyan/glibc/current/lib:\ |
|
77 |
|
/nyan/libXrender/current/lib:\ |
|
78 |
|
/nyan/libxcb/current/lib:\ |
|
79 |
|
/nyan/libXau/current/lib |
|
80 |
|
|
|
81 |
|
mkdir -p /nyan/dwm/$slot/bin |
|
82 |
|
cp -f $build_dir/dwm /nyan/dwm/$slot/bin |
|
83 |
|
$target_gnu_triple-strip -s /nyan/dwm/$slot/bin/dwm |
|
84 |
|
|
|
85 |
|
export PATH=$PATH_SAVED |
|
86 |
|
unset PATH_SAVED |
|
87 |
|
unset target_gnu_triple |
|
88 |
|
rm -Rf $build_dir $pkg_dir |
File builders/dwm-d3f93c7c1a13a2a78f04fb41ad1935525df948db/config.h copied from file builders/dwm-0/config.h (similarity 95%) (mode: 100644) (index e3eb8a8..ba38892) |
4 |
4 |
/* appearance */ |
/* appearance */ |
5 |
5 |
static const unsigned int borderpx = 4; /* border pixel of windows */ |
static const unsigned int borderpx = 4; /* border pixel of windows */ |
6 |
6 |
static const unsigned int snap = 32; /* snap pixel */ |
static const unsigned int snap = 32; /* snap pixel */ |
7 |
|
static const int showbar = 1; /* 0 means no bar */ |
|
|
7 |
|
static const int showbar = 0; /* 0 means no bar */ |
8 |
8 |
static const int topbar = 1; /* 0 means bottom bar */ |
static const int topbar = 1; /* 0 means bottom bar */ |
9 |
9 |
static const char *fonts[] = { "DejaVu Sans Mono:size=10" }; |
static const char *fonts[] = { "DejaVu Sans Mono:size=10" }; |
10 |
10 |
static const char dmenufont[] = "DejaVu Sans Mono:size=10"; |
static const char dmenufont[] = "DejaVu Sans Mono:size=10"; |
|
... |
... |
static const Rule rules[] = { |
31 |
31 |
// { "Gimp", NULL, NULL, 0, 1, -1 }, |
// { "Gimp", NULL, NULL, 0, 1, -1 }, |
32 |
32 |
// { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, |
// { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, |
33 |
33 |
{ "Steam", NULL, NULL, 0, 0, -1 }, |
{ "Steam", NULL, NULL, 0, 0, -1 }, |
34 |
|
{ "MPlayer", NULL, NULL, 0, 1, -1 }, |
|
35 |
34 |
{ "npv", NULL, NULL, 0, 1, -1 }, |
{ "npv", NULL, NULL, 0, 1, -1 }, |
36 |
35 |
{ NULL , NULL, "Celeste", 0, 1, -1 }, |
{ NULL , NULL, "Celeste", 0, 1, -1 }, |
37 |
36 |
}; |
}; |
38 |
37 |
|
|
39 |
38 |
/* layout(s) */ |
/* layout(s) */ |
40 |
|
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ |
|
|
39 |
|
static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ |
41 |
40 |
static const int nmaster = 1; /* number of clients in master area */ |
static const int nmaster = 1; /* number of clients in master area */ |
42 |
41 |
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ |
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ |
|
42 |
|
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ |
43 |
43 |
|
|
44 |
44 |
static const Layout layouts[] = { |
static const Layout layouts[] = { |
45 |
45 |
/* symbol arrange function */ |
/* symbol arrange function */ |
|
... |
... |
static const char *termcmd[] = { "/root/bin/dwm_st.sh", NULL }; |
70 |
70 |
static const char *linkscmd[] = { "/root/bin/dwm_links.sh", NULL }; |
static const char *linkscmd[] = { "/root/bin/dwm_links.sh", NULL }; |
71 |
71 |
static const char *bgcmd[] = { "/root/bin/dwm_bg.sh", NULL }; |
static const char *bgcmd[] = { "/root/bin/dwm_bg.sh", NULL }; |
72 |
72 |
static const char *bgtilecmd[] = { "/root/bin/dwm_bg_tile.sh", NULL }; |
static const char *bgtilecmd[] = { "/root/bin/dwm_bg_tile.sh", NULL }; |
73 |
|
static const char *norepcmd[] = { "/root/bin/x11keyautorepeat", NULL }; |
|
74 |
73 |
|
|
75 |
74 |
static Key keys[] = { |
static Key keys[] = { |
76 |
75 |
/* modifier key function argument */ |
/* modifier key function argument */ |
|
... |
... |
static Key keys[] = { |
78 |
77 |
//{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, |
//{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, |
79 |
78 |
{ 0, XF86XK_Calculator, spawn, {.v = termcmd } }, |
{ 0, XF86XK_Calculator, spawn, {.v = termcmd } }, |
80 |
79 |
{ 0, XF86XK_HomePage, spawn, {.v = linkscmd } }, |
{ 0, XF86XK_HomePage, spawn, {.v = linkscmd } }, |
81 |
|
{ ShiftMask, XF86XK_HomePage, spawn, {.v = norepcmd } }, |
|
82 |
80 |
{ 0, XF86XK_Mail, spawn, {.v = bgcmd } }, |
{ 0, XF86XK_Mail, spawn, {.v = bgcmd } }, |
83 |
81 |
{ ShiftMask, XF86XK_Mail, spawn, {.v = bgtilecmd } }, |
{ ShiftMask, XF86XK_Mail, spawn, {.v = bgtilecmd } }, |
84 |
82 |
{ MODKEY|ShiftMask, XK_b, togglebar, {0} }, |
{ MODKEY|ShiftMask, XK_b, togglebar, {0} }, |
File builders/dwm-d3f93c7c1a13a2a78f04fb41ad1935525df948db/dwm-actualfullscreen.diff copied from file builders/dwm-0/dwm-actualfullscreen-20191112-cb3f58a.diff (similarity 67%) (mode: 100644) (index 056be91..5cae649) |
1 |
1 |
--- a/dwm.c |
--- a/dwm.c |
2 |
2 |
+++ b/dwm.c |
+++ b/dwm.c |
3 |
|
@@ -211,6 +211,7 @@ static void tagmon(const Arg *arg); |
|
|
3 |
|
@@ -212,6 +212,7 @@ static void tagmon(const Arg *arg); |
4 |
4 |
static void tile(Monitor *); |
static void tile(Monitor *); |
5 |
5 |
static void togglebar(const Arg *arg); |
static void togglebar(const Arg *arg); |
6 |
6 |
static void togglefloating(const Arg *arg); |
static void togglefloating(const Arg *arg); |
|
8 |
8 |
static void toggletag(const Arg *arg); |
static void toggletag(const Arg *arg); |
9 |
9 |
static void toggleview(const Arg *arg); |
static void toggleview(const Arg *arg); |
10 |
10 |
static void unfocus(Client *c, int setfocus); |
static void unfocus(Client *c, int setfocus); |
11 |
|
@@ -1719,6 +1720,13 @@ togglefloating(const Arg *arg) |
|
|
11 |
|
@@ -1728,6 +1729,13 @@ togglefloating(const Arg *arg) |
12 |
12 |
arrange(selmon); |
arrange(selmon); |
13 |
13 |
} |
} |
14 |
14 |
|
|
15 |
15 |
+void |
+void |
16 |
16 |
+togglefullscr(const Arg *arg) |
+togglefullscr(const Arg *arg) |
17 |
17 |
+{ |
+{ |
18 |
|
+ if(selmon->sel) |
|
19 |
|
+ setfullscreen(selmon->sel, !selmon->sel->isfullscreen); |
|
|
18 |
|
+ if(selmon->sel) |
|
19 |
|
+ setfullscreen(selmon->sel, !selmon->sel->isfullscreen); |
20 |
20 |
+} |
+} |
21 |
21 |
+ |
+ |
22 |
22 |
void |
void |
23 |
23 |
toggletag(const Arg *arg) |
toggletag(const Arg *arg) |
24 |
24 |
{ |
{ |
25 |
|
2.17.1 |
|
26 |
|
|
|