mirror of
				https://git.davidovski.xyz/dot.git
				synced 2024-08-15 00:43:28 +00:00 
			
		
		
		
	initial commit
This commit is contained in:
		
						commit
						01ced0b7ce
					
				
					 184 changed files with 35358 additions and 0 deletions
				
			
		
							
								
								
									
										24
									
								
								scripts/dmenukaomoji
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										24
									
								
								scripts/dmenukaomoji
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| #!/bin/bash | ||||
| 
 | ||||
| chosen=$(dmenu -i -l 20 < ~/.local/share/kaomoji | sed "s/\t.*//") | ||||
| 
 | ||||
| [ "$chosen" != "" ] || exit | ||||
| 
 | ||||
| # If you run this command with an argument, it will automatically insert the character. | ||||
| echo "$chosen" | xclip -selection clipboard | ||||
| if [ -n "$1" ]; then | ||||
| 	SUB="Minecraft" | ||||
| 	WINDOW=$(xdotool getactivewindow getwindowname) | ||||
| 	if [[ "$WINDOW" =~ .*"$SUB".* ]]; then | ||||
| 		xdotool key "ctrl+v"  | ||||
| 	else | ||||
| 		xdotool key Shift+Insert | ||||
| 	fi | ||||
| #	xdotool type --delay 1 $chosen | ||||
| 
 | ||||
| #	VAR=$(xclip -o) | ||||
| 
 | ||||
| #	xdotool type $chosen | ||||
| else | ||||
| 	notify-send "'$chosen' copied to clipboard." & | ||||
| fi | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue