mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-05 18:38:26 +02:00
- Updated files to create service for kintox11
This commit is contained in:
@@ -1,36 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
swapbehavior=$1
|
swapcmd="\/bin\/bash\ \/home\/`whoami`\/.config\/kinto\/kintox11"
|
||||||
noswapcmd=$2
|
mkdir -p ~/.config/systemd/user
|
||||||
|
mkdir -p ~/.config/autostart
|
||||||
systemtype=$3
|
cp ./system-config/keyswap.service ~/.config/systemd/user/keyswap.service
|
||||||
internalid=$4
|
cp ./system-config/keyswap.sh ~/.config/autostart/keyswap.sh
|
||||||
usbid=$5
|
cp ./kintox11/binary/kintox11_ubuntu19-10 ~/.config/kinto/kintox11
|
||||||
chromeswap=$6
|
sed -i "s/{username}/`whoami`/g" ~/.config/systemd/user/keyswap.service
|
||||||
|
sed -i "s/ExecStart=/ExecStart=${swapcmd}/g" ~/.config/systemd/user/keyswap.service
|
||||||
if [[ "$swapbehavior" == "1" ]]; then
|
systemctl --user enable keyswap
|
||||||
swapcmd="\/bin\/bash\ \/home\/`whoami`\/.config\/xactive.sh\ ${systemtype}\ ${internalid}\ ${usbid}\ ${chromeswap}"
|
systemctl --user start keyswap
|
||||||
mkdir -p ~/.config/systemd/user
|
|
||||||
mkdir -p ~/.config/autostart
|
|
||||||
cp ./system-config/keyswap.service ~/.config/systemd/user/keyswap.service
|
|
||||||
cp ./system-config/keyswap.sh ~/.config/autostart/keyswap.sh
|
|
||||||
cp ./system-config/xactive.sh ~/.config/xactive.sh
|
|
||||||
cp ./system-config/keyswap_toggle.sh ~/.config/keyswap_toggle.sh
|
|
||||||
cp ./kintox11/binary/kintox11_ubuntu19-10 ~/.config/kintox11
|
|
||||||
cp ./kintox11/binary/kinto.json ~/.config/kinto.json
|
|
||||||
sed -i "s/{username}/`whoami`/g" ~/.config/systemd/user/keyswap.service
|
|
||||||
sed -i "s/ExecStart=/ExecStart=${swapcmd}/g" ~/.config/systemd/user/keyswap.service
|
|
||||||
systemctl --user enable keyswap
|
|
||||||
systemctl --user start keyswap
|
|
||||||
else
|
|
||||||
#/usr/bin/setxkbmap
|
|
||||||
#/usr/bin/xkbcomp
|
|
||||||
#echo $XDG_SESSION_TYPE
|
|
||||||
if [ ! -f "~/.Xsession" ]; then
|
|
||||||
echo "$noswapcmd" > ~/.Xsession
|
|
||||||
fi
|
|
||||||
grep "xkb" ~/.Xsession 1>/dev/null
|
|
||||||
if [ $? -eq 1 ]; then
|
|
||||||
echo "$noswapcmd" >> ~/.Xsession
|
|
||||||
fi
|
|
||||||
fi
|
|
Binary file not shown.
@@ -128,7 +128,7 @@ int main(void){
|
|||||||
|
|
||||||
size_t i,n,r;
|
size_t i,n,r;
|
||||||
|
|
||||||
fp = fopen("kinto.json","r");
|
fp = fopen("user_config.json","r");
|
||||||
fread(buffer, 10240, 1, fp);
|
fread(buffer, 10240, 1, fp);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ Type=simple
|
|||||||
#Group={username}
|
#Group={username}
|
||||||
Environment=DISPLAY=:0
|
Environment=DISPLAY=:0
|
||||||
Restart=always
|
Restart=always
|
||||||
WorkingDirectory=/home/{username}/.config/
|
WorkingDirectory=/home/{username}/.config/kinto
|
||||||
ExecStart=
|
ExecStart=
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
"active": false,
|
"active": false,
|
||||||
"name":"gnome-term",
|
"name":"gnome-term",
|
||||||
"description":"Gnome - Terminal - Superkey+Space opens Activities Overview",
|
"description":"Gnome - Terminal - Superkey+Space opens Activities Overview",
|
||||||
"run":"gsettings set org.gnome.desktop.wm.keybindings panel-main-menu \"['<Super>Space']\""
|
"run":"gsettings set org.gnome.desktop.wm.keybindings panel-main-menu \"['<Control><Shift>Space']\""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 3,
|
"id": 3,
|
||||||
|
Reference in New Issue
Block a user