From 3db63ac4c66d32eb05940daf588bfef532c6dc3d Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Sun, 23 Mar 2014 00:15:39 +0200 Subject: [PATCH] bye bye dwm. we dont need you anymore --- packages/x11/other/dwm/package.mk | 41 ---------- .../dwm-0001-cleanup-and-crosscompile.patch | 74 ------------------- ...do-not-die-if-XAllocNamedColor-fails.patch | 19 ----- .../other/dwm/patches/dwm-0003-hide-bar.patch | 25 ------- ...m-0004-set-default-layout-to-monocle.patch | 28 ------- .../dwm/patches/dwm-0005-strip-hotkeys.patch | 58 --------------- .../other/dwm/system.d/windowmanager.service | 18 ----- projects/ATV/options | 2 +- projects/Cuboxi/options | 2 +- projects/Generic/options | 2 +- projects/RPi/options | 2 +- projects/Virtual/options | 2 +- 12 files changed, 5 insertions(+), 268 deletions(-) delete mode 100644 packages/x11/other/dwm/package.mk delete mode 100644 packages/x11/other/dwm/patches/dwm-0001-cleanup-and-crosscompile.patch delete mode 100644 packages/x11/other/dwm/patches/dwm-0002-do-not-die-if-XAllocNamedColor-fails.patch delete mode 100644 packages/x11/other/dwm/patches/dwm-0003-hide-bar.patch delete mode 100644 packages/x11/other/dwm/patches/dwm-0004-set-default-layout-to-monocle.patch delete mode 100644 packages/x11/other/dwm/patches/dwm-0005-strip-hotkeys.patch delete mode 100644 packages/x11/other/dwm/system.d/windowmanager.service diff --git a/packages/x11/other/dwm/package.mk b/packages/x11/other/dwm/package.mk deleted file mode 100644 index 15490ccd75..0000000000 --- a/packages/x11/other/dwm/package.mk +++ /dev/null @@ -1,41 +0,0 @@ -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) -# -# OpenELEC 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 2 of the License, or -# (at your option) any later version. -# -# OpenELEC 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 OpenELEC. If not, see . -################################################################################ - -PKG_NAME="dwm" -PKG_VERSION="6.0" -PKG_REV="1" -PKG_ARCH="any" -PKG_LICENSE="OSS" -PKG_SITE="http://dwm.suckless.org/" -PKG_URL="http://dl.suckless.org/dwm/dwm-${PKG_VERSION}.tar.gz" -PKG_DEPENDS_TARGET="toolchain libX11" -PKG_PRIORITY="optional" -PKG_SECTION="x11/other" -PKG_SHORTDESC="dwm: dynamic window manager for X" -PKG_LONGDESC="dwm is a dynamic window manager for X. It manages windows in tiled, monocle and floating layouts. All of the layouts can be applied dynamically, optimising the environment for the application in use and the task performed" - -PKG_IS_ADDON="no" -PKG_AUTORECONF="no" - -make_target() { - $MAKE LDFLAGS="$LDFLAGS -lX11" CFLAGS="$CFLAGS -std=c99" CC="$CC" -} - -configure_target() { - : -} diff --git a/packages/x11/other/dwm/patches/dwm-0001-cleanup-and-crosscompile.patch b/packages/x11/other/dwm/patches/dwm-0001-cleanup-and-crosscompile.patch deleted file mode 100644 index 4d7ef741f6..0000000000 --- a/packages/x11/other/dwm/patches/dwm-0001-cleanup-and-crosscompile.patch +++ /dev/null @@ -1,74 +0,0 @@ -From 2e056332a4ef0783f67b430bbb282f8c632984d5 Mon Sep 17 00:00:00 2001 -From: Stefan Saraev -Date: Sat, 12 Oct 2013 14:24:16 +0300 -Subject: [PATCH 1/5] cleanup and crosscompile - ---- - Makefile | 20 ++++++-------------- - dwm.c | 4 ++-- - 2 files changed, 8 insertions(+), 16 deletions(-) - -diff --git a/Makefile b/Makefile -index b139b54..ca28790 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,8 +1,6 @@ - # dwm - dynamic window manager - # See LICENSE file for copyright and license details. - --include config.mk -- - SRC = dwm.c - OBJ = ${SRC:.c=.o} - -@@ -42,19 +40,13 @@ dist: clean - @rm -rf dwm-${VERSION} - - install: all -- @echo installing executable file to ${DESTDIR}${PREFIX}/bin -- @mkdir -p ${DESTDIR}${PREFIX}/bin -- @cp -f dwm ${DESTDIR}${PREFIX}/bin -- @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm -- @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 -- @mkdir -p ${DESTDIR}${MANPREFIX}/man1 -- @sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 -- @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 -+ @echo installing executable file to ${DESTDIR}${PREFIX}/usr/bin -+ @mkdir -p ${DESTDIR}${PREFIX}/usr/bin -+ @cp -f dwm ${DESTDIR}${PREFIX}/usr/bin -+ @chmod 755 ${DESTDIR}${PREFIX}/usr/bin/dwm - - uninstall: -- @echo removing executable file from ${DESTDIR}${PREFIX}/bin -- @rm -f ${DESTDIR}${PREFIX}/bin/dwm -- @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 -- @rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1 -+ @echo removing executable file from ${DESTDIR}${PREFIX}/usr/bin -+ @rm -f ${DESTDIR}${PREFIX}/usr/bin/dwm - - .PHONY: all options clean dist install uninstall -diff --git a/dwm.c b/dwm.c -index 1d78655..cb8be1e 100644 ---- a/dwm.c -+++ b/dwm.c -@@ -2006,7 +2006,7 @@ updatetitle(Client *c) { - void - updatestatus(void) { - if(!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) -- strcpy(stext, "dwm-"VERSION); -+ strcpy(stext, "dwm"); - drawbar(selmon); - } - -@@ -2129,7 +2129,7 @@ zoom(const Arg *arg) { - int - main(int argc, char *argv[]) { - if(argc == 2 && !strcmp("-v", argv[1])) -- die("dwm-"VERSION", © 2006-2011 dwm engineers, see LICENSE for details\n"); -+ die("dwm, © 2006-2011 dwm engineers, see LICENSE for details\n"); - else if(argc != 1) - die("usage: dwm [-v]\n"); - if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) --- -1.7.2.5 - diff --git a/packages/x11/other/dwm/patches/dwm-0002-do-not-die-if-XAllocNamedColor-fails.patch b/packages/x11/other/dwm/patches/dwm-0002-do-not-die-if-XAllocNamedColor-fails.patch deleted file mode 100644 index dfefc065a7..0000000000 --- a/packages/x11/other/dwm/patches/dwm-0002-do-not-die-if-XAllocNamedColor-fails.patch +++ /dev/null @@ -1,19 +0,0 @@ -commit 1040e9440a68bfa50c070f3cf956e46546d54729 -Author: Stefan Saraev -Date: Sat Oct 12 16:37:56 2013 +0300 - - do not die if XAllocNamedColor fails - -diff --git a/dwm.c b/dwm.c -index cb8be1e..5f9f419 100644 ---- a/dwm.c -+++ b/dwm.c -@@ -932,7 +932,7 @@ getcolor(const char *colstr) { - XColor color; - - if(!XAllocNamedColor(dpy, cmap, colstr, &color, &color)) -- die("error, cannot allocate color '%s'\n", colstr); -+ printf("error, cannot allocate color '%s'\n", colstr); - return color.pixel; - } - diff --git a/packages/x11/other/dwm/patches/dwm-0003-hide-bar.patch b/packages/x11/other/dwm/patches/dwm-0003-hide-bar.patch deleted file mode 100644 index 11e76a7f1c..0000000000 --- a/packages/x11/other/dwm/patches/dwm-0003-hide-bar.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 71091fbbdf97ad13c13b9f893dd12062e9fcf61d Mon Sep 17 00:00:00 2001 -From: Stefan Saraev -Date: Sat, 12 Oct 2013 14:26:11 +0300 -Subject: [PATCH 3/5] hide bar - ---- - config.def.h | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/config.def.h b/config.def.h -index 77ff358..0c9b846 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -10,7 +10,7 @@ static const char selbgcolor[] = "#005577"; - static const char selfgcolor[] = "#eeeeee"; - static const unsigned int borderpx = 1; /* border pixel of windows */ - static const unsigned int snap = 32; /* snap pixel */ --static const Bool showbar = True; /* False means no bar */ -+static const Bool showbar = False; /* False means no bar */ - static const Bool topbar = True; /* False means bottom bar */ - - /* tagging */ --- -1.7.2.5 - diff --git a/packages/x11/other/dwm/patches/dwm-0004-set-default-layout-to-monocle.patch b/packages/x11/other/dwm/patches/dwm-0004-set-default-layout-to-monocle.patch deleted file mode 100644 index e75a2e361d..0000000000 --- a/packages/x11/other/dwm/patches/dwm-0004-set-default-layout-to-monocle.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 61a6d07989876ee179500e7c50d7783f1d313054 Mon Sep 17 00:00:00 2001 -From: Stefan Saraev -Date: Sat, 12 Oct 2013 14:26:29 +0300 -Subject: [PATCH 4/5] set default layout to monocle - -last window on top and focused ---- - config.def.h | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/config.def.h b/config.def.h -index 0c9b846..422ff0b 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -29,9 +29,9 @@ static const Bool resizehints = True; /* True means respect size hints in tiled - - static const Layout layouts[] = { - /* symbol arrange function */ -+ { "[M]", monocle }, - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ -- { "[M]", monocle }, - }; - - /* key definitions */ --- -1.7.2.5 - diff --git a/packages/x11/other/dwm/patches/dwm-0005-strip-hotkeys.patch b/packages/x11/other/dwm/patches/dwm-0005-strip-hotkeys.patch deleted file mode 100644 index 1800a2da2e..0000000000 --- a/packages/x11/other/dwm/patches/dwm-0005-strip-hotkeys.patch +++ /dev/null @@ -1,58 +0,0 @@ -From 542759343e637727587a3a64794bdff38d45a91c Mon Sep 17 00:00:00 2001 -From: Stefan Saraev -Date: Sat, 12 Oct 2013 14:26:51 +0300 -Subject: [PATCH 5/5] strip hotkeys - -only alt-tab we need ---- - config.def.h | 34 +--------------------------------- - 1 files changed, 1 insertions(+), 33 deletions(-) - -diff --git a/config.def.h b/config.def.h -index 422ff0b..4186ec2 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -51,39 +51,7 @@ static const char *termcmd[] = { "uxterm", NULL }; - - static Key keys[] = { - /* modifier key function argument */ -- { MODKEY, XK_p, spawn, {.v = dmenucmd } }, -- { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, -- { MODKEY, XK_b, togglebar, {0} }, -- { MODKEY, XK_j, focusstack, {.i = +1 } }, -- { MODKEY, XK_k, focusstack, {.i = -1 } }, -- { MODKEY, XK_i, incnmaster, {.i = +1 } }, -- { MODKEY, XK_d, incnmaster, {.i = -1 } }, -- { MODKEY, XK_h, setmfact, {.f = -0.05} }, -- { MODKEY, XK_l, setmfact, {.f = +0.05} }, -- { MODKEY, XK_Return, zoom, {0} }, -- { MODKEY, XK_Tab, view, {0} }, -- { MODKEY|ShiftMask, XK_c, killclient, {0} }, -- { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, -- { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, -- { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, -- { MODKEY, XK_space, setlayout, {0} }, -- { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, -- { MODKEY, XK_0, view, {.ui = ~0 } }, -- { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, -- { MODKEY, XK_comma, focusmon, {.i = -1 } }, -- { MODKEY, XK_period, focusmon, {.i = +1 } }, -- { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, -- { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, -- TAGKEYS( XK_1, 0) -- TAGKEYS( XK_2, 1) -- TAGKEYS( XK_3, 2) -- TAGKEYS( XK_4, 3) -- TAGKEYS( XK_5, 4) -- TAGKEYS( XK_6, 5) -- TAGKEYS( XK_7, 6) -- TAGKEYS( XK_8, 7) -- TAGKEYS( XK_9, 8) -- { MODKEY|ShiftMask, XK_q, quit, {0} }, -+ { MODKEY, XK_Tab, focusstack, {.i = +1 } }, - }; - - /* button definitions */ --- -1.7.2.5 - diff --git a/packages/x11/other/dwm/system.d/windowmanager.service b/packages/x11/other/dwm/system.d/windowmanager.service deleted file mode 100644 index 2c93ea8b95..0000000000 --- a/packages/x11/other/dwm/system.d/windowmanager.service +++ /dev/null @@ -1,18 +0,0 @@ -[Unit] -Description=dwm Window Manager -Requires=xorg.service -After=xorg.service -Before=xbmc.service - -[Service] -Environment=DISPLAY=:0 -Environment=HOME=/storage -ExecStart=/usr/bin/dwm -KillMode=process -Restart=always -RestartSec=1 -StartLimitInterval=0 -TimeoutStopSec=1s - -[Install] -WantedBy=graphical.target diff --git a/projects/ATV/options b/projects/ATV/options index fd13c776f8..539462f2c5 100644 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -243,7 +243,7 @@ # OpenGL-ES implementation to use (no) OPENGLES="no" -# Windowmanager to use (ratpoison / fluxbox / dwm / none) +# Windowmanager to use (ratpoison / fluxbox / none) WINDOWMANAGER="fluxbox" # include uvesafb support (yes / no) diff --git a/projects/Cuboxi/options b/projects/Cuboxi/options index 0d6da8e00d..9deeb65523 100644 --- a/projects/Cuboxi/options +++ b/projects/Cuboxi/options @@ -245,7 +245,7 @@ # OpenGL-ES implementation to use (no / bcm2835-driver / gpu-viv-bin-mx6q) OPENGLES="gpu-viv-bin-mx6q" -# Windowmanager to use (ratpoison / fluxbox / dwm / none) +# Windowmanager to use (ratpoison / fluxbox / none) WINDOWMANAGER="none" # include uvesafb support (yes / no) diff --git a/projects/Generic/options b/projects/Generic/options index 0816c724e1..a17c9774af 100644 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -243,7 +243,7 @@ # OpenGL-ES implementation to use (no) OPENGLES="no" -# Windowmanager to use (ratpoison / fluxbox / dwm / none) +# Windowmanager to use (ratpoison / fluxbox / none) WINDOWMANAGER="fluxbox" # include uvesafb support (yes / no) diff --git a/projects/RPi/options b/projects/RPi/options index 33a299bbe4..f0288250c6 100644 --- a/projects/RPi/options +++ b/projects/RPi/options @@ -244,7 +244,7 @@ # OpenGL-ES implementation to use (no / bcm2835-driver) OPENGLES="bcm2835-driver" -# Windowmanager to use (ratpoison / fluxbox / dwm / none) +# Windowmanager to use (ratpoison / fluxbox / none) WINDOWMANAGER="none" # include uvesafb support (yes / no) diff --git a/projects/Virtual/options b/projects/Virtual/options index 740db5f194..991f919e7d 100644 --- a/projects/Virtual/options +++ b/projects/Virtual/options @@ -238,7 +238,7 @@ # OpenGL-ES implementation to use (no) OPENGLES="no" -# Windowmanager to use (ratpoison / fluxbox / dwm / none) +# Windowmanager to use (ratpoison / fluxbox / none) WINDOWMANAGER="fluxbox" # include uvesafb support (yes / no)