switching to self built ydotool

This commit is contained in:
Chris Cochrun 2022-12-21 09:14:17 -06:00
parent d9cf8e32a7
commit 96c5af1ef7
6 changed files with 16 additions and 15 deletions

View file

@ -16,7 +16,7 @@
kcoreaddons, kcoreaddons,
# systemsettings, # systemsettings,
cmake, cmake,
qt5Full, qt5base,
extra-cmake-modules, extra-cmake-modules,
wrapQtAppsHook, wrapQtAppsHook,
libepoxy, libepoxy,
@ -39,7 +39,6 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
qtbase qtbase
qt5Full
qtx11extras qtx11extras
qttools qttools
kglobalaccel kglobalaccel

View file

@ -17,11 +17,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1668417584, "lastModified": 1671359686,
"narHash": "sha256-yeuEyxKPwsm5fIHN49L/syn9g5coxnPp3GsVquhrv5A=", "narHash": "sha256-3MpC6yZo+Xn9cPordGz2/ii6IJpP2n8LE8e/ebUXLrs=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "013fcdd106823416918004bb684c3c186d3c460f", "rev": "04f574a1c0fde90b51bf68198e2297ca4e7cccf4",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -475,7 +475,7 @@ pulsemixer
any-nix-shell any-nix-shell
wtype wtype
xdotool xdotool
ydotool # ydotool
wmctrl wmctrl
xcape xcape
xclip xclip
@ -555,7 +555,7 @@ Let's also add our own package from my WIP presenter
#+NAME: ydotool #+NAME: ydotool
#+begin_src nix #+begin_src nix
(callPackage /home/chris/.dotfiles/ydotool {}) (import /home/chris/.dotfiles/ydotool { inherit lib stdenv util-linux cmake scdoc fetchFromGitHub; })
#+end_src #+end_src
Firefox has it's own setup Firefox has it's own setup
@ -880,6 +880,7 @@ Notice how I am including all of my software here. It may be a big file, but hav
fet-sh fet-sh
macchina macchina
# Dev tools # Dev tools
<<ydotool>>
<<dev-tools>> <<dev-tools>>
<<lightlyshaders>> <<lightlyshaders>>
<<librepresenter>> <<librepresenter>>

View file

@ -69,16 +69,16 @@ fi
case ${option} in case ${option} in
Password ) Password )
echo "${SECRET}" echo "${SECRET}"
ydotool type --key-delay 2ms $(rbw get "${SECRET}") ydotool type --key-delay 1ms $(rbw get "${SECRET}")
;; ;;
User ) User )
echo "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')" echo "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
ydotool type --key-delay 2ms "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')" ydotool type --key-delay 1ms "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
;; ;;
"User and password" ) "User and password" )
ydotool type --key-delay 2ms $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}') ydotool type --key-delay 1ms $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')
ydotool key 15:1 15:0 ydotool key 15:1 15:0
ydotool type --key-delay 2ms $(rbw get "${SECRET}") ydotool type --key-delay 1ms $(rbw get "${SECRET}")
;; ;;
"QR-Code" ) "QR-Code" )
if [[ $SECRET =~ wifi$ ]]; then if [[ $SECRET =~ wifi$ ]]; then
@ -93,7 +93,7 @@ case ${option} in
fi fi
;; ;;
OTP ) OTP )
ydotool type --key-delay 2ms $(rbw code "${SECRET}") ydotool type --key-delay 1ms $(rbw code "${SECRET}")
;; ;;
esac esac

View file

@ -351,7 +351,7 @@
any-nix-shell any-nix-shell
wtype wtype
xdotool xdotool
ydotool # ydotool
wmctrl wmctrl
xcape xcape
xclip xclip
@ -390,7 +390,7 @@
protonup protonup
nvtop nvtop
# Dev tools # Dev tools
(callPackage /home/chris/.dotfiles/ydotool {}) (import /home/chris/.dotfiles/ydotool { inherit lib stdenv util-linux cmake scdoc fetchFromGitHub; })
# android-tools # android-tools
nix-index nix-index
# meson # meson

View file

@ -370,7 +370,7 @@
any-nix-shell any-nix-shell
wtype wtype
xdotool xdotool
ydotool # ydotool
wmctrl wmctrl
xcape xcape
xclip xclip
@ -411,6 +411,7 @@
fet-sh fet-sh
macchina macchina
# Dev tools # Dev tools
(import /home/chris/.dotfiles/ydotool { inherit lib stdenv util-linux cmake scdoc fetchFromGitHub; })
# android-tools # android-tools
nix-index nix-index
# meson # meson