switching to self built ydotool
This commit is contained in:
		
							parent
							
								
									d9cf8e32a7
								
							
						
					
					
						commit
						96c5af1ef7
					
				
					 6 changed files with 16 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -16,7 +16,7 @@
 | 
			
		|||
  kcoreaddons,
 | 
			
		||||
  # systemsettings,
 | 
			
		||||
  cmake,
 | 
			
		||||
  qt5Full,
 | 
			
		||||
  qt5base,
 | 
			
		||||
  extra-cmake-modules,
 | 
			
		||||
  wrapQtAppsHook,
 | 
			
		||||
  libepoxy,
 | 
			
		||||
| 
						 | 
				
			
			@ -39,7 +39,6 @@ stdenv.mkDerivation rec {
 | 
			
		|||
 | 
			
		||||
  buildInputs = [
 | 
			
		||||
    qtbase
 | 
			
		||||
    qt5Full
 | 
			
		||||
    qtx11extras
 | 
			
		||||
    qttools
 | 
			
		||||
    kglobalaccel
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										6
									
								
								LightlyShaders/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								LightlyShaders/flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
				
			
			@ -17,11 +17,11 @@
 | 
			
		|||
    },
 | 
			
		||||
    "nixpkgs": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1668417584,
 | 
			
		||||
        "narHash": "sha256-yeuEyxKPwsm5fIHN49L/syn9g5coxnPp3GsVquhrv5A=",
 | 
			
		||||
        "lastModified": 1671359686,
 | 
			
		||||
        "narHash": "sha256-3MpC6yZo+Xn9cPordGz2/ii6IJpP2n8LE8e/ebUXLrs=",
 | 
			
		||||
        "owner": "nixos",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "013fcdd106823416918004bb684c3c186d3c460f",
 | 
			
		||||
        "rev": "04f574a1c0fde90b51bf68198e2297ca4e7cccf4",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -475,7 +475,7 @@ pulsemixer
 | 
			
		|||
any-nix-shell
 | 
			
		||||
wtype
 | 
			
		||||
xdotool
 | 
			
		||||
ydotool
 | 
			
		||||
# ydotool
 | 
			
		||||
wmctrl
 | 
			
		||||
xcape
 | 
			
		||||
xclip
 | 
			
		||||
| 
						 | 
				
			
			@ -555,7 +555,7 @@ Let's also add our own package from my WIP presenter
 | 
			
		|||
 | 
			
		||||
#+NAME: ydotool
 | 
			
		||||
#+begin_src nix
 | 
			
		||||
(callPackage /home/chris/.dotfiles/ydotool {})
 | 
			
		||||
(import /home/chris/.dotfiles/ydotool { inherit lib stdenv util-linux cmake scdoc fetchFromGitHub; })
 | 
			
		||||
#+end_src
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
    macchina
 | 
			
		||||
    # Dev tools
 | 
			
		||||
    <<ydotool>>
 | 
			
		||||
    <<dev-tools>>
 | 
			
		||||
    <<lightlyshaders>>
 | 
			
		||||
    <<librepresenter>>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -69,16 +69,16 @@ fi
 | 
			
		|||
case ${option} in
 | 
			
		||||
    Password )
 | 
			
		||||
	echo "${SECRET}"
 | 
			
		||||
	ydotool type --key-delay 2ms $(rbw get "${SECRET}")
 | 
			
		||||
	ydotool type --key-delay 1ms $(rbw get "${SECRET}")
 | 
			
		||||
	;;
 | 
			
		||||
    User )
 | 
			
		||||
	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" )
 | 
			
		||||
	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 type --key-delay 2ms $(rbw get "${SECRET}")
 | 
			
		||||
	ydotool type --key-delay 1ms $(rbw get "${SECRET}")
 | 
			
		||||
	;;
 | 
			
		||||
    "QR-Code" )
 | 
			
		||||
	if [[ $SECRET =~ wifi$ ]]; then
 | 
			
		||||
| 
						 | 
				
			
			@ -93,7 +93,7 @@ case ${option} in
 | 
			
		|||
	fi
 | 
			
		||||
	;;
 | 
			
		||||
    OTP )
 | 
			
		||||
	ydotool type --key-delay 2ms $(rbw code "${SECRET}")
 | 
			
		||||
	ydotool type --key-delay 1ms $(rbw code "${SECRET}")
 | 
			
		||||
	;;
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -351,7 +351,7 @@
 | 
			
		|||
    any-nix-shell
 | 
			
		||||
    wtype
 | 
			
		||||
    xdotool
 | 
			
		||||
    ydotool
 | 
			
		||||
    # ydotool
 | 
			
		||||
    wmctrl
 | 
			
		||||
    xcape
 | 
			
		||||
    xclip
 | 
			
		||||
| 
						 | 
				
			
			@ -390,7 +390,7 @@
 | 
			
		|||
    protonup
 | 
			
		||||
    nvtop
 | 
			
		||||
    # Dev tools
 | 
			
		||||
    (callPackage /home/chris/.dotfiles/ydotool {})
 | 
			
		||||
    (import /home/chris/.dotfiles/ydotool { inherit lib stdenv util-linux cmake scdoc fetchFromGitHub; })
 | 
			
		||||
    # android-tools
 | 
			
		||||
    nix-index
 | 
			
		||||
    # meson
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -370,7 +370,7 @@
 | 
			
		|||
    any-nix-shell
 | 
			
		||||
    wtype
 | 
			
		||||
    xdotool
 | 
			
		||||
    ydotool
 | 
			
		||||
    # ydotool
 | 
			
		||||
    wmctrl
 | 
			
		||||
    xcape
 | 
			
		||||
    xclip
 | 
			
		||||
| 
						 | 
				
			
			@ -411,6 +411,7 @@
 | 
			
		|||
    fet-sh
 | 
			
		||||
    macchina
 | 
			
		||||
    # Dev tools
 | 
			
		||||
    (import /home/chris/.dotfiles/ydotool { inherit lib stdenv util-linux cmake scdoc fetchFromGitHub; })
 | 
			
		||||
    # android-tools
 | 
			
		||||
    nix-index
 | 
			
		||||
    # meson
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue