diff options
author | dustball | 2015-08-08 14:51:26 +0200 |
---|---|---|
committer | dustball | 2015-08-08 14:51:26 +0200 |
commit | ac7efec709af71a3b6d6c7d1b024d9dc6d249bc8 (patch) | |
tree | 646505cc7cef0353a0176c82e1d69da4af4b8070 | |
download | aur-ac7efec709af71a3b6d6c7d1b024d9dc6d249bc8.tar.gz |
Init
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | oblogout.conf | 55 | ||||
-rw-r--r-- | oblogout.install | 14 | ||||
-rw-r--r-- | switch-user.patch | 33 |
5 files changed, 172 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..852775bcf3f7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = oblogout-fork-git + pkgdesc = Openbox Logout Script Fork used by CrunchBang + pkgver = 20130106 + pkgrel = 3 + url = https://github.com/Cloudef/oblogout-fork + install = oblogout.install + arch = any + license = GPL2 + makedepends = git + depends = pygtk + depends = python2-pillow + depends = python2-distutils-extra + depends = python2-dbus + optdepends = upower + conflicts = openboxlogout-gnome + conflicts = oblogout + backup = etc/oblogout.conf + source = oblogout.conf + source = switch-user.patch + md5sums = 1e43b3a6ffeaefa0f68152a473259676 + md5sums = 86a7a64ae86c0d733f69d37da05eb357 + +pkgname = oblogout-fork-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3aeacafe5f74 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Kirill Malyshev <keryascorpio at gmail.com> +# Contributor: Robert Orzanna <orschiro@googlemail.com> +pkgname=oblogout-fork-git +pkgver=20130106 +pkgrel=3 +pkgdesc="Openbox Logout Script Fork used by CrunchBang" +arch=('any') +url="https://github.com/Cloudef/oblogout-fork" +depends=('pygtk' 'python2-pillow' 'python2-distutils-extra' 'python2-dbus') +optdepends=('upower') +makedepends=('git') +license=('GPL2') +backup=(etc/oblogout.conf) +conflicts=('openboxlogout-gnome' 'oblogout') +install=oblogout.install +source=(oblogout.conf + switch-user.patch) +md5sums=('1e43b3a6ffeaefa0f68152a473259676' + '86a7a64ae86c0d733f69d37da05eb357') + +_gitroot="git://github.com/Cloudef/oblogout-fork.git" +_gitname="oblogout-fork" + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot $_gitname --dept=1 + fi + + cd "$srcdir/$_gitname" + + patch -p1 < "$srcdir/switch-user.patch" +} + +package() { + cd "$srcdir/$_gitname" + python2 setup.py install --root="$pkgdir/" + install -m644 "$srcdir/oblogout.conf" "$pkgdir/etc/" +} + +# vim:set ts=2 sw=2 et: diff --git a/oblogout.conf b/oblogout.conf new file mode 100644 index 000000000000..8f2fad114d6c --- /dev/null +++ b/oblogout.conf @@ -0,0 +1,55 @@ +[settings] +# Backend +# Specify backed to use for oblogout's shutdown/restart operations +# - HAL +# - ConsoleKit +# +# If nothing then oblogout will use the commands you specify. +backend = + +# Monitor +# If you have multiple monitors, +# you can specify which one the oblogout will appear in. +monitor = 0 + +[looks] +# Looks +# Look and feel settings. + +opacity = 70 +bgcolor = black + +# Buttontheme +# Icon theme for the buttons, must be in ~/.themes/<name>/oblogout/ +buttontheme = foom + +# Buttons +# You can specify which buttons and their order you want here. +buttons = cancel, logout, restart, shutdown, suspend, lock + +[shortcuts] +# Shortcuts +# Keyboard shortcuts for actions. + +cancel = Escape +shutdown = S +restart = R +suspend = U +logout = L +lock = K +hibernate = H + +[commands] +# Commands +# You can specify command for certain action. + +# Ignored if you have a backend --> +shutdown = systemctl poweroff +restart = systemctl reboot +suspend = dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend +hibernate = dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate +# <-- + +lock = gnome-screensaver-command -l +switch = gdm-control --switch-user +logout = openbox --exit diff --git a/oblogout.install b/oblogout.install new file mode 100644 index 000000000000..6aaed9150454 --- /dev/null +++ b/oblogout.install @@ -0,0 +1,14 @@ +post_install () { + +echo ' IMPORTANT' +echo 'Make sure that dbus is running' +echo 'Customise the config (/etc/oblogout.conf) as required' +} + +post_upgrade() { + post_install $1 +} + +op=$1 +shift +$op $* diff --git a/switch-user.patch b/switch-user.patch new file mode 100644 index 000000000000..9354a96a5f18 --- /dev/null +++ b/switch-user.patch @@ -0,0 +1,33 @@ +diff --git a/data/oblogout.conf b/data/oblogout.conf +index bcff191..3c9bc57 100644 +--- a/data/oblogout.conf ++++ b/data/oblogout.conf +@@ -52,5 +52,5 @@ safesuspend = safesuspend + # <-- + + lock = gnome-screensaver-command -l +-switchuser = gdm-control --switch-user ++switch = gdm-control --switch-user + logout = openbox --exit +diff --git a/oblogout/__init__.py b/oblogout/__init__.py +index 69ca4c5..78611e1 100755 +--- a/oblogout/__init__.py ++++ b/oblogout/__init__.py +@@ -60,7 +60,7 @@ class OpenboxLogout(): + cmd_hibernate = "pmi action hibernate" + cmd_safesuspend = "" + cmd_lock = "gnome-screensaver-command -l" +- cmd_switchuser = "gdm-control --switch-user" ++ cmd_switch = "gdm-control --switch-user" + cmd_logout = "openbox --exit" + + def __init__(self, config=None, local=None): +@@ -409,7 +409,7 @@ class OpenboxLogout(): + self.__exec_cmd(self.cmd_lock) + + elif (data == 'switch'): +- self.__exec_cmd(self.cmd_switchuser) ++ self.__exec_cmd(self.cmd_switch) + + self.quit() + |