Extreme cleaup + new nix rice + commit hooks

This commit is contained in:
Filippo Berto 2022-06-02 20:16:20 +02:00
parent bc28d964d3
commit c9eeeb9dc4
59 changed files with 319 additions and 400 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, stdenv, autoPatchelfHook, ... }:
{ stdenv, autoPatchelfHook, ... }:
stdenv.mkDerivation rec {
name = "cocktail-bar-cli";
version = "1.0";

View file

@ -4,10 +4,9 @@
let
self = with pkgs; {
lockscreen = callPackage ./lockscreen {};
update-background = callPackage ./update-background {};
cocktail-bar-cli = callPackage ./cocktail-bar-cli {};
# joystickwake = callPackage ./joystickwake {};
lockscreen = callPackage ./lockscreen { };
update-background = callPackage ./update-background { };
cocktail-bar-cli = callPackage ./cocktail-bar-cli { };
};
in
(self)

View file

@ -1,36 +0,0 @@
{ lib, python3, fetchFromGitHub }:
python3.pkgs.buildPythonApplication rec {
pname = "joystickwake";
version = "0.2.4";
src = fetchFromGitHub {
owner = "foresto";
repo = pname;
rev = "v${version}";
sha256 = "0j8xwfmzzmc9s88zvzc3lv67821r6x28vy6vli3srvx859wprppd";
};
buildInputs = with python3.pkgs; [
pyudev
xlib
];
propagatedBuildInputs = with python3.pkgs; [
pyudev
xlib
];
doCheck = false;
meta = with lib; {
description = "A joystick-aware screen waker";
longDescription = ''
Linux gamers often find themselves unexpectedly staring at a blank screen, because their display server fails to recognize game controllers as input devices, allowing the screen blanker to activate during gameplay.
This program works around the problem by temporarily disabling screen blankers when joystick activity is detected.
'';
homepage = "https://github.com/foresto/joystickwake";
license = licenses.mit;
platforms = platforms.linux;
};
}

View file

@ -1,15 +1,14 @@
{ lib
, stdenv
, rice
, roboto
, i3lock-color
, writeScriptBin
, font ? { package = roboto; name = "Roboto"; }
, palette ? rice.palette.palette {}
, palette ? rice.palette.palette { }
, ...
}:
let
strPalette = rice.palette.toRGBAHex palette;
strPalette = lib.rice.palette.toRGBAHex palette;
in
writeScriptBin "lockscreen" ''
#!/bin/sh
@ -53,4 +52,4 @@ writeScriptBin "lockscreen" ''
--pass-screen-keys \
--pass-volume-keys \
--nofork
''
''

View file

@ -1,12 +1,11 @@
{ lib
, stdenv
, feh
{ feh
, glib
, findutils
, gnugrep
, coreutils
, writeScriptBin
, backgrounds_directory ? "$HOME/Immagini/Sfondi"}:
, backgrounds_directory ? "$HOME/Immagini/Sfondi"
}:
let
find = "${findutils}/bin/find";
grep = "${gnugrep}/bin/grep";