You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Lite Control Center - Suggestions welcomed

Author (Read 70548 times)

0 Members and 1 Guest are viewing this topic.

Re: Lite Control Center - Suggestions welcomed
« Reply #122 on: August 03, 2015, 11:07:51 AM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
@ misko_2083
Great idea, it is quite a "busy" screen.
So a "New" single icon "Manage Desktop Icons" would launch what you show above.
Looks good to me.
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Lite Control Center - Suggestions welcomed
« Reply #121 on: August 03, 2015, 10:20:19 AM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
Guys, decided to write a python3 script which will open a gtk3+ window from which desktop icons can be added and removed by simply clicking the switch.
There are quite a few icons in the desktop tab this could save some space.
Code: [Select]
#!/usr/bin/env python3
#xfce4-desktop icons switch, Misko
from gi.repository import Gtk
import os
import sys
from subprocess import Popen
from gi.repository.GdkPixbuf import Pixbuf

#Temporary window icon don't forget to change!
icon="/usr/share/pixmaps/Thunar/Thunar-about-logo.png"


class XfDesktopIconsWindow(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title="Xfce Desktop Icons")

        self.set_default_size(-1, 200)
        self.set_border_width(10)

        self.grid = Gtk.Grid()
        self.add(self.grid)


        self.create_label()
        self.create_buttons()
   

       
    def create_label(self):
        label = Gtk.Label()
        label.set_markup("To show and hide desktop icons use the switch on the right")
        label.set_line_wrap(True)
        label.set_size_request(200, -1)


        table = Gtk.Table(1, 1, False)
        table.set_border_width(10)
        table.attach(label, 0, 1, 0, 1, Gtk.AttachOptions.SHRINK | Gtk.AttachOptions.FILL)
        self.grid.attach(table, 1, 0, 2, 1)

    def create_buttons(self):
        label1 = Gtk.Label("File System    ", xalign=1)
        label2 = Gtk.Label("Home    ", xalign=1)
        label3 = Gtk.Label("Trash    ", xalign=1)
        label4 = Gtk.Label("Network   ", xalign=1)
        label5 = Gtk.Label("Removable Drives   ", xalign=1)

        self.grid.attach(label1, 1, 1, 1, 1)
        self.grid.attach(label2, 1, 2, 1, 1)
        self.grid.attach(label3, 1, 3, 1, 1)
        self.grid.attach(label4, 1, 4, 1, 1)
        self.grid.attach(label5, 1, 5, 1, 1)

        button1 = Gtk.Switch()
        button1.connect("notify::active", self.on_switch_activateda)
        button1.set_name('button')
        cmd = 'xfconf-query --channel xfce4-desktop --property "/desktop-icons/file-icons/show-filesystem" | grep -c "true"'
        wicdd = os.popen(cmd)
        wicdd = wicdd.readline()
        if int(wicdd) == 0:
           button1.set_active(False)
        else:
           button1.set_active(True)
        self.grid.attach_next_to(button1, label1, Gtk.PositionType.RIGHT, 1, 1)

        button2 = Gtk.Switch()
        button2.connect("notify::active", self.on_switch_activatedb)
        cmd = 'xfconf-query --channel xfce4-desktop --property "/desktop-icons/file-icons/show-home" | grep -c "true"'
        wicdb = os.popen(cmd)
        wicdb = wicdb.readline()
        if int(wicdb) == 0:
           button2.set_active(False)
        else:
           button2.set_active(True)
        self.grid.attach_next_to(button2, label2, Gtk.PositionType.RIGHT, 1, 1)

        button3= Gtk.Switch()
        button3.connect("notify::active", self.on_switch_activatedc)
        cmd = 'xfconf-query --channel xfce4-desktop --property "/desktop-icons/file-icons/show-trash" | grep -c "true"'
        wicdb = os.popen(cmd)
        wicdb = wicdb.readline()
        if int(wicdb) == 0:
           button3.set_active(False)
        else:
           button3.set_active(True)
        self.grid.attach_next_to(button3, label3, Gtk.PositionType.RIGHT, 1, 1)

        button4= Gtk.Switch()
        button4.connect("notify::active", self.on_switch_activatedd)
        cmd = 'ls ~/Desktop | grep -c "networks.desktop"'
        wicdb = os.popen(cmd)
        wicdb = wicdb.readline()
        if int(wicdb) == 0:
           button4.set_active(False)
        else:
           button4.set_active(True)
        self.grid.attach_next_to(button4, label4, Gtk.PositionType.RIGHT, 1, 1)

        button5= Gtk.Switch()
        button5.connect("notify::active", self.on_switch_activatede)
        cmd = 'xfconf-query --channel xfce4-desktop -n --property "/desktop-icons/file-icons/show-device-removable" | grep -c "true"'
        wicdb = os.popen(cmd)
        wicdb = wicdb.readline()
        if int(wicdb) == 0:
           button5.set_active(False)
        else:
           button5.set_active(True)
        self.grid.attach_next_to(button5, label5, Gtk.PositionType.RIGHT, 1, 1)

        buttonc = Gtk.Button(label="_Close", use_underline=True)
        buttonc.set_border_width(10)
        buttonc.connect("clicked", self.on_close_clicked)
        self.grid.attach(buttonc,  2, 7, 1, 1)



    def on_switch_activateda(self, switch, gparam):
        if switch.get_active():
            os.system('xfconf-query --channel xfce4-desktop -n --property "/desktop-icons/file-icons/show-filesystem" --set "true"')
            state = "on"
        else:
            os.system('xfconf-query --channel xfce4-desktop -n --property "/desktop-icons/file-icons/show-filesystem" --set "false"')
            state = "off"
        print("File System icon is set", state)

    def on_switch_activatedb(self, switch, gparam):
        if switch.get_active():
            os.system('xfconf-query --channel xfce4-desktop -n --property "/desktop-icons/file-icons/show-home" --set "true"')
            state = "on"
        else:
            os.system('xfconf-query --channel xfce4-desktop -n --property "/desktop-icons/file-icons/show-home" --set "false"')
            state = "off"
        print("Home icon is", state)

    def on_switch_activatedc(self, switch, gparam):
        if switch.get_active():
            os.system('xfconf-query --channel xfce4-desktop -n --property "/desktop-icons/file-icons/show-trash" --set "true"')
            state = "on"
        else:
            os.system('xfconf-query --channel xfce4-desktop -n --property "/desktop-icons/file-icons/show-trash" --set "false"')
            state = "off"
        print("Trash icon is", state)

    def on_switch_activatedd(self, switch, gparam):
        if switch.get_active():
            os.system('cp /usr/share/litecc/frontend/icons/desktop/networks.desktop ~/Desktop')
            state = "on"
        else:
            os.system('rm -rf ~/Desktop/networks.desktop')
            state = "off"
        print("Network icon is", state)

    def on_switch_activatede(self, switch, gparam):
        if switch.get_active():
            os.system('xfconf-query --channel xfce4-desktop -n --property "/desktop-icons/file-icons/show-device-removable" --set "true"')
            state = "on"
        else:
            os.system('xfconf-query --channel xfce4-desktop -n --property "/desktop-icons/file-icons/show-device-removable" --set "false"')
            state = "off"
        print("Show Removable is", state)

    def on_close_clicked(self, button):
        print("Closing Xfce Desktop Icons")
        Gtk.main_quit()

window = XfDesktopIconsWindow()     
window.connect("delete-event", Gtk.main_quit)
window.set_resizable(False)
window.set_position(Gtk.WindowPosition.CENTER)
window.set_icon(Pixbuf.new_from_file("{0}".format(icon)))
window.set_name('DesktopIcons')
window.show_all()
Gtk.main()
Also added and option to show/hide removable drives.
Might need some work but this is working fine so far.

What do you think guys?
 

Re: Lite Control Center - Suggestions welcomed
« Reply #120 on: July 26, 2015, 04:03:06 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
The way it is now or Choice 1 are more in keeping with the theme of the Linux Lite Help Manual.
Want to thank me?  Click my [Thank] link.
 

Re: Lite Control Center - Suggestions welcomed
« Reply #119 on: July 26, 2015, 03:39:03 PM »
 

DLX

  • PayPal Supporter
  • Forum Regular
  • *****
  • 182
    Posts
  • Reputation: 11
  • Knows sod all
    • View Profile

  • MEMORY: 16Gb
2 ;)
Note to self list to get fixed 1 by 1
Read how to make LL secure.
See what else Linux Lite can do.
I think X kill is cool :)
 

Re: Lite Control Center - Suggestions welcomed
« Reply #118 on: July 26, 2015, 04:53:20 AM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Understood, for me 1 or 2 is fine, It's good to just have the tool.
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Lite Control Center - Suggestions welcomed
« Reply #117 on: July 26, 2015, 04:44:13 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Theming requires a lot more code. This is something we can implement in the future. Right now, our priority is to get these useful tools out to people asap in a stable state.
 

Re: Lite Control Center - Suggestions welcomed
« Reply #116 on: July 26, 2015, 04:35:27 AM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Looks like it's pretty even between Samples 1 & 2. Interesting, since one is dark and one is light. This will be a tough call.

Hi Jerry,
This may show my lack of knowledge(naivety), on what you/dev's have to do to maintain these tools..??
Could you not have a "Choice" in "Lite Tweaks" for "Light" or "Dark" Control panel..??


Dave



Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Lite Control Center - Suggestions welcomed
« Reply #115 on: July 26, 2015, 04:08:44 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Looks like it's pretty even between Samples 1 & 2. Interesting, since one is dark and one is light. This will be a tough call.
 

Re: Lite Control Center - Suggestions welcomed
« Reply #114 on: July 25, 2015, 09:34:54 PM »
 

UltraCookie

  • Forum Regular
  • ***
  • 159
    Posts
  • Reputation: 24
  • Linux Flavoured Chocolate Cookie
    • View Profile

  • CPU: Intel i5-4210M Dual Core 2,60 GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel HD 4600

  • Kernel: 5.x
This is more an aesthetics thing and maybe it's wanted but when switching between the tabs on the side the whole top panel swooshes up and done again changing the title and tab description. Just the help button stays where it is.
Linux Lite 5.0 on Lenovo Edge 540 <3
 

Re: Lite Control Center - Suggestions welcomed
« Reply #113 on: July 23, 2015, 08:14:45 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
 

Re: Lite Control Center - Suggestions welcomed
« Reply #112 on: July 23, 2015, 07:36:21 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
I actually like it the way it is!

The white lettering of the categories gives just enough contrast to be noticeable, and the consistent background of the categories on the left provides a good border.  It focuses my eyes on the content to the right.

I like it the way it is, but if I have to select from the 3 choices, for my reasons above, I would select choice 1.  The other two choices have the categories on the left and the content on the right blend in too much.  The result is a "where do I look first" feeling.
Want to thank me?  Click my [Thank] link.
 

Re: Lite Control Center - Suggestions welcomed
« Reply #111 on: July 23, 2015, 07:20:42 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
Charlie Henson says he likes Sample 2.

I don't know. I don't like the dark one (Sample 1) any other will do.
Playing around in gimp some, not sure this looks good at all. But feedback is always cool. I just never wanted to go with a solid bg...
I like it, way better than mine lol
http://i.imgur.com/60zPUrj.png
 

Re: Lite Control Center - Suggestions welcomed
« Reply #110 on: July 23, 2015, 07:17:04 PM »
 

shaggytwodope

  • Forum Regular
  • ***
  • 222
    Posts
  • Reputation: 44
  • Linux Lite Member
    • View Profile
    • Shaggy's Blog

  • CPU: Intel i5 4440

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD Graphics 4600
Playing around in gimp some, not sure this looks good at all. But feedback is always cool. I just never wanted to go with a solid bg...






The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
 

Re: Lite Control Center - Suggestions welcomed
« Reply #109 on: July 23, 2015, 06:24:57 PM »
 

avj

  • Gold Level Poster
  • *******
  • 530
    Posts
  • Reputation: 110
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Intel Pentium D 2.80GHz

  • MEMORY: 2Gb

  • VIDEO CARD: AMD/ATI RC410 Radeon Xpress 200/1100
Sample 3 is the easiest on my eyes, but I like sample 2 as well.  :)
“I have not failed. I’ve just found 10,000 ways that won’t work.” - Thomas Edison
 

Re: Lite Control Center - Suggestions welcomed
« Reply #108 on: July 23, 2015, 06:07:30 PM »
 

DLX

  • PayPal Supporter
  • Forum Regular
  • *****
  • 182
    Posts
  • Reputation: 11
  • Knows sod all
    • View Profile

  • MEMORY: 16Gb
I can't see the difference from sample 3 or 3 both very shape
« Last Edit: July 23, 2015, 06:25:55 PM by Dyslexic1 »
Note to self list to get fixed 1 by 1
Read how to make LL secure.
See what else Linux Lite can do.
I think X kill is cool :)
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section