initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

74
openbox/PKGBUILD Normal file
View File

@@ -0,0 +1,74 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=openbox
pkgver=3.6.1
_debver=$pkgver
_debrel=10
pkgrel=5
pkgdesc="Highly configurable and lightweight X11 window manager"
arch=('i686' 'x86_64')
url='https://openbox.org'
license=('GPL-2')
depends=('startup-notification' 'libxml2' 'libxinerama' 'libxrandr'
'libxcursor' 'pango' 'imlib2' 'librsvg-legacy' 'libsm' 'libxi')
makedepends=('python' 'quilt')
optdepends=('python-pyxdg: for the openbox-xdg-autostart script')
backup=('etc/xdg/openbox/menu.xml'
'etc/xdg/openbox/rc.xml'
'etc/xdg/openbox/autostart'
'etc/xdg/openbox/environment')
source=("${pkgname}-${pkgver}.tar.gz::https://deb.debian.org/debian/pool/main/o/openbox/openbox_${pkgver}.orig.tar.gz"
"https://deb.debian.org/debian/pool/main/o/openbox/openbox_${_debver}-${_debrel}.debian.tar.xz"
"libre.patch")
sha512sums=('5e6f4a214005bea8b26bc8959fe5bb67356a387ddd317e014f43cb5b5bf263ec617a5973e2982eb76a08dc7d3ca5ec9e72e64c9b5efd751001a8999b420b1ad0'
'91eae46531a66554d57db3411414e5320a309f5ef75a14722b83f298b5bff3c1af2016df834b7ee6bb8937410da7b532ddfc29b670f03f73ffe6500b88216d87'
'ffa2673a49b48dc41a6323667668ad5ecb4c08ba2355f3654e52957c15fb0144c633874fe338fd7085e587979bba210a34ee562e6ba175988729ece4139932d5')
prepare() {
cd "$pkgname-$pkgver"
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
quilt push -av
fi
# remove non-free and not supported applications
patch -Np1 -i "${srcdir}/libre.patch"
autoreconf -ifv
}
build() {
cd "$pkgname-$pkgver"
./configure \
--prefix=/usr \
--with-x \
--enable-startup-notification \
--sysconfdir=/etc \
--libexecdir=/usr/libexec/openbox
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
# remove gnome and included parts as being not part of Hyperbola
rm -r "$pkgdir"/usr/bin/{gdm-control,gnome-panel-control,openbox-gnome-session} \
"$pkgdir"/usr/share/gnome{,-session} \
"$pkgdir"/usr/share/man/man1/openbox-gnome-session.1 \
"$pkgdir"/usr/share/xsessions/openbox-gnome.desktop
# remove kde and included parts as being not part of Hyperbola
rm -rf "$pkgdir"/usr/bin/openbox-kde-session \
"$pkgdir"/usr/share/man/man1/openbox-kde-session.1 \
"$pkgdir"/usr/share/xsessions/openbox-kde.desktop
# license
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
}

362
openbox/libre.patch Normal file
View File

