Sponsored Content
Top Forums UNIX for Advanced & Expert Users xbindkeys giving wrong mapping information Post 302411119 by Narnie on Thursday 8th of April 2010 01:38:37 AM
Old 04-08-2010
[SOLVED]xbindkeys giving wrong mapping information

Hello,

I'm having a problem with xbindkeys giving the wrong mapping information, hence I can't get it work at all when trying new mappings from this machine.

From another computer, I have some definitions for xbindkeys (made with xbindkeys-config). These key codes work correctly on this computer I'm having difficulty with.

From the config file for example:

Code:
#esword_split
"~/scripts/esword_split"
#    m:0x1d + c:39
    Control+Shift+Alt+Mod2 + s

will work and run the script I have made.

However, if you run

xbindkeys -k one gets this:

Code:
"NoCommand"
    m:0x201d + c:39
    Control+Shift+Alt+Mod2 + s

Notice the to different m: values. The one obtained with xbindkeys -k is inaccurate and won't work. Hence, I can define no new keyboard commands.

In the working example above, if one comments out the m: line like this:

Code:
#esword_split
"~/scripts/esword_split"
#    m:0x1d + c:39
    Control+Shift+Alt+Mod2 + s

It breaks and won't work. Commenting out the more human readable line like this:

Code:
#esword_split
"~/scripts/esword_split"
    m:0x1d + c:39
#    Control+Shift+Alt+Mod2 + s

Allows it to work.

Sadly, nothing is reading correctly with xbindkeys -k

This is a toshiba satellite A505-S6965 laptop.

Is there any other way to more accurately obtain keyboard bindings?

Not sure to proceed from here.

Thanks,
Narnie

---------- Post updated 04-08-10 at 12:38 AM ---------- Previous update was 04-07-10 at 03:31 PM ----------

Figured out the problem.

For some reason, my keymap was set for Ireland instead of Generic 104. Don't ask me how.

After resetting to the correct one (and applying it to system), all is good and xbindkeys -k maps the correct keycodes. YEA!!!

Narnie

Last edited by Narnie; 04-08-2010 at 02:38 AM.. Reason: SOLVED
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script giving wrong results....

hi, I have this script which gives me the result... #! /usr/bin/sh set -x cd /home/managar a=1 while true do if then echo " File log.txt exists in this directory " exit 0 fi echo " File has not arrived yes..." sleep 3 let a=a+1 if then (1 Reply)
Discussion started by: mgirinath
1 Replies

2. Shell Programming and Scripting

mapping record information

hi, I have a file called a.txt which contain some information (see below), I will like to check the mapping.txt and replace/add some information into a.txt a.txt CLIENT01,AUS,AUD CLIENT03,FRC,USD CLIENT02,JPN, CLIENT05,CHA,USD mapping.txt AUS AUD CHA USD FRC EUR JPN YEN a.txt... (2 Replies)
Discussion started by: happyv
2 Replies

3. AIX

Shared memory giving wrong value

Hi , I am working on AIX 5.3 server.I have small program which stores the from database to a particaular shared memory.But while retreiving the valus from the same shared memory, i am getting wrong values. Please help..... (1 Reply)
Discussion started by: ajaysahoo
1 Replies

4. UNIX for Dummies Questions & Answers

AWK command giving wrong input

Hi all, I have a problem with qwk command. i have to check process status and for that i am using command prstat -mvL 1 1 and it gives me the entire output but when i use this command with awk like this: prstat -mvL 1 1 | awk -F" " '{print $1,$15}' to get first and 15th arguments. ... (3 Replies)
Discussion started by: usha rao
3 Replies

5. Shell Programming and Scripting

Sort command giving wrong output

Hi all, I have a problem with sort command. i have a file which looks like this: "file1 1073 java/4 1073 java/180 1073 java/170 1073 java/176 1073 java/167 1073 java/40 1073 java/33 1073 java/136 28988 java/76 28988 java/73 28988 java/48 28988 java/26" and i want to sort... (8 Replies)
Discussion started by: usha rao
8 Replies

6. Shell Programming and Scripting

tr command giving wrong output

