You are not logged in.

#1 2012-06-22 16:42:30

darthpenguin
Member
Registered: 2011-09-16
Posts: 113

[SOLVED] xfce Action Buttons and slimlock

Hi guys,

I am using slim and slimlock to manage sessions on my laptop. The desktop environment I most often use is xfce. I lock my screen with a key-combo mapped to slimlock. I was wondering if I can also tweak the "Lock Screen" option in the Action Buttons menu to use slimlock. Currently, clicking "Lock Screen" does nothing at all.

I appreciate your help on this.

Thanks (^_^)

Last edited by darthpenguin (2012-06-22 19:17:03)

Offline

#2 2012-06-22 16:58:04

progandy
Member
Registered: 2012-05-17
Posts: 5,263

Re: [SOLVED] xfce Action Buttons and slimlock

Hello,
XFCE calls xflock4 to lock the screen, the default script is located in /usr/bin/xflock4. To overwrite it, create an executable shellscript or a symlink to your locker as /usr/local/bin/xflock4.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2012-06-22 17:04:56

darthpenguin
Member
Registered: 2011-09-16
Posts: 113

Re: [SOLVED] xfce Action Buttons and slimlock

Whoa (0.o) cool.

Thanks. I didn't know I could override files in /usr/bin with files in /usr/local/bin. I just ran sudo cp /usr/bin/slimlock /usr/local/bin/xflock4 and now the xflock4 command invokes slimlock. Thanks.

.... um dumb question. How can I mark this [SOLVED]? thx

Last edited by darthpenguin (2012-06-22 17:07:21)

Offline

#4 2012-06-22 18:39:33

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] xfce Action Buttons and slimlock

Its just the order of directories in $PATH, /usr/local/bin is listed first so the xflock4 you have there gets matched first.

Anyways you can just edit your first post and add SOLVED to the title.

Offline

#5 2012-06-22 19:16:29

darthpenguin
Member
Registered: 2011-09-16
Posts: 113

Re: [SOLVED] xfce Action Buttons and slimlock

Oh I get it now. sweet. Linux ROX smile

Offline

#6 2012-06-22 23:02:27

ismaelvc
Member
From: México, D.F.
Registered: 2012-02-26
Posts: 136

Re: [SOLVED] xfce Action Buttons and slimlock

You are right I just noticed also lock button is broken in xfce! will do as you did wink


Laptop: LG LM70 Express                                                  Kernel: 3.14.2-1-ARCH   
CPU: Intel Pentium M processor @1.86GHz                  Hard Drive: 80G
Video: Mobility Radeon X600                                            X Driver: xf86-video-ati
Memory Size: 1.5G + zramswap: 384M + swap: 3G

Offline

Board footer

Powered by FluxBB