2020-09-15 02:50:48 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
runtime="${XDG_RUNTIME_DIR}/i3blocks"
|
|
|
|
[[ ! -d "$runtime" ]] && mkdir -p "$runtime"
|
|
|
|
|
|
|
|
if [[ -n "$button" ]]
|
|
|
|
then
|
|
|
|
if [[ -f "$runtime/oss" ]]
|
|
|
|
then
|
2020-10-04 00:16:04 +02:00
|
|
|
setxkbmap fr bepo_afnor
|
2020-09-15 02:50:48 +02:00
|
|
|
rm "$runtime/oss"
|
|
|
|
else
|
|
|
|
setxkbmap fr oss
|
|
|
|
touch "$runtime/oss"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -f "$runtime/oss" ]]
|
|
|
|
then
|
|
|
|
echo "oss "
|
|
|
|
else
|
2020-11-06 01:59:52 +01:00
|
|
|
echo "bépo"
|
2020-09-15 02:50:48 +02:00
|
|
|
fi
|