- Added proper bg color for gui, added hotkeys for ubuntu workspace switching

This commit is contained in:
Ben Reaves
2020-10-22 22:23:22 -05:00
parent e67f8964a1
commit c7dfbff27f
2 changed files with 8 additions and 4 deletions

View File

@@ -117,7 +117,6 @@ class MyWindow(Gtk.Window):
self.InputToTerm(self.command) self.InputToTerm(self.command)
grid = Gtk.Grid() grid = Gtk.Grid()
grid.modify_bg(Gtk.StateFlags.NORMAL, Gdk.color_parse("#2d303b"))
self.add(grid) self.add(grid)
menubar = Gtk.MenuBar() menubar = Gtk.MenuBar()
@@ -128,7 +127,10 @@ class MyWindow(Gtk.Window):
scroller.set_vexpand(True) scroller.set_vexpand(True)
scroller.add(terminal) scroller.add(terminal)
grid.attach(scroller, 0, 1, 1, 1) grid.attach(scroller, 0, 1, 1, 1)
grid.attach_next_to(self.label, scroller, Gtk.PositionType.BOTTOM, 2, 1) status_hbox = Gtk.HBox()
status_hbox.add(self.label)
status_hbox.modify_bg(Gtk.StateFlags.NORMAL, Gdk.color_parse("#2d303b"))
grid.attach_next_to(status_hbox, scroller, Gtk.PositionType.BOTTOM, 2, 1)
with open(self.kconfig) as configfile: with open(self.kconfig) as configfile:
autostart_line = configfile.read().split('\n')[1] autostart_line = configfile.read().split('\n')[1]

View File

@@ -205,8 +205,8 @@ define_keymap(None,{
K("RC-Space"): K("Alt-F1"), # Default SL - Launch Application Menu (gnome/kde) K("RC-Space"): K("Alt-F1"), # Default SL - Launch Application Menu (gnome/kde)
K("RC-F3"):K("Super-d"), # Default SL - Show Desktop (gnome/kde,eos) K("RC-F3"):K("Super-d"), # Default SL - Show Desktop (gnome/kde,eos)
K("RC-LC-f"):K("M-F10"), # Default SL - Maximize app (gnome/kde) K("RC-LC-f"):K("M-F10"), # Default SL - Maximize app (gnome/kde)
K("Super-Right"):K("C-M-Right"), # Default SL - Change workspace (ubuntu/fedora/budgie) K("Super-Right"):K("C-M-Right"), # Default SL - Change workspace (fedora/budgie)
K("Super-Left"):K("C-M-Left"), # Default SL - Change workspace (ubuntu/fedora/budgie) K("Super-Left"):K("C-M-Left"), # Default SL - Change workspace (fedora/budgie)
K("RC-Q"): K("M-F4"), # Default SL - not-popos K("RC-Q"): K("M-F4"), # Default SL - not-popos
K("RC-H"):K("Super-h"), # Default SL - Minimize app (gnome/budgie) K("RC-H"):K("Super-h"), # Default SL - Minimize app (gnome/budgie)
K("M-Tab"): pass_through_key, # Default not-xfce4 - Cmd Tab - App Switching Default K("M-Tab"): pass_through_key, # Default not-xfce4 - Cmd Tab - App Switching Default
@@ -214,6 +214,8 @@ define_keymap(None,{
K("RC-Shift-Tab"): K("M-Shift-Tab"), # Default not-xfce4 - Cmd Tab - App Switching Default K("RC-Shift-Tab"): K("M-Shift-Tab"), # Default not-xfce4 - Cmd Tab - App Switching Default
K("RC-Grave"): K("M-Grave"), # Default not-xfce4 - Cmd ` - Same App Switching K("RC-Grave"): K("M-Grave"), # Default not-xfce4 - Cmd ` - Same App Switching
K("RC-Shift-Grave"): K("M-Grave"), # Default not-xfce4 - Cmd ` - Same App Switching K("RC-Shift-Grave"): K("M-Grave"), # Default not-xfce4 - Cmd ` - Same App Switching
# K("Super-Right"):K("Super-Page_Up"), # SL - Change workspace (ubuntu)
# K("Super-Left"):K("Super-Page_Down"), # SL - Change workspace (ubuntu)
# K("RC-Space"): K("LC-Esc"), # xfce4 - Launch Application Menu # K("RC-Space"): K("LC-Esc"), # xfce4 - Launch Application Menu
# K("RC-F3"):K("C-M-d"), # xfce4 - Show Desktop # K("RC-F3"):K("C-M-d"), # xfce4 - Show Desktop
# K("RC-LC-f"):K("LC-Super-Up"), # popos - Maximize app # K("RC-LC-f"):K("LC-Super-Up"), # popos - Maximize app