First Commit
This is a first dotfiles config. I think I have a lot more to add tho...
This commit is contained in:
		
							
								
								
									
										17
									
								
								bin/.bin/switchkblayout
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										17
									
								
								bin/.bin/switchkblayout
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,17 @@ | ||||
| #!/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" | ||||
| 	 | ||||
		Reference in New Issue
	
	Block a user