mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-06 19:08:27 +02:00
Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
45801d9ff0 | ||
![]() |
17db80f54c | ||
![]() |
650ff78b92 | ||
![]() |
7c0e22e33f | ||
![]() |
1626443290 | ||
![]() |
670d948ab0 | ||
![]() |
76e69ecc25 | ||
![]() |
bae786c3af | ||
![]() |
701bf25c69 |
23
setup.py
23
setup.py
@@ -14,7 +14,7 @@ def cmdline(command):
|
|||||||
shell=True
|
shell=True
|
||||||
)
|
)
|
||||||
return process.communicate()[0]
|
return process.communicate()[0]
|
||||||
|
distro = cmdline("awk -F= '$1==\"NAME\" { print $2 ;}' /etc/os-release").replace('"','').strip().split(" ")[0]
|
||||||
dename = cmdline("./system-config/dename.sh").replace('"','').strip().split(" ")[0].lower()
|
dename = cmdline("./system-config/dename.sh").replace('"','').strip().split(" ")[0].lower()
|
||||||
|
|
||||||
def requirements(pkgm):
|
def requirements(pkgm):
|
||||||
@@ -26,20 +26,29 @@ def requirements(pkgm):
|
|||||||
print("\n")
|
print("\n")
|
||||||
|
|
||||||
def install_ibus():
|
def install_ibus():
|
||||||
|
global distro
|
||||||
print(bcolors.CYELLOW2 + "You need to set IBus as the default Input Method for full word-wise support and re-run this installer.\n" + bcolors.ENDC)
|
print(bcolors.CYELLOW2 + "You need to set IBus as the default Input Method for full word-wise support and re-run this installer.\n" + bcolors.ENDC)
|
||||||
print(bcolors.CYELLOW2 + "Confirm the IBus Setup by saying Yes and then closing the window.\n" + bcolors.ENDC)
|
print(bcolors.CYELLOW2 + "Confirm the IBus Setup by saying Yes and then closing the window.\n" + bcolors.ENDC)
|
||||||
print("ibus-setup\n")
|
print("ibus-setup\n")
|
||||||
print("im-config -n ibus\n")
|
print("im-config -n ibus or im-chooser\n")
|
||||||
run_install = yn_choice(bcolors.CYELLOW2 + "Would you like to run it now? (Will require logoff and logon.)\n" + bcolors.ENDC)
|
run_install = yn_choice(bcolors.CYELLOW2 + "Would you like to run it now? (Will require logoff and logon.)\n" + bcolors.ENDC)
|
||||||
if(run_install):
|
if(run_install):
|
||||||
os.system("ibus-setup")
|
if distro=="fedora":
|
||||||
os.system("im-config -n ibus")
|
os.system("ibus-setup")
|
||||||
print("\n")
|
os.system("im-chooser")
|
||||||
input("IBus has been set as the default Input Method.\nPress any key to exit and re-run after logoff & logon...")
|
print("\n")
|
||||||
|
print("IBus needs to have Input Method set to your language.")
|
||||||
|
print("im-chooser needs IBus to be selected & closed.")
|
||||||
|
input("Will need to log off and back on for it take effect...")
|
||||||
|
else:
|
||||||
|
os.system("ibus-setup")
|
||||||
|
os.system("im-config -n ibus")
|
||||||
|
print("\n")
|
||||||
|
input("IBus has been set as the default Input Method.\nPress any key to exit and re-run after logoff & logon...")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
def setShortcuts():
|
def setShortcuts():
|
||||||
distro = cmdline("awk -F= '$1==\"NAME\" { print $2 ;}' /etc/os-release").replace('"','').strip().split(" ")[0]
|
global distro
|
||||||
distroVersion = cmdline("awk -F= '$1==\"VERSION_ID\" { print $2 ;}' /etc/os-release").replace('"','').strip()
|
distroVersion = cmdline("awk -F= '$1==\"VERSION_ID\" { print $2 ;}' /etc/os-release").replace('"','').strip()
|
||||||
|
|
||||||
print("\nIf Kinto is already running it will be stopped...")
|
print("\nIf Kinto is already running it will be stopped...")
|
||||||
|
@@ -7,3 +7,4 @@ killall xbindkeys > /dev/null 2>&1 || :
|
|||||||
|
|
||||||
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Alt>Tab']"
|
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Alt>Tab']"
|
||||||
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['<Shift><Alt>Tab']"
|
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['<Shift><Alt>Tab']"
|
||||||
|
pkill -f /.config/kinto/xactive.sh
|
@@ -2,7 +2,7 @@
|
|||||||
Name=Kinto
|
Name=Kinto
|
||||||
GenericName=Kinto
|
GenericName=Kinto
|
||||||
Comment=Make Linux Type Like it's a Mac
|
Comment=Make Linux Type Like it's a Mac
|
||||||
Exec=/bin/sleep 5 /usr/bin/systemctl --user start keyswap
|
Exec=/bin/bash -c "/bin/sleep 5 && /usr/bin/systemctl --user start keyswap"
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
X-GNOME-Autostart-enabled=true
|
X-GNOME-Autostart-enabled=true
|
Reference in New Issue
Block a user