Announcement

Collapse
No announcement yet.

Konqueror tweaks

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

    Konqueror tweaks

    I'd like to know if there is a way to tweak Konqueror so one can add information to the Titlebar?
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    #2
    Re: Konqueror tweaks

    What kind of information ?

    man konqueror
    OPTIONS
    Arguments:
    ...
    KDE options:

    --caption <caption>
    Use 'caption' as name in the titlebar
    --icon <icon>
    Use 'icon' as the application icon
    --miniicon <icon>
    Use 'icon' as the icon in the titlebar
    ...
    Qt options:
    ...

    => Konqueror with the start time:
    Code:
    konqueror --caption "Konqueror started `date +%H:%M`"
    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


      #3
      Re: Konqueror tweaks

      Hi Rog -

      What I would like to add to the Titlebar is the version of Kubuntu I'm running. See below:
      Attached Files
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Re: Konqueror tweaks

        By using lsb_release and awk:
        Code:
        konqueror --caption "`lsb_release -r | awk '{print "Kubuntu " $2 }'`"
        or/and
        Code:
        konqueror --caption "`lsb_release -r | awk '{print "Kubuntu " $2 }'` `lsb_release -c | awk '{print $2 }'`"

        man lsb_release
        lsb_release(1) lsb_release(1)

        NAME
        lsb_release - print distribution-specific information

        SYNOPSIS
        lsb_release [options]

        DESCRIPTION
        The lsb_release command provides certain LSB (Linux Standard Base) and
        distribution-specific information.
        ...
        -r, --release
        Display the release number of the currently installed distribu‐
        tion.
        ...
        -c, --codename
        Display the code name of the currently installed distribution.
        ...

        > The GNU Awk user's Guide


        =>
        Attached Files
        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


          #5
          Re: Konqueror tweaks

          As usual, you're right on the money Rog. This works great. Thank you.

          I'll mull this over, as it does exactly what I want if launching Konqueror via the CLI. Just need to see if I can configure it to do so from the application in the K Menu.
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Re: Konqueror tweaks

            Just need to see if I can configure it to do so from the application in the K Menu.
            konqueror.desktop has
            Code:
            ...
            Exec=konqueror %U
            ...
            It is (Intrepid) in the /usr/share/kde4/services/. Path to the services:
            Code:
            kde4-config --path services
            Maybe:
            Code:
            ...
            Exec=konqueror --caption "`lsb_release -r | awk '{print "Kubuntu " $2 }'` `lsb_release -c | awk '{print $2 }'`" %U
            ...

            > Topic: GtoK: .desktop files

            >> Chapter 26. Customizing KDE
            %U

            A list of URLs; will download the file first and pass a local file to the app (!!)
            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


              #7
              Re: Konqueror tweaks

              Originally posted by Rog131
              Maybe:
              Code:
              ...
              Exec=konqueror --caption "`lsb_release -r | awk '{print "Kubuntu " $2 }'` `lsb_release -c | awk '{print $2 }'`" %U
              ...
              Just tried this. Doesn't work. Konqueror doesn't complain about the execution line above (a good thing?) and runs normally. Keep in mind, I'm not running II (I'm on HH w/KDE 4.1.1 at the moment) and the konqueror.desktop file is located at:
              /usr/lib/kde4/share/kde4/services/konqueror.desktop
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Re: Konqueror tweaks

                Just tried this. Doesn't work.


                Here it is working - hmm - there seems to be a small lag before KDE 4.1.1 notices that there has been changes in the configuration files.
                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


                  #9
                  Re: Konqueror tweaks

                  Have to correct my last post. It is working! Thanks Rog. Helpful information as usual.
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: Konqueror tweaks

                    Update. After a restart this morning (I shutdown and turn of my laptop daily), I noticed that Konqueror isn't displaying the extra information in the Titlebar. Konqueror autostarts. This caused me to ponder, so, I shutdown Konqueror and then restarted it via the K Menu button. Voila, the Titlebar shows the extra information.

                    Anyone have a suggestion as to why this would be?
                    Windows no longer obstructs my view.
                    Using Kubuntu Linux since March 23, 2007.
                    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                    Comment


                      #11
                      Re: Konqueror tweaks

                      Konqueror autostarts.
                      Do you mean ?:
                      On Login - Restore previous session
                      Guess:
                      - KDE is not using desktop files when it is restoring session.
                      - KDE is not saving titlebar information when it is saving session.


                      Restore session writes info in:
                      ~/.kde/share/config/ksmserverrc
                      and in the
                      ~/.kde/share/config/session/


                      Hmm - "Restore session" is still under work ? > Topic: Saved Session Support
                      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


                        #12
                        Re: Konqueror tweaks

                        What I have:
                        K Menu > System Settings > Session Manager > Restore Previous Session

                        As to where restore session writes info in, this is what a search on ksmserverrc shows:

                        /root/.kde4/share/config/ksmserverrc
                        /usr/share/kubuntu-default-settings/kde-profile/minor-motor-difficulties/share/config/ksmserverrc
                        /usr/share/kubuntu-default-settings/kde-profile/lesser-visual-impairment/share/config/ksmserverrc
                        /usr/share/kubuntu-default-settings/kde-profile/default/share/config/ksmserverrc
                        /usr/share/kubuntu-default-settings/kde-profile/motor-difficulties-pointing-devices/share/config/ksmserverrc
                        It's interesting that the search doesn't find ksmserverrc in the following existing location:
                        ~/.kde4/share/config
                        Windows no longer obstructs my view.
                        Using Kubuntu Linux since March 23, 2007.
                        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                        Comment


                          #13
                          Re: Konqueror tweaks

                          Also check for konqueror preload in Konqueror Settings (in the 'Performance' section).

                          For 'universal' use of the modified caption, you could try setting an alias in your .bashrc (if you use bash), similar to:
                          Code:
                          alias konqueror='konqueror --caption "Your string"'

                          Comment

                          Working...
                          X