Making rofi-pass use proper rofi and feh
This commit is contained in:
		
							parent
							
								
									109ec290a8
								
							
						
					
					
						commit
						2924585a75
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -2,9 +2,17 @@
 | 
			
		|||
# which can be switched at runtime with shift+left/right
 | 
			
		||||
# root=/path/to/root
 | 
			
		||||
 | 
			
		||||
if [ $(hostname) = "chris-linuxlaptop" ]; then
 | 
			
		||||
    style="laptop"
 | 
			
		||||
    #echo "this is hidpi"
 | 
			
		||||
else 
 | 
			
		||||
    style="desktop"
 | 
			
		||||
    #echo "this is not hidpi"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# rofi command. Make sure to have "$@" as last argument
 | 
			
		||||
_rofi () {
 | 
			
		||||
    rofi -i -no-auto-select "$@"
 | 
			
		||||
    rofi -i -no-auto-select -theme launchers-git/"$style".rasi "$@"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# default command to generate passwords
 | 
			
		||||
| 
						 | 
				
			
			@ -16,7 +24,7 @@ _pwgen () {
 | 
			
		|||
# qrencode is needed to generate the image and a viewer
 | 
			
		||||
# that can read from pipes. Known viewers to work are feh and display
 | 
			
		||||
_image_viewer () {
 | 
			
		||||
    sxiv -
 | 
			
		||||
    feh -g 600x600 --zoom fill - 
 | 
			
		||||
#    display
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue