forked from alexhenrie/deseret-keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeseret.sh
28 lines (19 loc) · 1.64 KB
/
deseret.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
clear #clear chat
echo -e "\e[1;33m" #color Yellow
if ! [ -x "$(command -v figlet)" ]; then
echo :" ·▄▄▄▄ ▄▄▄ ..▄▄ · ▄▄▄ .▄▄▄ ▄▄▄ .▄▄▄▄▄ ▄ •▄ ▄▄▄ . ▄· ▄▌▄▄▄▄· ▄▄▄· ▄▄▄ ·▄▄▄▄
██▪ ██ ▀▄.▀·▐█ ▀. ▀▄.▀·▀▄ █·▀▄.▀·•██ █▌▄▌▪▀▄.▀·▐█▪██▌▐█ ▀█▪ ▄█▀▄ ▐█ ▀█ ▀▄ █·██▪ ██
▐█· ▐█▌▐▀▀▪▄▄▀▀▀█▄▐▀▀▪▄▐▀▀▄ ▐▀▀▪▄ ▐█.▪ ▐▀▀▄·▐▀▀▪▄▐█▌▐█▪▐█▀▀█▄▐█▌.▐▌▄█▀▀█ ▐▀▀▄ ▐█· ▐█▌
██. ██ ▐█▄▄▌▐█▄▪▐█▐█▄▄▌▐█•█▌▐█▄▄▌ ▐█▌· ▐█.█▌▐█▄▄▌ ▐█▀·.██▄▪▐█▐█▌.▐▌▐█ ▪▐▌▐█•█▌██. ██
▀▀▀▀▀• ▀▀▀ ▀▀▀▀ ▀▀▀ .▀ ▀ ▀▀▀ ▀▀▀ ·▀ ▀ ▀▀▀ ▀ • ·▀▀▀▀ ▀█▄▀▪ ▀ ▀ .▀ ▀▀▀▀▀▀•"
fi #end of intro
echo -n "Hi! to switch to Deseret click 'y' to return to default, simply press '𐑌'. [y/𐑌]" #simple question print
read VAR # Read Variable from previous question
if [[ $VAR == y ]] #if variable "y" then it will switch to deseret
then
xkbcomp -I. deseret.xkb $DISPLAY
else
echo 'you are back to default :)' #if any other, it will switch to default. ( it states '𐑌' simply for convinience.)
setxkbmap -model pc104
fi #end of command and script.