Better keyboard switch script
This commit is contained in:
parent
191c47e61f
commit
b92860a8fd
1 changed files with 3 additions and 1 deletions
|
|
@ -21,7 +21,9 @@ let
|
||||||
'';
|
'';
|
||||||
keyboardStatus = pkgs.writeShellScript "keyboardStatus" ''
|
keyboardStatus = pkgs.writeShellScript "keyboardStatus" ''
|
||||||
PATH=$PATH:"${lib.makeBinPath [ pkgs.coreutils ]}"
|
PATH=$PATH:"${lib.makeBinPath [ pkgs.coreutils ]}"
|
||||||
if [[ `cat ~/.local/share/keyboard-switch.state` == "disabled" ]]; then echo ; else echo ; fi
|
STATE=~/.local/share/keyboard-switch.state
|
||||||
|
touch $STATE
|
||||||
|
if [[ `cat $STATE` == "disabled" ]]; then echo ; else echo ; fi
|
||||||
'';
|
'';
|
||||||
keyboardToggle = pkgs.writeShellScript "keyboardToggle" ''
|
keyboardToggle = pkgs.writeShellScript "keyboardToggle" ''
|
||||||
PATH=$PATH:"${lib.makeBinPath [ pkgs.keyboard-switch ]}"
|
PATH=$PATH:"${lib.makeBinPath [ pkgs.keyboard-switch ]}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue