Commit cdac26b8 authored by Daniel Morlock's avatar Daniel Morlock

Add recent changesAdd recent changes..

parent c6862cf4
AUX xeventbind-handler 769 SHA256 04f8d4d8b5544ba53d6ab5a440048d40b086ec35b7812d1f0fb1ba470c44a9b9 SHA512 fdd5fe1d4405136b6c51c3aaebeb4591796c957e1f5219117823549e5f41070155329c0e73e900c908477e0f529622442c3bbb524df301ec2f6eda7f808b4650 WHIRLPOOL 682542d395c0442f21fd8332b7df416a6671d069a8202a44ab0d2d5fa87b0b98728d59a26a4837e34caaf03cdf9267c375fd2430df70652cd77aa69a19679225
AUX xeventbind.service 263 SHA256 63495410c4b5feb009d68b0c0cfa7e1e1bf6c824340617045648a323d0a81732 SHA512 8c67bf824ecf8b7e589a5ba809e52628a8705167a6f22da7a9c2dd79b353d0743d021ac6e473b8e0b71a02d321c4c8f34d761d95b8c906ec3c54e7ab0430f282 WHIRLPOOL 30211bf017ace76d5e0053e09ede8a7113168458d687383cbee6fb28df1d68ad197d69ba2e79c73e7632cd466171942d641516dce37332de73f401af47d87a78
EBUILD xeventbind-20160416.ebuild 581 SHA256 e1450d6e953cca9ed871dd3bdd721d95a7dddf9db242cd6e2cc008bf7a895d22 SHA512 c243d23c7e4229b5e49b1cc669f941a415648b1c5916cfa4e49d1833cadb2ed9318df60419f119a5e3693039a264abfd91863c2d16ab831d1630b831b0e2bab7 WHIRLPOOL ab2c804cbffbefd2acc9b79c0a90a529b08be1957270c63aebe6e9593d1b70c2993136cb3e5db95d9f43a1fdc2ec27b644e22193db282618714433aea27f3c86
#!/bin/bash
home=/home/$(whoami)
res=$(xrandr | grep '*' | head -n1 | awk -F' ' '{print $1}')
dpi=$(xdpyinfo | grep -B2 resolution | tail -n1 | awk '{print $2}' | awk -Fx '{print $1}')
#export DISPLAY=$display
#test -d "$home/.xres/dpi/${dpi}" || mkdir -p "$home/.xres/dpi/${dpi}"
#test -d "$home/.xres/res/${res}" || mkdir -p "$home/.xres/res/${res}"
for p in "$home/.xres/dpi/${dpi}" "$home/.xres/res/${res}" ; do
echo "Run scripts in \"$p/$s\" ..."
test -d "$p/$s" && for s in $(ls $p) ; do
test -x "$p/$s" && "$p/$s"
done
done
echo "Run scripts in \"$home/.xres/*\" with params \"${res} ${dpi}\" ..."
for s in $(find "$home/.xres" -type f -executable) ; do
echo "Run \"$s ${res} ${dpi}\" ..."
$s ${res} ${dpi}
done
exit 0
[Unit]
Description=xeventbind: A small utillity that runs scripts in ~/.xres on X11 resolution changes
[Service]
ExecStartPre=/usr/bin/xeventbind-handler
ExecStart=/usr/bin/xeventbind resolution /usr/bin/xeventbind-handler
[Install]
WantedBy=multi-user.target
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="A small utillity that runs your script on X11 events "
HOMEPAGE="https://github.com/ritave/xeventbind"
EGIT_REPO_URI="https://github.com/ritave/xeventbind.git"
EGIT_COMMIT="a0b00eda640520c2df1bcc0380c7fa575e1a982f"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
inherit git-r3 systemd
src_install() {
dobin xeventbind
dobin ${FILESDIR}/xeventbind-handler
systemd_douserunit ${FILESDIR}/xeventbind.service
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment