mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-04 10:06:41 +02:00
- Added ibus-setup since it sometimes needs to be ran if it is not set already, also added elementary epiphany browser. Fixed elementary shortcut install trigger.
This commit is contained in:
7
setup.py
7
setup.py
@@ -25,16 +25,19 @@ def requirements(pkgm):
|
|||||||
|
|
||||||
def install_ibus():
|
def install_ibus():
|
||||||
print(bcolors.CYELLOW + "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.CYELLOW + "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.CYELLOW + "Confirm the IBus Setup by saying Yes and then closing the window.\n" + bcolors.ENDC)
|
||||||
|
print("ibus-setup\n")
|
||||||
print("im-config -n ibus\n")
|
print("im-config -n ibus\n")
|
||||||
run_install = yn_choice(bcolors.CYELLOW + "Would you like to run it now? (Will require logoff and logon.)\n" + bcolors.ENDC)
|
run_install = yn_choice(bcolors.CYELLOW + "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")
|
||||||
os.system("im-config -n ibus")
|
os.system("im-config -n ibus")
|
||||||
print("\n")
|
print("\n")
|
||||||
input("IBus has been set as the default Input Method.\nPress any key to exit and re-run after logoff & logon...")
|
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()
|
distro = cmdline("awk -F= '$1==\"NAME\" { print $2 ;}' /etc/os-release").replace('"','').strip().split(" ")[0]
|
||||||
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()
|
||||||
dename = cmdline("./system-config/dename.sh").replace('"','').strip().split(" ")[0]
|
dename = cmdline("./system-config/dename.sh").replace('"','').strip().split(" ")[0]
|
||||||
|
|
||||||
@@ -67,7 +70,7 @@ def setShortcuts():
|
|||||||
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down \"['<Super>Down','<Super>Right']\"")
|
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down \"['<Super>Down','<Super>Right']\"")
|
||||||
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left ['']")
|
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left ['']")
|
||||||
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right ['']")
|
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right ['']")
|
||||||
elif distro == "elementaryos" and dename == "gnome":
|
elif distro == "elementary" and dename == "gnome":
|
||||||
cmdline("gsettings set org.gnome.desktop.wm.keybindings show-desktop \"['<Super>d','<Super>Down']\"")
|
cmdline("gsettings set org.gnome.desktop.wm.keybindings show-desktop \"['<Super>d','<Super>Down']\"")
|
||||||
cmdline("gsettings set org.gnome.desktop.wm.keybindings toggle-maximized \"['<Alt>F10','<Super>Up']\"")
|
cmdline("gsettings set org.gnome.desktop.wm.keybindings toggle-maximized \"['<Alt>F10','<Super>Up']\"")
|
||||||
cmdline("gsettings set org.gnome.desktop.wm.keybindings panel-main-menu \"['<Control><Shift>Space','<Super>Space']\"")
|
cmdline("gsettings set org.gnome.desktop.wm.keybindings panel-main-menu \"['<Control><Shift>Space','<Super>Space']\"")
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
"symbols": "",
|
"symbols": "",
|
||||||
"types": "",
|
"types": "",
|
||||||
"de": [],
|
"de": [],
|
||||||
"appnames": [ "Chromium","Chromium-browser","Google-chrome" ]
|
"appnames": [ "Chromium","Chromium-browser","Google-chrome","Epiphany" ]
|
||||||
}],
|
}],
|
||||||
"init": [],
|
"init": [],
|
||||||
"detypes":["gnome2","gnome3","kde4","kde5","xfce","i3wm"],
|
"detypes":["gnome2","gnome3","kde4","kde5","xfce","i3wm"],
|
||||||
|
Reference in New Issue
Block a user