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

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #!/bin/sh
  2. layout=$(xkb-switch -p)
  3. layouts=$(xkb-switch -l | xargs)
  4. if [ ! "$layouts" = "us tr" ]; then
  5. ~/.local/bin/keyboard
  6. fi
  7. if [ "$layout" = "tr" ]; then
  8. xkb-switch -s "us"
  9. dunstify -r 169 -a " Keyboard" "Layout switched to us"
  10. else
  11. xkb-switch -s "tr"
  12. dunstify -r 169 -a " Keyboard" "Layout switched to tr"
  13. fi
  14. kill -58 $(pidof dwmblocks)