@@ -0,0 +1,362 @@
diff --git a/data/menu.xml b/data/menu.xml
index 39da04d..31a9f08 100644
--- a/data/menu.xml
+++ b/data/menu.xml
@@ -5,23 +5,15 @@
<menu id="apps-accessories-menu" label="Accessories">
<item label="Calculator">
<action name="Execute">
- <command>gnome-calculator</command>
+ <command>galculator</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
</action>
</item>
- <item label="Character Map">
+ <item label="Xarchiver File Archiver">
<action name="Execute">
- <command>gnome-character-map</command>
- <startupnotify>
- <enabled>yes</enabled>
- </startupnotify>
- </action>
- </item>
- <item label="Ark File Archiver">
- <action name="Execute">
- <command>ark</command>
+ <command>xarchiver</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
@@ -48,25 +40,9 @@
</startupnotify>
</action>
</item>
- <item label="GEdit">
+ <item label="L3afpad">
<action name="Execute">
- <command>gedit</command>
- <startupnotify>
- <enabled>yes</enabled>
- </startupnotify>
- </action>
- </item>
- <item label="Kate">
- <action name="Execute">
- <command>kate</command>
- <startupnotify>
- <enabled>yes</enabled>
- </startupnotify>
- </action>
- </item>
- <item label="Kwrite">
- <action name="Execute">
- <command>kwrite</command>
+ <command>l3afpad</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
@@ -80,25 +56,17 @@
<command>urxvt</command>
</action>
</item>
- <item label="Gnome Terminal">
- <action name="Execute">
- <command>gnome-terminal</command>
- <startupnotify>
- <enabled>yes</enabled>
- </startupnotify>
- </action>
- </item>
- <item label="Xfce Terminal">
+ <item label="Sakura">
<action name="Execute">
- <command>xfce4-terminal</command>
+ <command>sakura</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
</action>
</item>
- <item label="Konsole">
+ <item label="St">
<action name="Execute">
- <command>konsole</command>
+ <command>st</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
@@ -110,35 +78,27 @@
</menu>
<menu id="apps-net-menu" label="Internet">
- <item label="Firefox">
+ <item label="Iceweasel-UXP">
<action name="Execute">
- <command>firefox</command>
+ <command>iceweasel-uxp</command>
<startupnotify>
<enabled>yes</enabled>
- <wmclass>Firefox</wmclass>
+ <wmclass>Iceweasel-UXP</wmclass>
</startupnotify>
</action>
</item>
- <item label="Opera">
+ <item label="Surf">
<action name="Execute">
- <command>opera</command>
+ <command>surf</command>
<startupnotify>
<enabled>yes</enabled>
- <wmclass>Opera</wmclass>
+ <wmclass>otter-browser</wmclass>
</startupnotify>
</action>
</item>
- <item label="Konqueror">
+ <item label="Bad Wolf">
<action name="Execute">
- <command>konqueror</command>
- <startupnotify>
- <enabled>yes</enabled>
- </startupnotify>
- </action>
- </item>
- <item label="Epiphany">
- <action name="Execute">
- <command>epiphany</command>
+ <command>badwolf</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
@@ -152,17 +112,17 @@
</startupnotify>
</action>
</item>
- <item label="Kopete Instant Messenger">
+ <item label="Pidgin Instant Messenger">
<action name="Execute">
- <command>kopete</command>
+ <command>pidgin</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
</action>
</item>
- <item label="XChat">
+ <item label="Hexchat">
<action name="Execute">
- <command>xchat</command>
+ <command>hexchat</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
@@ -171,80 +131,75 @@
</menu>
<menu id="apps-office-menu" label="Office">
- <item label="OpenOffice Base">
- <action name="Execute">
- <command>ooffice -base</command>
- </action>
- </item>
- <item label="OpenOffice Calc">
+ <item label="LibreOffice Base">
<action name="Execute">
- <command>ooffice -calc</command>
+ <command>loffice --base</command>
</action>
</item>
- <item label="OpenOffice Draw">
+ <item label="LibreOffice Calc">
<action name="Execute">
- <command>ooffice -draw</command>
+ <command>loffice --calc</command>
</action>
</item>
- <item label="OpenOffice Impress">
+ <item label="LibreOffice Draw">
<action name="Execute">
- <command>ooffice -impress</command>
+ <command>loffice --draw</command>
</action>
</item>
- <item label="OpenOffice Math">
+ <item label="LibreOffice Impress">
<action name="Execute">
- <command>ooffice -math</command>
+ <command>loffice --impress</command>
</action>
</item>
- <item label="OpenOffice Printer Administration">
+ <item label="LibreOffice Math">
<action name="Execute">
- <command>ooffice-printeradmin</command>
+ <command>loffice --math</command>
</action>
</item>
- <item label="OpenOffice Writer">
+ <item label="LibreOffice Writer">
<action name="Execute">
- <command>ooffice -writer</command>
+ <command>loffice --writer</command>
</action>
</item>
</menu>
<menu id="apps-multimedia-menu" label="Multimedia">
- <item label="Amarok">
+ <item label="Audacious">
<action name="Execute">
- <command>amarok</command>
+ <command>audacious</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
</action>
</item>
- <item label="Rhythmbox">
+ <item label="Deadbeef">
<action name="Execute">
- <command>rhythmbox</command>
+ <command>deadbeef</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
</action>
</item>
- <item label="K3b">
+ <item label="MPlayer">
<action name="Execute">
- <command>k3b</command>
+ <command>mplayer</command>
<startupnotify>
<enabled>yes</enabled>
+ <wmclass>MPlayer</wmclass>
</startupnotify>
</action>
</item>
- <item label="MPlayer">
+ <item label="MPV">
<action name="Execute">
- <command>gmplayer</command>
+ <command>mpv</command>
<startupnotify>
<enabled>yes</enabled>
- <wmclass>MPlayer</wmclass>
</startupnotify>
</action>
</item>
- <item label="Totem">
+ <item label="SMPlayer">
<action name="Execute">
- <command>totem</command>
+ <command>smplayer</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
@@ -253,25 +208,25 @@
</menu>
<menu id="apps-fileman-menu" label="File Managers">
- <item label="Nautilus">
+ <item label="Xfe">
<action name="Execute">
- <command>nautilus --no-desktop --browser</command>
+ <command>xfe</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
</action>
</item>
- <item label="Thunar">
+ <item label="Spacefm">
<action name="Execute">
- <command>Thunar</command>
+ <command>spacefm</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
</action>
</item>
- <item label="KDE File Manager">
+ <item label="MC">
<action name="Execute">
- <command>kfmclient openURL ~</command>
+ <command>mc</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
@@ -286,9 +241,9 @@
</startupnotify>
</action>
</item>
- <item label="PCMan File Manager">
+ <item label="CliFM">
<action name="Execute">
- <command>pcmanfm</command>
+ <command>clifm</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
@@ -305,9 +260,9 @@
</startupnotify>
</action>
</item>
- <item label="Gwenview">
+ <item label="Krita">
<action name="Execute">
- <command>gwenview</command>
+ <command>krita</command>
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
@@ -338,24 +293,6 @@
<startupnotify><enabled>yes</enabled></startupnotify>
</action>
</item>
- <item label="Gnome Control Center">
- <action name="Execute">
- <command>gnome-control-center</command>
- <startupnotify><enabled>yes</enabled></startupnotify>
- </action>
- </item>
- <item label="KDE Control Center">
- <action name="Execute">
- <command>kcontrol</command>
- <startupnotify><enabled>yes</enabled></startupnotify>
- </action>
- </item>
- <item label="Xfce Settings">
- <action name="Execute">
- <command>xfce-setting-show</command>
- <startupnotify><enabled>yes</enabled></startupnotify>
- </action>
- </item>
<item label="Manage Cups Printers">
<action name="Execute">
<command>xdg-open http://localhost:631/</command>
diff --git a/openbox/session.c b/openbox/session.c
index d6c6f76..8cc54d8 100644
--- a/openbox/session.c
+++ b/openbox/session.c
@@ -659,7 +659,7 @@ static gboolean session_state_cmp(ObSessionState *s, ObClient *c)
!strcmp(s->class, c->class) &&
!strcmp(s->role, c->role) &&
/* the check for type is to catch broken clients, like
- firefox, which open a different window on startup
+ iceweasel-uxp, which open a different window on startup
with the same info as the one we saved. only do this
check for old windows that dont use xsmp, others should
know better ! */
@@ -800,7 +800,7 @@ static void session_load_file(const gchar *path)
/* Remove any duplicates. This means that if two windows (or more) are
saved with the same session state, we won't restore a session for any
- of them because we don't know what window to put what on. AHEM FIREFOX.
+ of them because we don't know what window to put what on. AHEM ICEWEASEL-UXP.
This is going to be an O(2^n) kind of operation unfortunately.
*/