Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
upd manjaro-i3-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
oberon-manjaro committed Mar 10, 2016
1 parent 682d26f commit 7670d1a
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 17 deletions.
4 changes: 2 additions & 2 deletions desktop-settings/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ pkgname=('manjaro-openbox-minimal-settings'
'manjaro-mate-settings'
'manjaro-netbook-settings'
'manjaro-pantheon-settings')
pkgver=20160309
pkgrel=1
pkgver=20160310
pkgrel=2
arch=('any')
url="https://github.com/manjaro/desktop-settings"
license=('GPL')
Expand Down
18 changes: 18 additions & 0 deletions i3/i3-scrot/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Maintainer: Bernhard Landauer <oberon@manjaro.org>

pkgname=i3-scrot
pkgver=1.0
pkgrel=1
pkgdesc="simple screenshot script using scrot"
arch=('any')
url="https://forum.manjaro.org/index.php?topic=31977.msg261964#msg261964"
license=('GPL')
depends=('libnotify'
'scrot'
'xdg-user-dirs')
source=('i3-scrot')
md5sums=('b6710609e1c14bd190bd049069ceb64e')

package() {
install -Dm755 "$srcdir/$pkgname" "$pkgdir/usr/bin/$pkgname"
}
70 changes: 70 additions & 0 deletions i3/i3-scrot/i3-scrot
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/bin/sh
# /usr/bin/i3-scrot
#
# simple screenshot-script using scrot for manjaro-i3 by oberon@manjaro.org

_conf=$HOME/.config/i3-scrot.conf

if ! [ -f $_conf ]; then
echo "scrot_dir=$(xdg-user-dir PICTURES)" > $_conf
fi

source $_conf

if ! [ -d $scrot_dir ]; then
mkdir -p $scrot_dir
fi

case "$1" in
--desk|-d|$NULL)
cd $scrot_dir
scrot &&
sleep 1 &&
notify-send "screenshot has been saved in $scrot_dir"
;;
--window|-w)
cd $scrot_dir
scrot -u &&
sleep 1 &&
notify-send "screenshot has been saved in $scrot_dir"
;;
--select|-s)
cd $scrot_dir
notify-send 'select an area for the screenshot' &
scrot -s &&
sleep 1 && notify-send "screenshot has been saved in $scrot_dir"
;;
--help|-h)
echo "
available options:
-d | --desk full screen
-w | --window active window
-s | --select selection
-h | --help display this information
Default option is 'full screen'.
The file destination can be set in ${_conf}.
Default is $scrot_dir
"
;;
*)
echo "
== ! i3-scrot: missing or wrong argument ! ==
available options:
-d | --desk full screen
-w | --window active window
-s | --select selection
-h | --help display this information
Default option is 'full screen'.
The file destination can be set in ${_conf}.
Default is $scrot_dir
"

exit 2
esac

exit 0
15 changes: 0 additions & 15 deletions nautilus-empty-file/.SRCINFO

This file was deleted.

0 comments on commit 7670d1a

Please sign in to comment.