Nix fmt rfc style (more or less)

This commit is contained in:
Filippo Berto 2024-08-13 12:22:23 +02:00
parent e7496c447a
commit 515f098644
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
146 changed files with 2607 additions and 906 deletions

View file

@ -4,11 +4,18 @@
, libnotify
, coreutils
, keyboard_name ? "AT Translated Set 2 keyboard"
,
}:
writeShellScriptBin "keyboard-switch" ''
set -e
PATH=$PATH:"${lib.makeBinPath [ coreutils xorg.xinput libnotify ]}"
PATH=$PATH:"${
lib.makeBinPath [
coreutils
xorg.xinput
libnotify
]
}"
fconfig="''${XDG_DATA_HOME:-$HOME/.local/share}/keyboard-switch.state"
if [ ! -f $fconfig ]; then
echo "Creating config file"
@ -31,5 +38,3 @@ writeShellScriptBin "keyboard-switch" ''
echo 'disabled' > $fconfig
fi
''