Hi All, i have a file which have many fields delimited by ,(comma) now i have to show only few fields and not all. the sample text file looks like this: TYPE=SERVICEEVENT, TIMESTAMP=05/06/2009 11:01:40 PM, HOST=sppwa634, APPLICATION=ASComp, FUNCTION=LimitsService, SOU... (8 Replies)
Discussion started by: usha rao
8 Replies

7. Solaris

Last command displays wrong information

Hi am having Solaris10 - Sun-Fire-V890 server, the information displayed by Last command is wrong how do i get this sorted without loosing any datas.. # uptime 12:32am up 20 day(s), 33 min(s), 1 user, load average: 1.54, 1.82, 1.93 # last reboot reboot system boot Sat... (9 Replies)
Discussion started by: Sojourner
9 Replies

8. Shell Programming and Scripting

Disk Monitoring shell script giving incorrect information

Hi All, OS: Linux 86x64 bits Red Hat Linux I get the email alert for the following when Alert condition is set for 30: /dev/sda1 99M 21M 74M 22% /boot -> Below 30%(Should not get the email alert) Expected output as per E-Mail alert: /dev/sda3 20G ... (2 Replies)
Discussion started by: a1_win
2 Replies

9. Shell Programming and Scripting

Number comparison in ksh on mac with -lt is giving wrong answer

I am trying to run following script in ksh on darwin 11.4.2: freeSpace=2469606195 spaceNeeded=200 ] && echo "no space" || echo "space available" ] && echo "no space" || echo "space available" "-lt" is giving wrong answer as "no space" Whereas '<' works fine. When I change the freespace... (4 Replies)
Discussion started by: sabitha
4 Replies

10. UNIX for Dummies Questions & Answers

VxWorks RTC time giving wrong value at random times

I am seeing a scenario where in if the TIMEZONE environment variable value is set to nothing i.e. putenv "TIMEZONE=" the hardware clock is +1 to software clock.Pasted below the results displayed: -> envShow (global environment) 0: TSC_TIME_FROM_RESET=420150.971529 seconds 1:... (0 Replies)
Discussion started by: snehavb
0 Replies
VFS_CATIA(8)						    System Administration tools 					      VFS_CATIA(8)

NAME
vfs_catia - translate illegal characters in Catia filenames SYNOPSIS
vfs objects = catia DESCRIPTION
This VFS module is part of the samba(7) suite. The Catia CAD package commonly creates filenames that use characters that are illegal in CIFS filenames. The vfs_catia VFS module implements a character mapping so that these files can be shared with CIFS clients. This module is stackable. The parameter "catia:mappings" specifies the mapping on a per-character basis, see below. OPTIONS
catia:mappings = SERVER_HEX_CHAR:CLIENT_HEX_CHAR SERVER_HEX_CHAR specifies a 0x prefixed hexedecimal character code that, when included in a Samba server-side filename, will be mapped to CLIENT_HEX_CHAR for the CIFS client. The same mapping occurs in the opposite direction. Multiple character mappings are separated by a comma. EXAMPLES
Map server-side quotation-marks (") to client-side diaeresis (") on filenames in the [CAD] share: [CAD] path = /data/cad vfs objects = catia catia:mappings = 0x22:0xa8 Perform comprehensive mapping of common Catia filename characters: [CAD] path = /data/cad vfs objects = catia catia:mappings = 0x22:0xa8,0x2a:0xa4,0x2f:0xf8,0x3a:0xf7,0x3c:0xab,0x3e:0xbb,0x3f:0xbf,0x5c:0xff,0x7c:0xa6 Server-side filename to be translated (Note that the path delimiter "/" is not used here): aa:a*a?a"a<a>a|a Resulting filename, as seen by the client: aya-:-axaca"a<<a>>a|a CAVEATS
Character mapping must work in BOTH directions (server -> client and client -> server) to get unique and existing file names! A NOT working example: [CAD] path = /data/cad vfs objects = catia catia:mappings = 0x3a:0x5f Here the colon ":" is mapped to the underscore "_". Assuming a server-side filename "a:should_work", which is translated to "a_should_work" for the client. BUT the reverse mapping from client "a_should_work" to server will result in "a:should:work" - something like "file not found" will be returned. VERSION
This man page is correct for Samba versions from 3.5.0 to 4.0.6. AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. New version written by Guenter Kukkukk kukks@samba.org Samba 4.0 06/17/2014 VFS_CATIA(8)
All times are GMT -4. The time now is 03:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy