topinambour 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/data/shortcuts.ui +8 -76
- data/data/topinambour.gresource +0 -0
- data/lib/actions.rb +21 -23
- data/lib/application.rb +6 -6
- data/lib/preferences.rb +5 -7
- data/lib/window.rb +9 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a208a5eb51331ea6a9035a9abab37279ac712dd97b7d5b9a6608a0d351d0a67
|
4
|
+
data.tar.gz: dbf4d7b05cb1c35ed6578f54ac6eff16a6ea06128aac156d8af4a2908b9d41a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d56c4454ac2cfbf19bab7333dd7e0c498c44504c4e47388c1478575d552964fe6d5d30f9b2933d57263cf074e7e587e00b80ebd272db9ffad700b9f4cf8b9dd6
|
7
|
+
data.tar.gz: 884b51c180f5292d60abb1357ca831e9e37dc6d39878fbccbfc38721c3d3182c7efa02e0b91ccfa285c90a241329813ffac847dd066816882efd6ea5c2a22ab6
|
data/README.md
CHANGED
@@ -4,8 +4,9 @@
|
|
4
4
|
[![Code Climate](https://codeclimate.com/github/cedlemo/topinambour/badges/gpa.svg)](https://codeclimate.com/github/cedlemo/topinambour)
|
5
5
|
|
6
6
|
## Introduction
|
7
|
-
Topinambour is a simple Terminal written with the **Gtk3** and **Vte3** ruby bindings from the project [Ruby-GNOME2](https://github.com/ruby-gnome2/ruby-gnome2).
|
8
|
-
|
7
|
+
Topinambour is a simple Terminal written with the **Gtk3** and **Vte3** ruby bindings from the project [Ruby-GNOME2](https://github.com/ruby-gnome2/ruby-gnome2).
|
8
|
+
**It just provides one window with one Vte terminal.**
|
9
|
+
If you need tab management, windows splitting, session management, uses [tmux](https://github.com/tmux/tmux/wiki) with it.
|
9
10
|
|
10
11
|
### Install
|
11
12
|
|
@@ -14,7 +15,7 @@ uses [tmux](https://github.com/tmux/tmux/wiki) with it.
|
|
14
15
|
### Launch
|
15
16
|
|
16
17
|
topinambour
|
17
|
-
topinambour -e "/usr/bin/
|
18
|
+
topinambour -e "/usr/bin/glances"
|
18
19
|
|
19
20
|
## Features
|
20
21
|
|
data/data/shortcuts.ui
CHANGED
@@ -11,60 +11,26 @@
|
|
11
11
|
<child>
|
12
12
|
<object class="GtkShortcutsGroup">
|
13
13
|
<property name="visible">1</property>
|
14
|
-
<property name="title" translatable="yes">
|
14
|
+
<property name="title" translatable="yes">Window :</property>
|
15
15
|
<child>
|
16
16
|
<object class="GtkShortcutsShortcut">
|
17
17
|
<property name="visible">1</property>
|
18
|
-
<property name="accelerator"><ctrl><Shift>
|
19
|
-
<property name="title" translatable="yes">
|
18
|
+
<property name="accelerator"><ctrl><Shift>Q</property>
|
19
|
+
<property name="title" translatable="yes">Quit</property>
|
20
20
|
</object>
|
21
21
|
</child>
|
22
|
-
|
23
|
-
<object class="GtkShortcutsShortcut">
|
24
|
-
<property name="visible">1</property>
|
25
|
-
<property name="accelerator"><ctrl><Shift>X</property>
|
26
|
-
<property name="title" translatable="yes">Close current terminal</property>
|
27
|
-
</object>
|
28
|
-
</child>
|
29
|
-
<child>
|
30
|
-
<object class="GtkShortcutsShortcut">
|
31
|
-
<property name="visible">1</property>
|
32
|
-
<property name="accelerator"><ctrl><Shift>Left</property>
|
33
|
-
<property name="title" translatable="yes">Switch to next terminal</property>
|
34
|
-
</object>
|
35
|
-
</child>
|
36
|
-
<child>
|
37
|
-
<object class="GtkShortcutsShortcut">
|
38
|
-
<property name="visible">1</property>
|
39
|
-
<property name="accelerator"><ctrl><Shift>Right</property>
|
40
|
-
<property name="title" translatable="yes">Switch to previous terminal</property>
|
41
|
-
</object>
|
42
|
-
</child>
|
43
|
-
</object>
|
44
|
-
</child>
|
45
|
-
<child>
|
46
|
-
<object class="GtkShortcutsGroup">
|
47
|
-
<property name="visible">1</property>
|
48
|
-
<property name="title" translatable="yes">Find, search in terminal</property>
|
49
|
-
<child>
|
50
|
-
<object class="GtkShortcutsShortcut">
|
51
|
-
<property name="visible">1</property>
|
52
|
-
<property name="accelerator"><ctrl><Shift>slash</property>
|
53
|
-
<property name="title" translatable="yes">Find, search</property>
|
54
|
-
</object>
|
55
|
-
</child>
|
56
|
-
<child>
|
22
|
+
<child>
|
57
23
|
<object class="GtkShortcutsShortcut">
|
58
24
|
<property name="visible">1</property>
|
59
|
-
<property name="accelerator"><ctrl>
|
60
|
-
<property name="title" translatable="yes">
|
25
|
+
<property name="accelerator"><ctrl><Shift>Page_Up</property>
|
26
|
+
<property name="title" translatable="yes">Increase opacity</property>
|
61
27
|
</object>
|
62
28
|
</child>
|
63
29
|
<child>
|
64
30
|
<object class="GtkShortcutsShortcut">
|
65
31
|
<property name="visible">1</property>
|
66
|
-
<property name="accelerator"><ctrl><Shift>
|
67
|
-
<property name="title" translatable="yes">
|
32
|
+
<property name="accelerator"><ctrl><Shift>Page_Down</property>
|
33
|
+
<property name="title" translatable="yes">Decrease opacity</property>
|
68
34
|
</object>
|
69
35
|
</child>
|
70
36
|
</object>
|
@@ -87,42 +53,8 @@
|
|
87
53
|
<property name="title" translatable="yes">Display a font selector</property>
|
88
54
|
</object>
|
89
55
|
</child>
|
90
|
-
<child>
|
91
|
-
<object class="GtkShortcutsShortcut">
|
92
|
-
<property name="visible">1</property>
|
93
|
-
<property name="accelerator"><ctrl><Shift>O</property>
|
94
|
-
<property name="title" translatable="yes">Display a terminal selector</property>
|
95
|
-
</object>
|
96
|
-
</child>
|
97
56
|
</object>
|
98
57
|
</child>
|
99
|
-
<child>
|
100
|
-
<object class="GtkShortcutsGroup">
|
101
|
-
<property name="visible">1</property>
|
102
|
-
<property name="title" translatable="yes">Miscelaneous</property>
|
103
|
-
<child>
|
104
|
-
<object class="GtkShortcutsShortcut">
|
105
|
-
<property name="visible">1</property>
|
106
|
-
<property name="accelerator"><ctrl><Shift>Up</property>
|
107
|
-
<property name="title" translatable="yes">Toggle shrink mode (Only Headerbar visible)</property>
|
108
|
-
</object>
|
109
|
-
</child>
|
110
|
-
<child>
|
111
|
-
<object class="GtkShortcutsShortcut">
|
112
|
-
<property name="visible">1</property>
|
113
|
-
<property name="accelerator"><ctrl><Shift>Page_Up</property>
|
114
|
-
<property name="title" translatable="yes">Increase opacity</property>
|
115
|
-
</object>
|
116
|
-
</child>
|
117
|
-
<child>
|
118
|
-
<object class="GtkShortcutsShortcut">
|
119
|
-
<property name="visible">1</property>
|
120
|
-
<property name="accelerator"><ctrl><Shift>Page_Down</property>
|
121
|
-
<property name="title" translatable="yes">Decrease opacity</property>
|
122
|
-
</object>
|
123
|
-
</child>
|
124
|
-
</object>
|
125
|
-
</child>
|
126
58
|
</object>
|
127
59
|
</child>
|
128
60
|
</object>
|
data/data/topinambour.gresource
CHANGED
Binary file
|
data/lib/actions.rb
CHANGED
@@ -30,20 +30,20 @@ module TopinambourActions
|
|
30
30
|
application.add_action(action)
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
33
|
+
def self.generate_about_action(application)
|
34
|
+
action = generate_action("about") do |_act, _param|
|
35
|
+
application.windows[0].display_about
|
36
|
+
end
|
37
|
+
action
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.generate_preferences_action(application)
|
41
|
+
action = generate_action("preferences") do |_act, _param|
|
42
|
+
dialog = TopinambourPreferences.new(application.windows.first)
|
43
|
+
dialog.show_all
|
44
|
+
end
|
45
|
+
action
|
46
|
+
end
|
47
47
|
|
48
48
|
def self.generate_quit_action(application)
|
49
49
|
action = generate_action("quit") do |_act, _param|
|
@@ -75,17 +75,15 @@ module TopinambourActions
|
|
75
75
|
action
|
76
76
|
end
|
77
77
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
78
|
+
def self.generate_shortcuts_action(application)
|
79
|
+
action = generate_action("shortcuts") do |_act, _param|
|
80
|
+
application.windows[0].show_shortcuts
|
81
|
+
end
|
82
|
+
action
|
83
|
+
end
|
84
84
|
|
85
85
|
def self.add_actions_to(application)
|
86
|
-
|
87
|
-
# %w(about quit term_copy term_paste preferences shortcuts).each do |name|
|
88
|
-
%w(quit term_copy term_paste).each do |name|
|
86
|
+
%w(quit about preferences term_copy term_paste shortcuts).each do |name|
|
89
87
|
add_action_to(name, application)
|
90
88
|
end
|
91
89
|
end
|
data/lib/application.rb
CHANGED
@@ -31,7 +31,7 @@ class TopinambourApplication < Gtk::Application
|
|
31
31
|
load_css_config
|
32
32
|
|
33
33
|
TopinambourActions.add_actions_to(application)
|
34
|
-
|
34
|
+
load_menu_ui_in(application)
|
35
35
|
end
|
36
36
|
|
37
37
|
signal_connect "activate" do |application|
|
@@ -126,11 +126,11 @@ class TopinambourApplication < Gtk::Application
|
|
126
126
|
Gtk::StyleProvider::PRIORITY_USER)
|
127
127
|
end
|
128
128
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
129
|
+
def load_menu_ui_in(application)
|
130
|
+
builder = Gtk::Builder.new(:resource => "/com/github/cedlemo/topinambour/app-menu.ui")
|
131
|
+
app_menu = builder["appmenu"]
|
132
|
+
application.app_menu = app_menu
|
133
|
+
end
|
134
134
|
|
135
135
|
def load_custom_css(file)
|
136
136
|
if @settings["custom-css"]
|
data/lib/preferences.rb
CHANGED
@@ -101,7 +101,7 @@ class TopinambourPreferences < Gtk::Window
|
|
101
101
|
|
102
102
|
signal_connect "delete-event" do |widget|
|
103
103
|
widget.destroy
|
104
|
-
@parent.
|
104
|
+
@parent.terminal.grab_focus
|
105
105
|
end
|
106
106
|
|
107
107
|
@settings = @parent.application.settings
|
@@ -162,9 +162,7 @@ class TopinambourPreferences < Gtk::Window
|
|
162
162
|
def set_switch_to_initial_state(_switch, setting)
|
163
163
|
state = @settings[setting]
|
164
164
|
m = "#{setting.tr('-', '_')}="
|
165
|
-
@parent.
|
166
|
-
tab.term.send(m, state)
|
167
|
-
end
|
165
|
+
@parent.terminal.send(m, state)
|
168
166
|
end
|
169
167
|
|
170
168
|
def bind_switch_state_with_setting(switch, setting)
|
@@ -175,7 +173,7 @@ class TopinambourPreferences < Gtk::Window
|
|
175
173
|
Gio::SettingsBindFlags::DEFAULT)
|
176
174
|
switch.signal_connect "state-set" do |_switch, state|
|
177
175
|
m = "#{setting.tr('-', '_')}="
|
178
|
-
@parent.
|
176
|
+
@parent.terminal.send(m, state)
|
179
177
|
false
|
180
178
|
end
|
181
179
|
end
|
@@ -183,7 +181,7 @@ class TopinambourPreferences < Gtk::Window
|
|
183
181
|
def set_combo_to_initial_state(_combo_box, setting)
|
184
182
|
active = @settings[setting]
|
185
183
|
m = "#{setting.tr('-', '_')}="
|
186
|
-
@parent.
|
184
|
+
@parent.terminal.send(m, active)
|
187
185
|
end
|
188
186
|
|
189
187
|
def bind_combo_box_with_setting(combo_box, setting)
|
@@ -194,7 +192,7 @@ class TopinambourPreferences < Gtk::Window
|
|
194
192
|
Gio::SettingsBindFlags::DEFAULT)
|
195
193
|
combo_box.signal_connect "changed" do
|
196
194
|
m = "#{setting.tr('-', '_')}="
|
197
|
-
@parent.
|
195
|
+
@parent.terminal.send(m, combo_box.active)
|
198
196
|
false
|
199
197
|
end
|
200
198
|
end
|
data/lib/window.rb
CHANGED
@@ -60,11 +60,11 @@ class TopinambourWindow < Gtk::ApplicationWindow
|
|
60
60
|
Gtk::AboutDialog.show(self,
|
61
61
|
"authors" => ["Cedric Le Moigne <cedlemo@gmx.com>"],
|
62
62
|
"comments" => "Terminal Emulator based on the ruby bindings of Gtk3 and Vte3",
|
63
|
-
"copyright" => "Copyright (C) 2015-
|
63
|
+
"copyright" => "Copyright (C) 2015-2018 Cedric Le Moigne",
|
64
64
|
"license" => "This program is licenced under the licence GPL-3.0 and later.",
|
65
65
|
"logo_icon_name" => "utilities-terminal-symbolic",
|
66
66
|
"program_name" => "Topinambour",
|
67
|
-
"version" => "2.0.
|
67
|
+
"version" => "2.0.1",
|
68
68
|
"website" => "https://github.com/cedlemo/topinambour",
|
69
69
|
"website_label" => "Topinambour github repository"
|
70
70
|
)
|
@@ -85,6 +85,13 @@ class TopinambourWindow < Gtk::ApplicationWindow
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
def show_shortcuts
|
89
|
+
resource_file = "/com/github/cedlemo/topinambour/shortcuts.ui"
|
90
|
+
builder = Gtk::Builder.new(:resource => resource_file)
|
91
|
+
shortcuts_win = builder["shortcuts-window"]
|
92
|
+
shortcuts_win.transient_for = self
|
93
|
+
shortcuts_win.show
|
94
|
+
end
|
88
95
|
private
|
89
96
|
|
90
97
|
def load_settings
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: topinambour
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cedric LE MOIGNE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vte3
|