Updates to theme & stuff
This commit is contained in:
		
							
								
								
									
										19
									
								
								configs/dotfiles/espanso/bin/get_login
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								configs/dotfiles/espanso/bin/get_login
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
set -euo pipefail
 | 
			
		||||
 | 
			
		||||
# 1) load your shell exports if not already present:
 | 
			
		||||
#if [[ -z "${BW_SESSION:-}" ]]; then
 | 
			
		||||
  #[[ -f "$HOME/.bashrc"   ]] && source "$HOME/.bashrc"
 | 
			
		||||
  #[[ -f "$HOME/.profile" ]] && source "$HOME/.profile"
 | 
			
		||||
#fi
 | 
			
		||||
source ~/.local/share/sunhat/defaults/bash/api_keys
 | 
			
		||||
 | 
			
		||||
# 2) if still empty, unlock once and export:
 | 
			
		||||
#if [[ -z "${BW_SESSION:-}" ]]; then
 | 
			
		||||
  #export BW_SESSION=$(bw unlock --raw)
 | 
			
		||||
#fi
 | 
			
		||||
 | 
			
		||||
# 3) fetch and print user<TAB>pass<NEWLINE>
 | 
			
		||||
printf '%s\t%s\n' \
 | 
			
		||||
  "$(bw --session "$BW_SESSION" get username "$1")" \
 | 
			
		||||
  "$(bw --session "$BW_SESSION" get password "$1")"
 | 
			
		||||
		Reference in New Issue
	
	Block a user