Difference between revisions of "Talk:Xfce"

From ArchWiki
Jump to: navigation, search
(Lock screen on suspend: re)
(remove closed discussions)
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Multiple modifiers section ==
 
  
Here's a little tidbit I found that may be worth adding to the documentation (although I don't know where it would best fit in):
 
: The setting for easy_click in xfwm4.xml is the name of the modifier key.  But what if you want to use multiple modifiers?  I want Ctrl+Alt to be the easy_click modifier.  After reading through the source to see how it parsed the setting, I found that I could get Ctrl+Alt to work by using this line in the config file:
 
<property name="easy_click" type="string" value="Ctrl&amp;gt;&amp;lt;Alt"/>
 
:* After reading the XML file, it will have the modifier string as "Ctrl&gt;&lt;Alt".
 
:* When xfwm4 formats that as a modifier (by adding angle brackets around it), it becomes "&lt;Ctrl&gt;&lt;Alt&gt;".
 
:* Gtk parses the pair of modifiers correctly and it works as expected.
 
[[User:TheAmigo|TheAmigo]] ([[User talk:TheAmigo|talk]]) 18:59, 8 June 2015 (UTC)
 
 
:How about creating a subsection in [[Xfce#Tips & Tricks]] for it, perhaps titled ''Using multiple modifiers'' or something along those lines? -- [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 07:30, 9 June 2015 (UTC)
 
 
:: <s> -1 from me for split pages. Reason:
 
#From my experience, such "Tips & Tricks" pages is more likely become out of date and no one care.
 
#It is hard for translation team to follow page split(merge).
 
--[[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 23:44, 11 June 2015 (UTC)</s>
 
 
:::I'm a tad confused by your response, Fengchao. Are you saying that articles should not have Tips and tricks sections? They are mentioned in [[Help:Style#"Tips and tricks" sections]] and the OP's suggestion seems appropriate for this. -- [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 07:41, 12 June 2015 (UTC)
 
 
::::I think this is just a simple misunderstanding: this discussion is not about splitting the Tips and tricks section :)
 
::::I'm +1 for adding the multiple modifiers trick under [[Xfce#Tips and tricks]] by the way.
 
::::— [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 02:22, 13 June 2015 (UTC)
 
::::: Sorry, I thought you want to create a new page. -- [[User:Fengchao|Fengchao]] 09:38, 14 June 2015‎
 
 
::::::I experimented with the OP's suggestion and found this can be simplified with ''xfconf-query''. For instance, to set Ctrl-Alt as the modifiers, you can use {{ic|xfconf-query -c xfwm4 -p /general/easy_click -n -t string -s "Ctrl><Alt"}}. -- [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 16:31, 17 September 2015 (UTC)
 
 
== 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 [https://bbs.archlinux.org/viewtopic.php?id=180985] [https://www.reddit.com/r/archlinux/comments/2eyt80/xfce_slock_not_locking_screen_when_suspending/] and an old bug for Xfce 4.8. [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738124]. Locking via {{ic|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]]). -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 10:52, 13 July 2015 (UTC)
 
: This functionality works fine for me but I use {{Pkg|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? -- [[User:Chazza|Chazza]] ([[User talk: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 [http://git.xfce.org/xfce/xfce4-power-manager/tree/common/xfpm-common.c#n58], so not sure what's happening here. -- [[User:Alad|Alad]] ([[User talk: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 {{ic|xscreensaver-command -lock}} and {{ic|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.[http://git.xfce.org/xfce/xfce4-panel/tree/plugins/actions/actions.c#n868] The power manager doesn't. That's probably the source of the inconsistency. -- [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 08:01, 14 July 2015 (UTC)
 
 
::::No activity since mid July - was a decision reached on this? -- [[User:Chazza|Chazza]] ([[User talk:Chazza|talk]]) 16:34, 17 September 2015 (UTC)
 

Latest revision as of 15:08, 14 July 2017