moving some dirs
This commit is contained in:
parent
af5adf4513
commit
712441876c
16 changed files with 0 additions and 0 deletions
2
pkgs/mypackages/kanshi-fix/99-kanshi-fix.rules
Normal file
2
pkgs/mypackages/kanshi-fix/99-kanshi-fix.rules
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
KERNEL=="card0", SUBSYSTEM=="drm", RUN+="$(pkgs.kanshi-fix}/bin/kanshi-fix"
|
||||
|
||||
2
pkgs/mypackages/kanshi-fix/default.nix
Normal file
2
pkgs/mypackages/kanshi-fix/default.nix
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
pkgs.callPackage ./derivation.nix {}
|
||||
20
pkgs/mypackages/kanshi-fix/derivation.nix
Normal file
20
pkgs/mypackages/kanshi-fix/derivation.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ stdenv }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "kanshi-fix-${version}";
|
||||
version = "1.4";
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [ ];
|
||||
buildInputs = [ ];
|
||||
|
||||
dontConfigure = true;
|
||||
buildPhase = ''
|
||||
chmod 0755 kanshi-fix
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp kanshi-fix $out/bin
|
||||
'';
|
||||
}
|
||||
4
pkgs/mypackages/kanshi-fix/kanshi-fix
Executable file
4
pkgs/mypackages/kanshi-fix/kanshi-fix
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
export SWAYSOCK=/run/user/1000/sway-ipc.1000.$(pgrep -x sway).sock
|
||||
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
|
||||
swaymsg "output * dpms on"
|
||||
Loading…
Add table
Add a link
Reference in a new issue