Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-09-08 19:16:36

shmu26
Member
Registered: 2021-04-22
Posts: 27

color of screensaver changed

I am using Pop art squares as screensaver on Arch with Xfce 4.16.0.
The squares used to be navy blue, and now they are orange.
Can I change them back to blue? Is their color governed by Appearance/Style, or by Window Manager/Style/Theme?

EDIT: I see that it is governed by Appearance/Style. If I switch it back to Adwaita-dark, I see blue squares again.

inxi -F
System:
  Host: shmuel-arch Kernel: 5.13.13-arch1-1 x86_64 bits: 64 
  Desktop: Xfce 4.16.0 Distro: Arch Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B365M-A v: Rev X.0x 
  serial: <superuser required> UEFI: American Megatrends v: 1203 
  date: 10/10/2019 
CPU:
  Info: 8-Core model: Intel Core i7-9700 bits: 64 type: MCP cache: 
  L2: 12 MiB 
  Speed: 1027 MHz min/max: 800/4700 MHz Core speeds (MHz): 1: 1027 
  2: 800 3: 1030 4: 1044 5: 800 6: 800 7: 800 8: 800 
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] driver: i915 
  v: kernel 
  Device-2: IMC Networks XHC Camera type: USB driver: uvcvideo 
  Display: x11 server: X.org 1.20.13 driver: loaded: intel 
  unloaded: fbdev,modesetting,vesa resolution: <missing: xdpyinfo> 
  Message: Unable to show advanced data. Required tool glxinfo missing. 
Audio:
  Device-1: Intel 200 Series PCH HD Audio driver: snd_hda_intel 
  Device-2: JMTek LLC. USB PnP Audio Device type: USB 
  driver: hid-generic,snd-usb-audio,usbhid 
  Sound Server-1: ALSA v: k5.13.13-arch1-1 running: yes 
  Sound Server-2: PipeWire v: 0.3.34 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  driver: r8168 
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full 
  mac: a8:5e:45:e2:87:3c 
  Device-2: Realtek 802.11ac NIC type: USB driver: rtl8821cu 
  IF: wlan0 state: down mac: fe:de:e1:02:f1:7a 
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) 
  type: USB driver: btusb 
  Report: rfkill ID: hci0 state: up address: see --recommends 
Drives:
  Local Storage: total: 2.26 TiB used: 961.19 GiB (41.6%) 
  ID-1: /dev/sda vendor: Kingston model: SA400S37480G size: 447.13 GiB 
  ID-2: /dev/sdb vendor: Toshiba model: HDWD120 size: 1.82 TiB 
Partition:
  ID-1: / size: 38.51 GiB used: 27.89 GiB (72.4%) fs: ext4 
  dev: /dev/sda7 
  ID-2: /boot/efi size: 96 MiB used: 39.2 MiB (40.8%) fs: vfat 
  dev: /dev/sda2 
Swap:
  ID-1: swap-1 type: partition size: 9.9 GiB used: 5 MiB (0.0%) 
  dev: /dev/sda9 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 335 Uptime: 1h 24m Memory: 15.49 GiB 
  used: 8.26 GiB (53.3%) Shell: fish inxi: 3.3.06 

Last edited by shmu26 (2021-09-08 20:08:50)

Offline

#2 2021-09-08 22:14:08

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: color of screensaver changed

shmu26 wrote:

EDIT: I see that it is governed by Appearance/Style. If I switch it back to Adwaita-dark, I see blue squares again.

Yes it is. It grabs the bg (background) color of the current theme and uses that.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-09-09 01:35:15

shmu26
Member
Registered: 2021-04-22
Posts: 27

Re: color of screensaver changed

ToZ wrote:
shmu26 wrote:

EDIT: I see that it is governed by Appearance/Style. If I switch it back to Adwaita-dark, I see blue squares again.

Yes it is. It grabs the bg (background) color of the current theme and uses that.

Can I take the bg of theme A and apply it to theme B?

Offline

#4 2021-09-09 11:34:22

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: color of screensaver changed

You could, but it would change your theme highlight colour as well - which is probably what you don't want.

Here is a way to make a copy of the existing screensaver, adjust it by applying a different theme, and add it to the list of available screensavers:

  1. Make a copy of the popsquares screensaver:

    sudo cp /usr/lib/xfce4-screensaver/popsquares /usr/lib/xfce4-screensaver/shmu26.2
  2. Create a script file called /usr/lib/xfce4-screensaver/shmu26 with the following content:

    #!/bin/bash
    
    export GTK_THEME=Adwaita
    /usr/lib/xfce4-screensaver/shmu26.2

    ...and make the file executable:

    sudo chmod +x /usr/lib/xfce4-screensaver/shmu26
  3. Create the file /usr/share/applications/screensavers/xfce-shmu26.desktop with the following content:

    [Desktop Entry]
    Name=shmu26's Pop art squares
    Comment=A pop-art-ish grid of pulsing colors.
    Exec=/usr/lib/xfce4-screensaver/shmu26
    TryExec=/usr/lib/xfce4-screensaver/shmu26
    StartupNotify=false
    Terminal=false
    Type=Application
    Categories=Screensaver;
    OnlyShowIn=XFCE;
    Hidden=true

Now, in xfce4-screensaver configuration dialog, you will see another screensaver (shmu26's Pop are squares) that will run the pop art squares screensaver, but with the Adwaita theme applied to it (Adwaita's highlight/bg color is blue).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2021-09-09 17:18:20

shmu26
Member
Registered: 2021-04-22
Posts: 27

Re: color of screensaver changed

That works.
Thanks @Toz !

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 540.86 KiB (Peak: 542.14 KiB) ]