summaryrefslogtreecommitdiff
path: root/tools/dev_env_setup/templates
diff options
context:
space:
mode:
authorSrdjan Grubor <sgnn7@sgnn7.org>2014-01-16 21:45:34 -0600
committerSrdjan Grubor <sgnn7@sgnn7.org>2014-01-16 21:46:33 -0600
commit29ded8f16c47d285144d2b85ead07974c7079bd6 (patch)
tree0be6bbf4681262e17a54f72bb89c78a00e309907 /tools/dev_env_setup/templates
parent28197345ad32daa836fbf84b16a2b936a8086eaa (diff)
Moved ansible directory into tools
Diffstat (limited to 'tools/dev_env_setup/templates')
-rw-r--r--tools/dev_env_setup/templates/.jhbuildrc-auth.j24
-rw-r--r--tools/dev_env_setup/templates/add_dev_tools_folder.py48
-rw-r--r--tools/dev_env_setup/templates/known_hosts2
3 files changed, 54 insertions, 0 deletions
diff --git a/tools/dev_env_setup/templates/.jhbuildrc-auth.j2 b/tools/dev_env_setup/templates/.jhbuildrc-auth.j2
new file mode 100644
index 0000000..67d2e1e
--- /dev/null
+++ b/tools/dev_env_setup/templates/.jhbuildrc-auth.j2
@@ -0,0 +1,4 @@
+# -*- mode: python -*-
+# -*- coding: utf-8 -*-
+
+repos['endlessm'] = 'https://{{ api_key }}@github.com/endlessm/'
diff --git a/tools/dev_env_setup/templates/add_dev_tools_folder.py b/tools/dev_env_setup/templates/add_dev_tools_folder.py
new file mode 100644
index 0000000..d90d797
--- /dev/null
+++ b/tools/dev_env_setup/templates/add_dev_tools_folder.py
@@ -0,0 +1,48 @@
+#!/usr/bin/python
+import json
+import os
+import time
+from gi.repository import Gio, Gtk, GLib
+
+DIRECTORY_ID = 'eos-folder-user-99.directory'
+DIRECTORY_FILE_CONTENT="""[Desktop Entry]
+Name=Development
+Icon=eos-folder-tools-symbolic
+Type=Directory
+"""
+
+DEFAULT_LAYOUT_FILE='/usr/share/EndlessOS/personality-defaults/icon-grid-default.json'
+DESTINATIION_FOLDER= os.path.expanduser('~/.local/share/desktop-directories/') + DIRECTORY_ID
+
+def get_default_layout():
+ with open(DEFAULT_LAYOUT_FILE, 'r') as f:
+ return f.read()
+
+
+def write_folder_data():
+ with open(DESTINATIION_FOLDER, 'w') as f:
+ return f.write(DIRECTORY_FILE_CONTENT)
+
+def get_settings_string(layout):
+ settings = Gio.Settings.new("org.gnome.shell")
+
+
+ loaded_layout = json.loads(layout)
+ loaded_layout['desktop'].append(DIRECTORY_ID)
+ loaded_layout[DIRECTORY_ID] = [ 'eos-app-gnome-terminal.desktop' ,
+ 'eos-app-devhelp.desktop' ]
+
+ root=GLib.Variant('a{sas}', loaded_layout)
+ print "Setting the value"
+ settings.set_value("icon-grid-layout", root)
+ print "Syncing"
+ settings.apply()
+ settings.sync()
+ print root
+
+ time.sleep(20)
+
+if __name__ == "__main__":
+ layout = get_default_layout()
+ write_folder_data()
+ get_settings_string(layout)
diff --git a/tools/dev_env_setup/templates/known_hosts b/tools/dev_env_setup/templates/known_hosts
new file mode 100644
index 0000000..fdfd483
--- /dev/null
+++ b/tools/dev_env_setup/templates/known_hosts
@@ -0,0 +1,2 @@
+|1|KBJ34M/sigDkwEHXqWNtuZuTyIo=|dI52F1tauVq3UdnBDEWY9H76ZnI= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
+|1|ukqmPkGRPykqhLSygEMYacziZSA=|bghXjR7+Rr4YC3r15EbUJozp8No= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==