Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit e2eaffc
Author: shadeyg56 <[email protected]>
Date:   Mon Feb 20 23:08:57 2023 -0600

    move text to be inline with menu

commit e1dae9d
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 19 17:50:26 2023 -0600

    move distro info to top of system stats box

commit 959405b
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 19 17:49:15 2023 -0600

    fix app name on GNOME

commit 346093d
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 19 17:01:03 2023 -0600

    fix snap dependencies

commit ec7e087
Merge: 32b6e63 9912f9d
Author: shadeyg56 <[email protected]>
Date:   Mon Feb 13 14:11:21 2023 -0600

    Merge branch 'AdnanHodzic:master' into gui

commit 32b6e63
Author: shadeyg56 <[email protected]>
Date:   Mon Feb 13 14:10:34 2023 -0600

    increase MenuButton size

commit 12a2cda
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 12 23:35:33 2023 -0600

    set app icon

commit d170d07
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 12 23:35:15 2023 -0600

    remove unused pixbuf

commit 993333f
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 12 22:43:56 2023 -0600

    fix MenuButton icon

commit d1b8bd7
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 12 17:19:32 2023 -0600

    add icon

commit 13f43fa
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 12 17:19:10 2023 -0600

    add pkexec policy and change wrapper for gui

commit 4ddbb9c
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 12 14:09:35 2023 -0600

    add icon to destop entry and about dialog

commit 4379024
Author: shadeyg56 <[email protected]>
Date:   Tue Feb 7 19:06:59 2023 -0600

    add removal of gui and desktop entry

commit 4269370
Author: shadeyg56 <[email protected]>
Date:   Mon Feb 6 23:28:44 2023 -0600

    CPU stats refresh and style stuff

commit 7149db7
Author: shadeyg56 <[email protected]>
Date:   Mon Feb 6 23:10:29 2023 -0600

    daemon detection, daemon install/removal, and layout stuff

commit f7e03c9
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 5 19:26:42 2023 -0600

    improve AboutDialog

    Please enter the commit message for your changes. Lines starting

commit cb8cfe7
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 5 18:28:19 2023 -0600

    add dropdown menu and (not completed) about dialog

commit ade1fed
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 5 15:57:17 2023 -0600

    actually fix css

commit 67c8c97
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 5 15:54:47 2023 -0600

    fix css

commit bd3feae
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 5 00:42:52 2023 -0600

    add desktop entry for gui

commit 5426a6a
Author: shadeyg56 <[email protected]>
Date:   Sun Feb 5 00:33:08 2023 -0600

    add gui to install file, update required packages, and create wrapper script

commit 84124df
Author: shadeyg56 <[email protected]>
Date:   Sat Feb 4 23:28:24 2023 -0600

    create system tray

commit 7b0d46d
Author: shadeyg56 <[email protected]>
Date:   Sat Feb 4 23:28:01 2023 -0600

    small changes to layout

commit cd51ea3
Author: shadeyg56 <[email protected]>
Date:   Sat Feb 4 00:44:08 2023 -0600

    css styling support

commit 136b449
Author: shadeyg56 <[email protected]>
Date:   Sat Feb 4 00:14:52 2023 -0600

    several improvements

commit f9f7170
Merge: 242a8d0 8f343df
Author: shadeyg56 <[email protected]>
Date:   Fri Feb 3 22:44:01 2023 -0600

    Merge branch 'AdnanHodzic:master' into gui

commit 242a8d0
Merge: f50b982 dadfae0
Author: shadeyg56 <[email protected]>
Date:   Fri Feb 3 14:19:01 2023 -0600

    Merge branch 'AdnanHodzic:master' into gui

commit f50b982
Merge: a98225e 69ef913
Author: shadeyg56 <[email protected]>
Date:   Thu Feb 2 18:19:10 2023 -0600

    Merge branch 'AdnanHodzic:master' into gui

commit a98225e
Author: shadeyg56 <[email protected]>
Date:   Thu Feb 2 18:18:43 2023 -0600

    Revert "basic GUI"

    This reverts commit d2610c9.

commit 9606472
Author: shadeyg56 <[email protected]>
Date:   Thu Feb 2 18:13:41 2023 -0600

    basic gui

commit d2610c9
Author: shadeyg56 <[email protected]>
Date:   Thu Feb 2 17:47:55 2023 -0600

    basic GUI

commit bdbe120
Author: shadeyg56 <[email protected]>
Date:   Thu Feb 2 15:21:42 2023 -0600

    rename folder

commit 31095c4
Author: shadeyg56 <[email protected]>
Date:   Wed Jan 25 23:39:52 2023 -0600

    add tray
  • Loading branch information
shadeyg56 committed Feb 21, 2023
1 parent aa3763b commit e8dc4dc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
16 changes: 9 additions & 7 deletions auto_cpufreq/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,22 @@ def __init__(self):
self.build()

def main(self):
# main VBOX
self.vbox_top = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.vbox_top.set_valign(Gtk.Align.CENTER)
self.vbox_top.set_halign(Gtk.Align.CENTER)
self.add(self.vbox_top)
# self.vbox_top = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
# self.vbox_top.set_valign(Gtk.Align.CENTER)
# self.vbox_top.set_halign(Gtk.Align.CENTER)
#self.add(self.vbox_top)

# Main HBOX
self.hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=HBOX_PADDING)

self.systemstats = SystemStatsLabel()
self.hbox.pack_start(self.systemstats, False, False, 0)
self.add(self.hbox)

self.vbox_right = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=20)

self.menu = DropDownMenu(self)
self.vbox_top.pack_start(self.menu, False, False, 0)
self.hbox.pack_end(self.menu, False, False, 0)

self.currentgovernor = CurrentGovernorBox()
self.vbox_right.pack_start(self.currentgovernor, False, False, 0)
Expand All @@ -50,7 +51,7 @@ def main(self):
self.cpufreqstats = CPUFreqStatsLabel()
self.vbox_right.pack_start(self.cpufreqstats, False, False, 0)

self.hbox.pack_start(self.vbox_right, True, True, 0)
self.hbox.pack_start(self.vbox_right, False, False, 0)

self.vbox_top.pack_start(self.hbox, False, False, 0)

Expand Down Expand Up @@ -84,4 +85,5 @@ def refresh(self):
win = MyWindow()
win.connect("destroy", Gtk.main_quit)
win.show_all()
GLib.set_application_name("auto-cpufreq")
Gtk.main()
3 changes: 2 additions & 1 deletion auto_cpufreq/gui/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def refresh(self):
old_stdout = sys.stdout
text = StringIO()
sys.stdout = text
sysinfo()
distro_info()
sysinfo()
self.set_label(text.getvalue())
sys.stdout = old_stdout

Expand All @@ -139,6 +139,7 @@ class DropDownMenu(Gtk.MenuButton):
def __init__(self, parent):
super().__init__()
self.set_halign(Gtk.Align.END)
self.set_valign(Gtk.Align.START)
self.image = Gtk.Image.new_from_icon_name("open-menu-symbolic", Gtk.IconSize.LARGE_TOOLBAR)
self.add(self.image)
self.menu = self.build_menu(parent)
Expand Down
1 change: 1 addition & 0 deletions scripts/auto-cpufreq-gtk.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Exec=auto-cpufreq-gtk
Type=Application
Terminal=false
Icon=auto-cpufreq
StartupWMClass=App.py
Categories=System;
2 changes: 2 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ parts:
build-packages:
- gcc
- python3-dev
- libgirepository1.0-dev
- libcairo2-dev
stage-packages:
- coreutils
- dmidecode
Expand Down

0 comments on commit e8dc4dc

Please sign in to comment.