Merge branch 'master' of git.yori.cc:yorick/dotfiles

auto-flake-update
Yorick van Pelt 2017-02-26 13:51:14 +01:00
commit 63410d8b78
3 changed files with 49 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{writeTextDir, writeScript, lib,
rofi, xss-lock, nitrogen, compton-git, i3status, i3-gaps
, i3lock-fancy, xset, alsaUtils, light, screenshot_public, xorg,
, i3lock-fancy, xset, alsaUtils, light, screenshot_public, xorg, libinput-gestures,
with_lock ? true, compton_name ? "default"}:
let
@ -173,6 +173,7 @@ exec --no-startup-id ${compton-git}/bin/compton --config /home/yorick/dotfiles/x
exec --no-startup-id ${xorg.xf86inputsynaptics}/bin/syndaemon -i 0.5 -k -t
exec --no-startup-id ${xss-lock}/bin/xss-lock -l -- ${locker}
exec --no-startup-id ${libinput-gestures}/bin/libinput-gestures
'') + ''

View File

@ -63,6 +63,8 @@
'';
};
libinput-gestures = pkgs.callPackage ./libinput-gestures.nix {};
weiightminder = pkgs.callPackage (fetchgit {
url = https://gist.github.com/yorickvP/229d21a7da13c9c514dbd26147822641;
rev = "9749ef4d83c0078bc0248215ee882d7124827cf3";

View File

@ -0,0 +1,45 @@
{ pkgs ? (import <nixpkgs> {})
, stdenv ? pkgs.stdenv
, xdotool ? pkgs.xdotool
, makeWrapper ? pkgs.makeWrapper
, wmctrl ? pkgs.wmctrl
, fetchFromGitHub ? pkgs.fetchFromGitHub
, bash ? pkgs.bash
, python3 ? pkgs.python3
, libinput ? pkgs.libinput
, procps ? pkgs.procps
}:
stdenv.mkDerivation rec {
version = "2.16";
name = "libinput-gestures-${version}";
src = fetchFromGitHub {
owner = "bulletmark";
repo = "libinput-gestures";
rev = version;
sha256 = "0ix1ygbrwjvabxpq8g4xcfdjrcc6jq79vxpbv6msaxmjxp6dv17w";
};
patches = [./paths.diff];
buildInputs = with pkgs; [ makeWrapper ];
installFlags = "DESTDIR=$(out)";
preInstall = ''
substituteAllInPlace libinput-gestures.desktop
'';
postInstall = ''
wrapProgram $out/bin/libinput-gestures \
--prefix PATH : "${python3}/bin:${xdotool}/bin:${wmctrl}/bin:${libinput}/bin"
substituteInPlace $out/bin/libinput-gestures-setup \
--replace "DIR=\"/" "DIR=\"$out/"
wrapProgram $out/bin/libinput-gestures-setup \
--prefix PATH : "${procps}/bin:${libinput}/bin"
'';
meta = with stdenv.lib; {
description = "libinput gesture recognition";
license = licenses.gpl3;
maintainers = with maintainers; [ yorickvp ];
};
}