Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
368 B

#!/bin/sh
layout=$(xkb-switch -p)
layouts=$(xkb-switch -l | xargs)
if [ ! "$layouts" = "us tr" ]; then
~/.local/bin/keyboard
fi
if [ "$layout" = "tr" ]; then
xkb-switch -s "us"
dunstify -r 169 -a " Keyboard" "Layout switched to us"
else
xkb-switch -s "tr"
dunstify -r 169 -a " Keyboard" "Layout switched to tr"
fi
kill -58 $(pidof dwmblocks)