{"id":2015,"date":"2010-11-13T02:34:18","date_gmt":"2010-11-12T21:04:18","guid":{"rendered":"https:\/\/2thenew.online\/blog\/?p=2015"},"modified":"2016-12-19T14:36:43","modified_gmt":"2016-12-19T09:06:43","slug":"startup-script-using-xdotool","status":"publish","type":"post","link":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/","title":{"rendered":"Startup Script Using XdoTool"},"content":{"rendered":"<p>(<a href=\"http:\/\/www.semicomplete.com\/projects\/xdotool\/\">Xdotool<\/a> is a tool that simulates user key movements.)<br \/>\n<\/br><br \/>\nUsually when we start to work , we usually require some apps to be running. In my case I have to run a grails app, sql , subversion  and IDE in different tabs of same terminal.<br \/>\n<\/br><br \/>\nNormally it would take almost 1-2 minutes if I do it manually.So I created a shell script using Xdotool .And it does all my work in almost 2 seconds. And All the tabs are opened in same terminal).Best part with xdotool is since it simulates key all your aliases work.<br \/>\n<\/br><br \/>\nAnd it works perfectly on Ubuntu 10.10. (Tried and Tested)<\/p>\n<p>Here is a snippet of script that I created.<br \/>\n<code><br \/>\nxdotool key alt+t space;<br \/>\nxdotool type \"etc\";<br \/>\nxdotool key Return;<br \/>\nxdotool key ctrl+t alt+t space;<br \/>\nxdotool type \"grails\";<br \/>\nxdotool key Return ;<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\nxdotool key ctrl+t alt+t space;<br \/>\nxdotool type \"sql\";<br \/>\nxdotool key Return;<br \/>\nxdotool type \"mysql\";<br \/>\nxdotool key Return<br \/>\n<\/code><br \/>\nThis opens new tab of same terminal.<\/p>\n<p>1)<em>xdotool key alt+t space;<\/em><br \/>\nThe &#8220;key&#8221; keyword&#8221; tells xdotool that next inputs are treated as keys. So it opens &#8220;set title&#8221; pop up.(As Alt+t and space would do)<br \/>\n<\/br><br \/>\n2)<em>xdotool type &#8220;etc&#8221;;<\/em><br \/>\nxdotool key Return;<\/p>\n<p>The &#8220;type&#8221; keyword tells that the next inputs are treated as text.And then enter key is simulated<br \/>\nHence naming my tab &#8220;etc&#8221;<br \/>\n<\/br><br \/>\n3)<em>xdotool key ctrl+t alt+t space;<\/em><br \/>\nOpens   new tab (I  made ctrl+t  shortcut for opening new tab in same terminal) and opens &#8220;set title&#8221; pop up<br \/>\n<\/br><br \/>\n4)<em>xdotool type &#8220;grails&#8221;;<\/em><br \/>\nAnd the tab is named as grails.  And So on..<br \/>\n<\/br><br \/>\nThis helps me save time. hope it helps you too.<\/p>\n<p>_________________________________<br \/>\n<em>Hitesh Bhatia<\/em><\/p>\n<p><a href=\"mailto:hitesh@intelligrape.com?subject=Feedback On Blog\">Mail<\/a><\/p>\n<p>LinkedIn,<a href=\"http:\/\/www.facebook.com\/home.php?#!\/profile.php?id=100000114437286\" target=\"_blank\">Facebook<\/a>,<a href=\"http:\/\/twitter.com\/d1_ricky\" target=\"_blank\">Twitter<\/a><\/p>\n<p>_________________________________<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Xdotool is a tool that simulates user key movements.) Usually when we start to work , we usually require some apps to be running. In my case I have to run a grails app, sql , subversion and IDE in different tabs of same terminal. Normally it would take almost 1-2 minutes if I do [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":27,"footnotes":""},"categories":[1],"tags":[448,8,450,449],"class_list":["post-2015","post","type-post","status-publish","format-standard","hentry","category-technology","tag-shell-script","tag-ubuntu","tag-unix","tag-xdotool"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"(Xdotool is a tool that simulates user key movements.) Usually when we start to work , we usually require some apps to be running. In my case I have to run a grails app, sql , subversion and IDE in different tabs of same terminal. Normally it would take almost 1-2 minutes if I do\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Hitesh Bhatia\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Startup Script Using XdoTool | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"(Xdotool is a tool that simulates user key movements.) Usually when we start to work , we usually require some apps to be running. In my case I have to run a grails app, sql , subversion and IDE in different tabs of same terminal. Normally it would take almost 1-2 minutes if I do\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Startup Script Using XdoTool | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"(Xdotool is a tool that simulates user key movements.) Usually when we start to work , we usually require some apps to be running. In my case I have to run a grails app, sql , subversion and IDE in different tabs of same terminal. Normally it would take almost 1-2 minutes if I do\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/startup-script-using-xdotool\\\/#article\",\"name\":\"Startup Script Using XdoTool | TO THE NEW Blog\",\"headline\":\"Startup Script Using XdoTool\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/hitesh\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2010-11-13T02:34:18+05:30\",\"dateModified\":\"2016-12-19T14:36:43+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/startup-script-using-xdotool\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/startup-script-using-xdotool\\\/#webpage\"},\"articleSection\":\"Technology, shell script, Ubuntu, unix, xdotool\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/startup-script-using-xdotool\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/startup-script-using-xdotool\\\/#listItem\",\"name\":\"Startup Script Using XdoTool\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/startup-script-using-xdotool\\\/#listItem\",\"position\":3,\"name\":\"Startup Script Using XdoTool\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/hitesh\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/hitesh\\\/\",\"name\":\"Hitesh Bhatia\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/startup-script-using-xdotool\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/480688fa251da2d21002803e0b349c1fe911842715b972676a1aa3cb12808e58?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Hitesh Bhatia\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/startup-script-using-xdotool\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/startup-script-using-xdotool\\\/\",\"name\":\"Startup Script Using XdoTool | TO THE NEW Blog\",\"description\":\"(Xdotool is a tool that simulates user key movements.) Usually when we start to work , we usually require some apps to be running. In my case I have to run a grails app, sql , subversion and IDE in different tabs of same terminal. Normally it would take almost 1-2 minutes if I do\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/startup-script-using-xdotool\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/hitesh\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/hitesh\\\/#author\"},\"datePublished\":\"2010-11-13T02:34:18+05:30\",\"dateModified\":\"2016-12-19T14:36:43+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Startup Script Using XdoTool | TO THE NEW Blog","description":"(Xdotool is a tool that simulates user key movements.) Usually when we start to work , we usually require some apps to be running. In my case I have to run a grails app, sql , subversion and IDE in different tabs of same terminal. Normally it would take almost 1-2 minutes if I do","canonical_url":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/#article","name":"Startup Script Using XdoTool | TO THE NEW Blog","headline":"Startup Script Using XdoTool","author":{"@id":"https:\/\/2thenew.online\/blog\/author\/hitesh\/#author"},"publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"},"datePublished":"2010-11-13T02:34:18+05:30","dateModified":"2016-12-19T14:36:43+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/#webpage"},"articleSection":"Technology, shell script, Ubuntu, unix, xdotool"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.online\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.online\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/#listItem","name":"Startup Script Using XdoTool"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/#listItem","position":3,"name":"Startup Script Using XdoTool","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.online\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.online\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.online\/blog\/author\/hitesh\/#author","url":"https:\/\/2thenew.online\/blog\/author\/hitesh\/","name":"Hitesh Bhatia","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/480688fa251da2d21002803e0b349c1fe911842715b972676a1aa3cb12808e58?s=96&d=mm&r=g","width":96,"height":96,"caption":"Hitesh Bhatia"}},{"@type":"WebPage","@id":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/#webpage","url":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/","name":"Startup Script Using XdoTool | TO THE NEW Blog","description":"(Xdotool is a tool that simulates user key movements.) Usually when we start to work , we usually require some apps to be running. In my case I have to run a grails app, sql , subversion and IDE in different tabs of same terminal. Normally it would take almost 1-2 minutes if I do","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.online\/blog\/author\/hitesh\/#author"},"creator":{"@id":"https:\/\/2thenew.online\/blog\/author\/hitesh\/#author"},"datePublished":"2010-11-13T02:34:18+05:30","dateModified":"2016-12-19T14:36:43+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.online\/blog\/#website","url":"https:\/\/2thenew.online\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Startup Script Using XdoTool | TO THE NEW Blog","og:description":"(Xdotool is a tool that simulates user key movements.) Usually when we start to work , we usually require some apps to be running. In my case I have to run a grails app, sql , subversion and IDE in different tabs of same terminal. Normally it would take almost 1-2 minutes if I do","og:url":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/","og:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Startup Script Using XdoTool | TO THE NEW Blog","twitter:description":"(Xdotool is a tool that simulates user key movements.) Usually when we start to work , we usually require some apps to be running. In my case I have to run a grails app, sql , subversion and IDE in different tabs of same terminal. Normally it would take almost 1-2 minutes if I do","twitter:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"2015","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 17:31:21","updated":"2024-02-29 08:35:47","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tStartup Script Using XdoTool\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.online\/blog"},{"label":"Technology","link":"https:\/\/2thenew.online\/blog\/category\/technology\/"},{"label":"Startup Script Using XdoTool","link":"https:\/\/2thenew.online\/blog\/startup-script-using-xdotool\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/2015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/comments?post=2015"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/2015\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/media?parent=2015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/categories?post=2015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/tags?post=2015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}