Announcement

Collapse
No announcement yet.

changing to random wallpaper at startup (dcop kdesktop)

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

    changing to random wallpaper at startup (dcop kdesktop)

    Hello!

    I have this script
    Code:
    #!/bin/bash
    wallpapers=(~/pictures/*.jpg)
    wallpaper_count=${#wallpapers[@]}
    random_wallpaper=${wallpapers[(((wallpaper_count - 1) * RANDOM / 32767))]}
    dcop kdesktop KBackgroundIface setWallpaper "$random_wallpaper" 6
    killall conky
    wall=`dcop kdesktop KBackgroundIface currentWallpaper 1`
    echo "$(date): ${wall}" >> ~/wall_log.txt &
    feh --bg-scale $wall
    conky
    and I want it to work on my new Kubuntu Intrepid.
    How do I do that ?

    Thanks.

    P.S. Can someone tell me if system tray icon issue is fixed or not, because mine is still messed up...

    #2
    Re: changing to random wallpaper at startup (dcop kdesktop)

    changing to random wallpaper at startup (dcop kdesktop)
    KDE 4 is using dbus and this > How can I change my current wallpaper using DBUS? tells that
    aseigo:

    currently you can't; we just brought in wallpaper plugins for 4.2, which is a first step towars making them odular and more easily controlled in a reliable way from the outside.

    exporting the API for all the useful internals in plasma have not yet been written, however.
    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: changing to random wallpaper at startup (dcop kdesktop)

      Originally posted by Rog131
      changing to random wallpaper at startup (dcop kdesktop)
      KDE 4 is using dbus and this > How can I change my current wallpaper using DBUS? tells that
      aseigo:

      currently you can't; we just brought in wallpaper plugins for 4.2, which is a first step towars making them odular and more easily controlled in a reliable way from the outside.

      exporting the API for all the useful internals in plasma have not yet been written, however.
      Ok I'll just use the slideshow thing.

      what about tray icons?

      Comment


        #4
        Re: changing to random wallpaper at startup (dcop kdesktop)

        P.S. Can someone tell me if system tray icon issue is fixed or not, because mine is still messed up..
        ...
        what about tray icons?
        What do you mean ?

        Here the System Tray - Theme Glassified, desktop effects on and off (transparency) - is looking like this:
        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: changing to random wallpaper at startup (dcop kdesktop)

          Originally posted by Rog131
          P.S. Can someone tell me if system tray icon issue is fixed or not, because mine is still messed up..
          ...
          what about tray icons?
          What do you mean ?

          Here the System Tray - Theme Glassified, desktop effects on and off (transparency) - is looking like this:
          Here is mine.



          Same thing on all themes.
          First of all amarok did not want to go to tray icons, so i'm using 'dcopserver_shutdown' at startup. This is the last issue

          Comment


            #6
            Re: changing to random wallpaper at startup (dcop kdesktop)

            Does anyone know why is my system tray messed up?

            [img width=400 height=19]http://img5.imageshack.us/img5/4792/snapshot25.png[/img]

            Comment


              #7
              Re: changing to random wallpaper at startup (dcop kdesktop)

              Do you mean that it doesn't hide any apps listed in the system tray itself? Try configuring it by right clicking on it and selecting System Tray Settings. It'll open a new window with the Auto Hide as its default tab displayed on screen where you can select which apps should be visible icons or hidden ones.
              Multibooting: Kubuntu Noble 24.04
              Before: Jammy 22.04, Focal 20.04, Precise 12.04 Xenial 16.04 and Bionic 18.04
              Win XP, 7 & 10 sadly
              Using Linux since June, 2008

              Comment


                #8
                Re: changing to random wallpaper at startup (dcop kdesktop)

                Originally posted by kyonides
                Do you mean that it doesn't hide any apps listed in the system tray itself? Try configuring it by right clicking on it and selecting System Tray Settings. It'll open a new window with the Auto Hide as its default tab displayed on screen where you can select which apps should be visible icons or hidden ones.
                No I mean the transparent background has some messed up pixels -_0
                http://img5.imageshack.us/img5/4792/snapshot25.png

                Comment


                  #9
                  Re: changing to random wallpaper at startup (dcop kdesktop)

                  Can someone take a look at this video file?
                  http://files.filefront.com/outogv/;1.../fileinfo.html
                  I've captured my "graphical glitch". I need to know if I can fix it or if I must live with it.
                  The problem is with system taskbar - not transparent, messed up pixels and when i run some program, when the window initializes for the first sexond there is another graphical glitch

                  sorry for my english
                  many thanks for any help

                  Code:
                  processor    : 1
                  vendor_id    : GenuineIntel
                  cpu family   : 6
                  model      : 23
                  model name   : Pentium(R) Dual-Core CPU   E5200 @ 2.50GHz
                  stepping    : 6
                  cpu MHz     : 1203.000
                  cache size   : 2048 KB
                  physical id   : 0
                  siblings    : 2
                  core id     : 1
                  cpu cores    : 2
                  apicid     : 1
                  initial apicid : 1
                  fdiv_bug    : no
                  hlt_bug     : no
                  f00f_bug    : no
                  coma_bug    : no
                  fpu       : yes
                  fpu_exception  : yes
                  cpuid level   : 10
                  wp       : yes
                  flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm
                  bogomips    : 5012.34
                  clflush size  : 64
                  power management:
                  Code:
                  :/proc$ lspci
                  00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 02)
                  00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 02)
                  00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
                  00:1a.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
                  00:1a.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
                  00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
                  00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
                  00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Port 1
                  00:1c.1 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Port 2
                  00:1c.5 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Port 6
                  00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
                  00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
                  00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
                  00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
                  00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
                  00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
                  00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller
                  00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
                  00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller
                  01:00.0 VGA compatible controller: nVidia Corporation GeForce 9500 GT (rev a1)
                  02:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller
                  04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
                  Code:
                  :/proc$ cat meminfo                                   
                  MemTotal:   2072328 kB
                  MemFree:     64432 kB
                  Buffers:     68520 kB
                  Cached:    1375560 kB
                  SwapCached:    112 kB
                  Active:    1024236 kB
                  Inactive:    835024 kB
                  HighTotal:   1179200 kB
                  HighFree:     7192 kB
                  LowTotal:    893128 kB
                  LowFree:     57240 kB
                  SwapTotal:   3028212 kB
                  SwapFree:   3023320 kB
                  Dirty:       100 kB
                  Writeback:      0 kB
                  AnonPages:   415192 kB
                  Mapped:     126808 kB
                  Slab:      94308 kB
                  SReclaimable:  70180 kB
                  SUnreclaim:   24128 kB
                  PageTables:    3380 kB
                  NFS_Unstable:    0 kB
                  Bounce:       0 kB
                  WritebackTmp:    0 kB
                  CommitLimit:  4064376 kB
                  Committed_AS:  880116 kB
                  VmallocTotal:  110584 kB
                  VmallocUsed:   45688 kB
                  VmallocChunk:  60404 kB
                  HugePages_Total:   0
                  HugePages_Free:   0
                  HugePages_Rsvd:   0
                  HugePages_Surp:   0
                  Hugepagesize:   4096 kB
                  DirectMap4k:  868352 kB
                  DirectMap4M:   49152 kB

                  Comment

                  Working...
                  X