Talk:Xfce

From ArchWiki
Revision as of 14:29, 2 February 2017 by Jeatra (talk | contribs) (XFCE and GTK3 Theme: Further tests.)
Jump to: navigation, search

Lock screen on suspend

Xfce#Lock the screen gives an introduction to screen locking, but I can't get it to work with xfce4-power-manager on resuming from suspend. I've found little on this [1] [2] and an old bug for Xfce 4.8. [3]. Locking via Ctrl+Alt+L works as expected (slock). Can others reproduce, and if yes, should I investigate further and file a bug upstream? Perhaps this could be related to the light-locker transition (where I use xinitrc). -- Alad (talk) 10:52, 13 July 2015 (UTC)

This functionality works fine for me but I use gnome-screensaver. This might be an issue for specific screen lockers as opposed to a general Xfce issue. I notice that there is an alternative "lock screen before sleep" option under Applications -> Settings -> Session and Startup -> Advanced. Perhaps that works where the xfpm option does not? -- Chazza (talk) 11:05, 13 July 2015 (UTC)
Indeed, it works with gnome-screensaver. It even uses gnome-screensaver when I symlink slock in /usr/local/bin to xflock4 (though the shortcut and menu do respect xflock4). Looking through the source, xfpm is supposed to use xflock4 though [4], so not sure what's happening here. -- Alad (talk) 06:04, 14 July 2015 (UTC)
It's worth taking a look at what xflock4 is actually doing here - it's just a shell script. As can be seen from the first for loop, it will try to execute xscreensaver-command -lock and gnome-screensaver-command --lock in that order and it will exit. Only if neither of those can be executed will it move on to deal with xclock and slock. So xfpm's behaviour is correct here.
Edit: Whoops, misread. Yes I see the problem here, the symlink isn't being respected. Not sure why that would be the case.
Edit2: The lock screen panel action button first tries to find the program in path before executing.[5] The power manager doesn't. That's probably the source of the inconsistency. -- Chazza (talk) 08:01, 14 July 2015 (UTC)
No activity since mid July - was a decision reached on this? -- Chazza (talk) 16:34, 17 September 2015 (UTC)
I couldn't get this working outside gnome-screensaver/x-screensaver, even when putting a symbolic link directly in /usr/bin, but I'm afraid I didn't get the chance to contact upstream yet. -- Alad (talk) 11:16, 19 September 2015 (UTC)


XFCE and GTK3 Theme

My edit [6] for the section Xfce#Theming was removed without clearly explaining why, with the comment "not sure where this was copied from, but copying a theme-specific .css file to .config has no impact, in particular not to use the 'same theme colors as the rest (?) of XFCE'. cf [7]". This link does not address the same issue at all. To answer "where this was copied from", the commands comes from here: [8].

This fix enabled me to have a dark Adwita theme with dark colors in GTK3 apps, such as Firefox or the XFCE Terminal Emulator, in different Arch installations. Even though I didn't delve in the details to know how this fix work, the thing is that it works, and is needed. Maybe a better fix exists, but it's not documented on the wiki. This picture illustrates the fix: [9].

Could you, Alad, explain to me why you think it has "no impact", as it solved my issue ? -- Jeatra (talk) 13:07, 2 February 2017 (UTC)

Adwaita has light and dark variants. If you look at the file /usr/share/themes/Adwaita/gtk-3.0/gtk.css you'll see that it contains a line for importing the Adwaita dark theme resource. So by copying that css file to your home directory you're effectively forcing the dark Adwaita variant as theme files in the home directory take precedence over the global ones. So what you did does work though it's not the cleanest solution. Does this accomplish the same thing? -- Chazza (talk) 13:58, 2 February 2017 (UTC)
This does nothing on my system. However, with further tests, I found that just copying (or linking) /usr/share/themes/Adwaita/gtk-3.0/gtk.css into ~/.config/gtk-3.0/ corrects the theme. This file contains only the line @import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained-dark.css");. Why is that needed? Did I miss a configuration step (which one)?
I agree that my suggested fix is good fix as this force gtk3 applications to use the dark colors instead of the settings configured in Settings > Appearance or via lxappearance. So I'm still looking for a good one, do you have any pointers or ideas? -- Jeatra (talk) 14:28, 2 February 2017 (UTC)