lek 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbf5bc70640de302539eea7aa458a60522510f3e
4
- data.tar.gz: ec07cadbfbb87d87d0c420d48e467cdabb3c7dcd
3
+ metadata.gz: a9408c40e3f65b552a7df13102722fb0c69e1774
4
+ data.tar.gz: 46438abfbe2f879b6da59cad01871b37b0c08584
5
5
  SHA512:
6
- metadata.gz: dffd53e475ea470703cb42613e5277878c1f0564be8ab2948a17f874ed6470c24c5719d16e1a5c4b8230365281b3a361b7dc636eddfb7e134fe312a22bb177bf
7
- data.tar.gz: b5cf53ad872ee6f6d82ede1ae7964d78e28b7b53035058a048345510888a81cb2ba44aeb17d7ee158b682746011a497bb828b9c98d2517f5c71c177cdae73a8f
6
+ metadata.gz: 641497a46db5c3f7ccf64144245cfba7ee674c5688cde19c41dfeac8976f61a781c6c5e0f620c6a2c716e5a461e4845d5c2eefa1d282ea0a2c6452ef35dd2f66
7
+ data.tar.gz: dfa5b28e1fdb5f3b095ed1a19a75432134bac69a00dd9e03f555957275764ff7ce63172d4e1562875a8f52751f0eabc6f3acf6e2f2b700d60914940e5c17d612
data/bin/lek CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'lek'
3
3
 
4
- data = YAML.load_file('examples/test.yml')
4
+ data = YAML.load_file('examples/#{ARGV[0]}.yml')
5
5
  # TODO: need to be able to pass in a file via command line argument
6
6
  context = Lek::Context.new
7
7
 
@@ -0,0 +1,37 @@
1
+ ---
2
+ # lek template file
3
+ # NB: YAML syntax is sensitive to whitespace and indentation!
4
+
5
+ ##### URLS IN BROWSER TABS #####
6
+ # list URLs here which will be opened in tabs in chrome
7
+ # multiple URLS should be on a line each, preceded by a dash and a space
8
+ # for example:
9
+ # urls:
10
+ # - https://stackoverflow.com/
11
+ # - https://rubygems.org/
12
+ urls:
13
+ -
14
+
15
+ ##### TERMINALS & COMMANDS #####
16
+ # list terminals here, which will be opened in tabs in your terminal
17
+ # - path: <file path to be opened>
18
+ # - command: < command to execute in the terminal>
19
+ terminals:
20
+ - path:
21
+ command:
22
+ - path:
23
+ command:
24
+ - path:
25
+ command:
26
+
27
+ ##### TEXT EDITOR & PROJECT FOLDERS #####
28
+ # list text editor project folders you want to open here
29
+ # use absolute paths please :-)
30
+ # for example:
31
+ # editors:
32
+ # - /home/username/code/mynewproject/
33
+ editors:
34
+ -
35
+
36
+
37
+ ...
data/lek.gemspec CHANGED
@@ -5,7 +5,7 @@ require 'lek/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "lek"
8
- spec.version = '0.1.1'
8
+ spec.version = '0.1.2'
9
9
  spec.authors = ["Marcus Baw"]
10
10
  spec.email = ["marcusbaw@gmail.com"]
11
11
 
@@ -7,6 +7,8 @@ module Lek
7
7
  puts "there are #{wm.desktops.last[:id] + 1} desktops"
8
8
  # create a new desktop/workspace
9
9
  wm.change_number_of_desktops(wm.desktops.last[:id] + 2)
10
+ # refresh the wm object
11
+ wm = WMCtrl.instance
10
12
  puts "created new desktop with id #{wm.desktops.last[:id]}"
11
13
  # switch to new workspace
12
14
  wm.switch_desktop(wm.desktops.last[:id])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Baw
@@ -75,6 +75,7 @@ files:
75
75
  - bin/console
76
76
  - bin/lek
77
77
  - bin/setup
78
+ - examples/template.yml
78
79
  - examples/test.yml
79
80
  - lek.gemspec
80
81
  - lib/lek.rb