dotfiles/.i3blocks/bepo
2020-11-06 01:59:52 +01:00

23 lines
327 B
Bash
Executable file

#!/bin/bash
runtime="${XDG_RUNTIME_DIR}/i3blocks"
[[ ! -d "$runtime" ]] && mkdir -p "$runtime"
if [[ -n "$button" ]]
then
if [[ -f "$runtime/oss" ]]
then
setxkbmap fr bepo_afnor
rm "$runtime/oss"
else
setxkbmap fr oss
touch "$runtime/oss"
fi
fi
if [[ -f "$runtime/oss" ]]
then
echo "oss "
else
echo "bépo"
fi