summaryrefslogtreecommitdiff
path: root/pcr/i3-gnome
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/i3-gnome')
-rw-r--r--pcr/i3-gnome/PKGBUILD39
-rw-r--r--pcr/i3-gnome/i3-gnome13
-rw-r--r--pcr/i3-gnome/i3-gnome-app.desktop9
-rw-r--r--pcr/i3-gnome/i3-gnome-xsession.desktop6
-rw-r--r--pcr/i3-gnome/i3-gnome.install20
-rw-r--r--pcr/i3-gnome/i3-gnome.session3
6 files changed, 90 insertions, 0 deletions
diff --git a/pcr/i3-gnome/PKGBUILD b/pcr/i3-gnome/PKGBUILD
new file mode 100644
index 000000000..886c9c972
--- /dev/null
+++ b/pcr/i3-gnome/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer (Arch): Klaas Boesche <aurkagebe@gmail.com>
+# Contributor (Arch): Alexandre Isoard <alexandre.isoard@gmail.com>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+pkgname=i3-gnome
+_pkgname=i3
+pkgver=4.7
+pkgrel=3
+pkgdesc="Integrate the i3 window manager into GNOME"
+url="http://i3wm.org/"
+arch=('any')
+license=('GPL')
+depends=("i3-wm>=4.0" "desktop-file-utils" "gnome-session>=3.8")
+
+install=$pkgname.install
+source=("$pkgname-xsession.desktop" "$pkgname" "$pkgname-app.desktop" "$pkgname.session")
+md5sums=('736be1595d8b7500a88b7bd751586f41'
+ 'd51b67b09f2cba6f8aed2497df7b3e14'
+ '9451925dde48cec7a0d7e6b7745b7252'
+ '658021bd016cc8476c6e7ca40672a016')
+
+package() {
+ msg "Install $pkgname in xsessions"
+ install -D -m 644 "$srcdir/$pkgname-xsession.desktop" \
+ "$pkgdir/usr/share/xsessions/$pkgname.desktop"
+
+ msg "Install $pkgname in gnome-session/sessions"
+ install -D -m 644 "$srcdir/$pkgname.session" \
+ "$pkgdir/usr/share/gnome-session/sessions/$pkgname.session"
+
+ msg "Install $pkgname in /ush/share/applications"
+ install -D -m 644 "$srcdir/$pkgname-app.desktop" \
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
+
+ msg "Install $pkgname in /usr/bin"
+ install -D -m 755 "$srcdir/$pkgname" \
+ "$pkgdir/usr/bin/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/i3-gnome/i3-gnome b/pcr/i3-gnome/i3-gnome
new file mode 100644
index 000000000..4cfb8fc6e
--- /dev/null
+++ b/pcr/i3-gnome/i3-gnome
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ -n "$DESKTOP_AUTOSTART_ID" ]; then
+ dbus-send --session --dest=org.gnome.SessionManager "/org/gnome/SessionManager" org.gnome.SessionManager.RegisterClient "string:i3-gnome" "string:$DESKTOP_AUTOSTART_ID"
+fi
+
+# Fix the cursor missing problem
+dconf write /org/gnome/settings-daemon/plugins/cursor/active false
+
+# Disable Gnome Shell's App Menu, so that lost menu items are shown again
+gsettings set org.gnome.settings-daemon.plugins.xsettings overrides '@a{sv} {"Gtk/ShellShowsAppMenu": <int32 0>}'
+
+i3
diff --git a/pcr/i3-gnome/i3-gnome-app.desktop b/pcr/i3-gnome/i3-gnome-app.desktop
new file mode 100644
index 000000000..d73366e8f
--- /dev/null
+++ b/pcr/i3-gnome/i3-gnome-app.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=i3-gnome
+Comment=improved dynamic tiling window manager, registers with gnome session manager
+Exec=i3-gnome
+X-GNOME-WMName=i3
+X-GNOME-Autostart-Phase=WindowManager
+X-GNOME-Provides=windowmanager
+X-GNOME-Autostart-Notify=false
diff --git a/pcr/i3-gnome/i3-gnome-xsession.desktop b/pcr/i3-gnome/i3-gnome-xsession.desktop
new file mode 100644
index 000000000..e50d957e4
--- /dev/null
+++ b/pcr/i3-gnome/i3-gnome-xsession.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=i3 + GNOME
+Comment=improved dynamic tiling window manager
+Exec=gnome-session --session=i3-gnome
+Type=XSession
diff --git a/pcr/i3-gnome/i3-gnome.install b/pcr/i3-gnome/i3-gnome.install
new file mode 100644
index 000000000..22dcd5ce9
--- /dev/null
+++ b/pcr/i3-gnome/i3-gnome.install
@@ -0,0 +1,20 @@
+pkgname=i3-gnome
+
+post_install() {
+ update-desktop-database -q
+ echo "In '~/.config/i3/config':"
+ echo "* use 'exec gnome-session-quit --logout' : logout dialog"
+ echo "* use 'exec gnome-session-quit --power-off' : shutdown menu"
+ echo "If you have gnome-screensaver installed and want to use it:"
+ echo "* use 'exec gnome-screensaver-command -l' : locks the screen"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ update-desktop-database -q
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/i3-gnome/i3-gnome.session b/pcr/i3-gnome/i3-gnome.session
new file mode 100644
index 000000000..ebae0c95b
--- /dev/null
+++ b/pcr/i3-gnome/i3-gnome.session
@@ -0,0 +1,3 @@
+[GNOME Session]
+Name=i3-gnome
+RequiredComponents=gnome-settings-daemon;i3-gnome;