#!/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)