Gentoo Archives: gentoo-user

From: Bill Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] XFCE "Set Title" hotkey
Date: Thu, 15 Jun 2017 22:15:43
Message-Id: 3d58f3a9-6df4-98c1-06e7-6b98a52cce31@iinet.net.au
In Reply to: Re: [gentoo-user] XFCE "Set Title" hotkey by Floyd Anderson
1 On 16/06/17 05:16, Floyd Anderson wrote:
2 > On Do, 15 Jun 13:54:15 +0800
3 > Bill Kenworthy <billk@×××××××××.au> wrote:
4 >> Hi,
5 >>
6 >> I am using the XFCE4 Terminal in drop down mode on an XFCE4
7 >> desktop. Something has caused the "Set Title" hotkey to be set with the
8 >> letter "o" trapping that key whenever it is pressed. Very frustrating
9 >> as "o" is a common letter :)
10 >>
11 >> I've checked everywhere I can think of so I am now looking for
12 >> ideas/suggestions where this might be set/overridden? Other systems I
13 >> have are fine so it probably something I accidentally altered.
14 >
15 > Look for the file ‘accels.scm’ in your home directory. Mine is:
16 >
17 > ${XDG_CONFIG_HOME}/xfce4/terminal/accels.scm
18 >
19 > and within that configuration change the line:
20 >
21 > (gtk_accel_path "<Actions>/terminal-window/set-title" "<Super>s")
22 >
23 > to what ever you need.
24 >
25 > Note, to completely remove/deactivate the shortcut, commenting the line
26 > doesn’t work because it falls back to the default ‘<Primary><Shift>s’.
27 > You have to set:
28 >
29 > (gtk_accel_path "<Actions>/terminal-window/set-title" "")
30 >
31 > means no shortcut at all. After editing that file and a re-login you
32 > should be done.
33 >
34 > BTW and in the case you remove the ‘Set Title’ shortcut, setting the
35 > title can be achieved in various ways:
36 >
37 > `xfce4-terminal --drop-down -T 'my new title'`
38 >
39 > or in a running terminal by using escape control sequences [1]:
40 >
41 > `echo -ne '\033]2;my new title\007'`
42 >
43 > or
44 >
45 > `printf '\e]0;%s\007' 'my new title'`
46 >
47 >
48 > [1] man page: console_codes(4)
49 >
50 >
51
52 see previous reply:
53 or hover mouse over menu item and hit backspace.
54
55 Thanks,
56 BillK