Nix fmt rfc style (more or less)
This commit is contained in:
parent
e7496c447a
commit
515f098644
146 changed files with 2607 additions and 906 deletions
|
|
@ -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
|
||||
''
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue