Announcement

Collapse
No announcement yet.

Clocks

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Clocks

    There are available various clocks from the KDE release and from the KDE-Apps.



    The analog, binary, digital, fuzzy clocks are part of the KDE release.

    The adjustable clock (http://kde-apps.org/content/show.php...?content=92825) is from the KDE-Apps. It can be found from the Ubuntu repositories (plasma-widget-adjustableclock).



    With the version 3.2:




    The clocks can be implemented as a Karamba theme (http://kde-look.org/content/show.php?content=135940), Kwin effect (http://kde-apps.org/content/show.php?content=117542) or a QML plasma widget (http://kde-look.org/content/show.php?content=156715).




    More:

    - http://www.kubuntuforums.net/showthr...-hour-to-AM-PM
    - http://hashpling.wordpress.com/2013/...lock-plasmoid/
    - http://soliverez.com.ar/home/2013/01/a-clock-in-qml/
    - http://soliverez.com.ar/home/2013/01...-kde-my-setup/
    Last edited by OneLine; Jun 30, 2016, 02:10 AM.
    Have you tried ?

    - How to Ask a Question on the Internet and Get It Answered
    - How To Ask Questions The Smart Way

    #2
    Thanks for the informative post
    How exactly do you get the Karamba theme clocks up and running?

    Comment


      #3
      Karamba

      Type the word : Karamba or from the Kickoff >Applications > Desktop Widgets(SuperKaramba) - launchers: http://www.kubuntuforums.net/showthr...tion-Launchers




      Add the theme from the "GHNS" or from the local file.
      Pick the theme from the Karamba tool - "Add to desktop"



      Move the theme to the wanted position - lock it etc.. (right click)



      The Karamba tool should be in the system tray.

      Last edited by OneLine; Feb 03, 2013, 09:51 AM.
      Have you tried ?

      - How to Ask a Question on the Internet and Get It Answered
      - How To Ask Questions The Smart Way

      Comment


        #4
        http://kde-look.org/content/show.php?content=156715

        Comment


          #5
          Cool! I didnt know about Karamba themes. Looks like I have something new to play with. Thanks.

          Comment


            #6
            You can also use OSX/HTML5 widgets.

            Comment


              #7
              Quick Clocks with the Plasma 5

              Based on: Plasmoid Tutorial 1 - http://blog.davidedmundson.co.uk/node/89


              Making metadata.desktop:
              Code:
              [Desktop Entry]
              Name=Clock Plasmoid
              Comment=Shows QML Clock
              Encoding=UTF-8
              Icon=player-time
              ServiceTypes=Plasma/Applet
              Type=Service
              X-KDE-PluginInfo-Author=Me
              X-KDE-PluginInfo-Email=Me@here
              X-KDE-PluginInfo-Name=org.kde.qmlclockplasmoid
              X-KDE-PluginInfo-License=LGPL
              X-KDE-PluginInfo-Version=1.0
              X-KDE-PluginInfo-Website=http://techbase.kde.org
              X-Plasma-API=declarativeappletscript
              X-Plasma-MainScript=ui/main.qml
              The main.qml from https://github.com/sddm/sddm/blob/ma.../2.0/Clock.qml
              After edit:
              Code:
              /***************************************************************************
              * Copyright (c) 2013 Abdurrahman AVCI <abdurrahmanavci@gmail.com>
              * https://github.com/sddm/sddm/blob/master/components/2.0/Clock.qml
              *
              * Permission is hereby granted, free of charge, to any person
              * obtaining a copy of this software and associated documentation
              * files (the "Software"), to deal in the Software without restriction,
              * including without limitation the rights to use, copy, modify, merge,
              * publish, distribute, sublicense, and/or sell copies of the Software,
              * and to permit persons to whom the Software is furnished to do so,
              * subject to the following conditions:
              *
              * The above copyright notice and this permission notice shall be included
              * in all copies or substantial portions of the Software.
              *
              * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
              * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
              * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
              * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
              * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
              * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
              * OR OTHER DEALINGS IN THE SOFTWARE.
              *
              ***************************************************************************/
              
              import QtQuick 2.0
              import org.kde.plasma.plasmoid 2.0
              
              Column {
                  id: container
              
                  // added - no background - https://forum.kde.org/viewtopic.php?f=289&t=124743
                  Plasmoid.backgroundHints: "NoBackground"
                  
                  property date dateTime: new Date()
                  property color color: "black"
                  property alias timeFont: time.font
                  property alias dateFont: date.font
              
                  Timer {
                      interval: 100; running: true; repeat: true;
                      onTriggered: container.dateTime = new Date()
                  }
              
                  Text {
                      id: time
                      anchors.horizontalCenter: parent.horizontalCenter
              
                      color: container.color
              
                      text : Qt.formatTime(container.dateTime, "hh:mm:ss")
              
                      font.pointSize: 28
                  }
              
                  Text {
                      id: date
                      anchors.horizontalCenter: parent.horizontalCenter
              
                      color: container.color
              
                      text : Qt.formatDate(container.dateTime, "yyyy-MM-dd")
              
                      font.pointSize: 18
                  }
              }
              Moving the parts to the right path:

              - /myclockplasmoid/metadata.desktop
              - /myclockplasmoid/contents/ui/main.qml



              Installing it:
              Code:
              plasmapkg2 --install myclockplasmoid
              It is:
              Code:
              :~$ plasmapkg2 --help
              Usage: plasmapkg2 [options]
              Plasma Package Manager
              
              Options:
                -v, --version             Displays version information.
                -h, --help                Displays this help.
                --hash <path>             Generate a SHA1 hash for the package at <path>
                -g, --global              For install or remove, operates on packages
                                          installed for all users.
                -t, --type <type>         The type of package, e.g. theme, wallpaper,
                                          plasmoid, dataengine, runner, layout-template, etc.
                -i, --install <path>      Install the package at <path>
                -s, --show <name>         Show information of package <name>
                -u, --upgrade <path>      Upgrade the package at <path>
                -l, --list                List installed packages
                --list-types              List all known package types that can be installed
                -r, --remove <name>       Remove the package named <name>
                -p, --packageroot <path>  Absolute path to the package root. If not supplied,
                                          then the standard data directories for this KDE
                                          session will be searched instead.
              Adding the clock to the desktop:



              ...and it is there:
              A good place to start: Topic: Top 20 Kubuntu FAQs & Answers
              Searching FAQ's: Google Search 'FAQ from Kubuntuforums'

              Comment


                #8
                yep
                sigpic
                Love Thy Neighbor Baby!

                Comment


                  #9
                  Why have only one when you could have many

                  Qt Quick Demo - Clocks: http://doc.qt.io/qt-5/qtquick-demos-clocks-example.html
                  or
                  qtquick1-5-examples: http://packages.ubuntu.com/vivid/qtquick1-5-examples


                  Writing a metadata.desktop and drag&drop the files to the right places.... installing...



                  More clocks




                  More plasma 5 links: https://www.kubuntuforums.net/showth...ma-qml-widgets
                  Last edited by Rog132; Mar 26, 2015, 11:45 AM.
                  A good place to start: Topic: Top 20 Kubuntu FAQs & Answers
                  Searching FAQ's: Google Search 'FAQ from Kubuntuforums'

                  Comment


                    #10
                    My panel clock

                    http://askubuntu.com/questions/61124...-non-tiny-font

                    Have you tried ?

                    - How to Ask a Question on the Internet and Get It Answered
                    - How To Ask Questions The Smart Way

                    Comment


                      #11
                      Well that was fun. Thanks OneLine.

                      Comment


                        #12
                        But will one of these clocks get the localised calenders that were so good until 14.10?

                        Comment


                          #13
                          Meanwhile

                          Teunis
                          But will one of these clocks get the localised calenders that were so good until 14.10?

                          KDE

                          Plasma 5.3 Errata: https://community.kde.org/Plasma/5.3_Errata
                          ...
                          Missing features

                          No holidays or calendar events displayed in the Plasma calendar - Awaiting KDE PIM libraries to port to KF5/Plasma5.
                          ...
                          Tips for displaying weeks in Calendar applet: https://forum.kde.org/viewtopic.php?f=285&t=126618


                          DIY

                          If someone is interested enough to write the code. Meanwhile adding FullRepresentation.qml to the mypanelclock.




                          metadata.desktop: http://pastebin.com/VKzQV0de
                          main.qml: http://pastebin.com/eAnnXE2x
                          CompactRepresentation.qml: http://pastebin.com/eVxP8RLg
                          FullRepresentation.qml: http://pastebin.com/bTnYMbG4


                          Calendar is from: http://almanakka.helsinki.fi/en/publ...-calendar.html


                          Or with the PinUp calendar


                          Calendar is from: http://www.timeanddate.com/calendar/...html?year=2015
                          Last edited by OneLine; Jun 24, 2015, 03:11 AM.
                          Have you tried ?

                          - How to Ask a Question on the Internet and Get It Answered
                          - How To Ask Questions The Smart Way

                          Comment


                            #14
                            Plasma 5 digital clock calendar background

                            (Plasma 5.7 beta)


                            Simple calendar background image

                            The digitalclock calendar qml code is at: /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/CalendarView.qml

                            A picture can be slipped to the calendar by adding a picture and few code lines ( http://doc.qt.io/qt-5/qml-qtquick-image.html ):
                            Code:
                                   Image {
                                    source: "Background.jpg"
                                }
                            i.e

                            Code:
                            ...
                                onIsExpandedChanged: {
                                    if (!isExpanded) {
                                        // clear all the selections when the plasmoid is hiding
                                        monthView.resetToToday();
                                    }
                                }
                            
                                   Image {
                                    source: "Background.jpg"
                                }
                            
                            
                                Item {
                                    id: agenda
                            
                                    width: avWidth
                                    anchors {
                                        top: parent.top
                                        left: parent.left
                            ...
                            After plasmashell restart:




                            Monthly calendar background image

                            Monthly background images can be added by

                            Code:
                                Image {
                                    source: "images/" + monthView.currentDate.getMonth()
                                }
                            Pictures are at 'images' subfolder and the names are 0,1,2,..11.



                            To get a bit better readability there is a matte image:



                            CalendarView.qml:
                            Code:
                            ...
                                onIsExpandedChanged: {
                                    if (!isExpanded) {
                                        // clear all the selections when the plasmoid is hiding
                                        monthView.resetToToday();
                                    }
                                }
                            
                                Image {
                                    source: "images/" + monthView.currentDate.getMonth()
                                }
                                   Image {
                                    source: "images/Matte.png"
                                }
                            
                            
                                Item {
                                    id: agenda
                            
                                    width: avWidth
                                    anchors {
                            ...
                            After plasmashell restart:




                            mydigitalclock

                            The digital clock can be copied from /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock to ~ /.local/share/plasma/plasmoids/org.kde.plasma.mydigitalclock/

                            Few edits to the mydigitalclock metadata.desktop:
                            Code:
                            [Desktop Entry]
                            Encoding=UTF-8
                            Name=My Digital Clock
                            Name[x-test]=xxMy Digital Clockxx
                            
                            Comment=Time displayed in an enhanced digital format
                            Comment[x-test]=xxTime displayed in an enhanced digital formatxx
                            
                            Icon=preferences-system-time
                            Type=Service
                            X-KDE-ParentApp=
                            X-KDE-PluginInfo-Author=
                            X-KDE-PluginInfo-Email=
                            X-KDE-PluginInfo-License=GPL
                            X-KDE-PluginInfo-Name=org.kde.plasma.mydigitalclock
                            X-KDE-PluginInfo-Version=3.0
                            X-KDE-PluginInfo-Website=plasma.kde.org
                            X-KDE-ServiceTypes=Plasma/Applet
                            X-Plasma-API=declarativeappletscript
                            X-KDE-PluginInfo-Category=Date and Time
                            X-Plasma-Provides=org.kde.plasma.time,org.kde.plasma.date
                            
                            X-Plasma-MainScript=ui/main.qml
                            X-Plasma-RemoteLocation=
                            and the new clock is ready to added to the default panel or to the My Panel:



                            My Panel: https://forum.kde.org/viewtopic.php?...133073#p357392
                            Before you edit, BACKUP !

                            Why there are dead links ?
                            1. Thread: Please explain how to access old kubuntu forum posts
                            2. Thread: Lost Information

                            Comment


                              #15
                              My installation does not have org.kde.mydigitalclock, only ord.kde.digitalclock. And under its ui are only qml files.
                              "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                              – John F. Kennedy, February 26, 1962.

                              Comment

                              Working...
                              X