This is a first dotfiles config. I think I have a lot more to add tho...
		
			
				
	
	
		
			18 lines
		
	
	
		
			385 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			385 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| key=`setxkbmap -query | grep "layout\|variant" | awk '{print $2}' | xargs`
 | |
| 
 | |
| if [[ $key = "fr" ]]; then
 | |
| 	setxkbmap us
 | |
| elif [[ $key = "us" ]]; then
 | |
| 	setxkbmap us -variant dvorak	
 | |
| elif [[ $key = "us dvorak" ]]; then
 | |
| 	setxkbmap fr
 | |
| else 
 | |
| 	setxkbmap fr
 | |
| fi
 | |
| 
 | |
| key=`setxkbmap -query | grep "layout\|variant" | awk '{print $2}' | xargs`
 | |
| notify-send "Keyboard Layout: $key"
 | |
| 	
 |