Programming :: Map Special Keys In Vim - E.g. Ctrl+< ?

Apr 25, 2011

How to map special keys in vim, e.g. ctrl+< , ctrl+> , shift+< . I want to resize the windows in vim, ctrl+w+< is complex, I want map it to double press ctrl+< , how can I achieve it ?

View 2 Replies


ADVERTISEMENT

Programming :: Multimedia Keys On Laptop - Special Control

Jan 14, 2011

I would like to use my multimedia keys on the laptop.

As I have seen in kde, they are recognized already, very good.

But I would like to use the play-pause, ffd, rwd and stop button in a special way.

After pressing one of them , a programm or script is called, which does:

a) determine the entries ( in a list ) of assigned applications to be controlles by this mm-buttons. ( The list can be edited, I decide to add vlc, amarok, flash plugin for firefox )

b) determine, which of the applications are running actually.

c) determine, which of this applications has the focus ( means, which of them ( if all more running ) is "the active one".

d) issue its shell command, which corresponds to the keyhit ( play, pause, fwd, rwd, stop )

Now my question : Is it all possible via shell/and or x-script?

If not, i will have to code something, i suppose.

View 2 Replies View Related

Programming :: Recognizing Ctrl+c,ctrl+l,ctrl+d In C Programs?

Aug 19, 2009

i am using gcc 4.3i need to recognize ctrl+c,ctrl+l,ctrl+d in my C program without terminating the program when i get a ctrl+c...

View 1 Replies View Related

Hardware :: Enable Special Keys On Keyboard For KDE 4.xx ?

Aug 28, 2010

I am running Arch Linux with KDE 4.5. I have a Microsoft Wireless Keyboard 3000 v2.0

At the top of the keyboard are 5 extra buttons numbered 1 to 5. These are in addition to the function keys.

I ran xev to determine the keycodes generated by these buttons and nothing results. The keys do nothing in xev. How can I enable these keys to use for desktop switching?

View 1 Replies View Related

Slackware :: Make Special Keys Run Commands Without X?

Jun 6, 2010

I'm installing Slackware 13.1 on a Samsung N150 netbook and am stuck trying to make the special keys do their normal functions when using a virtual terminal, that is not under X. Under X + Xfce it can be done via Menu->Settings->Keyboard->"Application Shortcuts".

In essence the question is how to make a special key (example Fn+Up to increase screen brightness) run a command in the background.

Changed title and text to make clear that the command should not run in a virtual terminal but while the display is being used for a virtual terminal, that is after Ctrl+Alt+F2 for example.

View 4 Replies View Related

OpenSUSE Hardware :: Keyboard Special Keys For Audio Not Working 11.4

May 26, 2011

I've been making some progress with my new Dell Inspiron n5110 and the OpenSUSE 11.4. After searching through the net I found some drivers to get my laptop going. Now I'm facing the following problem: I want to adjust the audio volume using a special key combination on my laptop(fn+F11 to rise, fn+F12 to lower, and another key that works as mute). Although the sound itself works fine, when I use these keys the have no effect on the volume. It stays exactly the same. Some I ask myself are the drivers for the sound card installed? In "Playback Devices" there are two devices: Internal audio analog stereo(which is the one that is working) and GF108 High Definition Audio Controller Digital Stereo(HDMI). The lsusb provides:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 8086:0189 Intel Corp.
Bus 001 Device 004: ID 1bcf:2880 Sunplus Innovation Technology Inc.
Bus 002 Device 003: ID 0bda:0138 Realtek Semiconductor Corp.
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

So I searched for some Realtek drivers and came up with nothing. If you have any idea on how to get my audio running or how to make the special keys working, please let me know!

View 5 Replies View Related

General :: Ctrl-Alt-Fn Keys Don't Work In Vmware / Sort It?

Dec 12, 2010

I am using windows XP as my host machine and vmware workstation 6 to install and run RHEL 5. I have set the inittab to runlevel 5. While i am in gnome, i tried pressing

Ctrl-Alt-F3 and nothing happens. I searched the net and found that i should do this

Ctrl-Alt-Shift-F3. It worked and kinda throwed me to shell mode. When i issued runlevel command it showed me

N 5

Now when i tried to go back to gnome by pressing

Ctrl-Alt-Shift-F5 it didnt work !! i tried all other combinations

Ctrl-Alt-Shift-(F1-F5) but no response.

View 5 Replies View Related

Software :: Change Bash Shortcut Keys Such As Ctrl-C?

Jul 5, 2010

I*am using Kubuntu 10.04. I would like to change some of the standard shortcut keys for bash (terminal).

I want:

Ctrl-C to copy the selected text to the clipboard.
Ctrl-V to paste from the clipboard into the terminal.
Ctrl-Z to undo.
Ctrl-Shift-C (or even better, Super-C) to terminate the command.
Ctrl-Shift-Z (or Super-Z) to be the background command.
I*don't even know what Ctrl-V did before, some I*won't worry about remapping it.

EDIT:*I*have no idea what is putting the * char after each "I". Maybe this is a non-breaking space?

View 14 Replies View Related

Ubuntu :: Rotate Desktop Workspaces In This Way Holding Down Ctrl-Alt Keys?

Jun 15, 2011

NOTE: compizconfig manager is not suitable for ubuntu 11.04 with unity,works fine with 9.10 and 10.10.

Ubuntu enables "Desktop Wall" by default. By holding Ctrl-Alt keys and pressing the left-arrow or right-arrow key each time, it slides through desktop workspaces horizontally for you to choose one to work on. Alternatively, you can change this to a "rotate cube" effect. Go To System > Preferences > CompizConfig Settings Manager.

Select "Desktop" from the left panel.
Tick "Rotate Cube".
Select "Enable Desktop Cube" as this plugin is required by "Rotate Cube".
Select "Disable Desktop Wall".

Immediately you can rotate your desktop workspaces in this way holding down Ctrl-Alt keys, EITHER press the left-arrow or right-arrow key OR left-click the mouse and drag it to left or right.

if there is no compiz manager in your system,download it.. type :sudo apt-get install compizconfig-settings-manager ..

View 9 Replies View Related

OpenSUSE Hardware :: Logitech Wireless Keyboard And Shift And Ctrl Keys

Mar 2, 2011

So Ive had this issue off and on for a while now, but have never really looked to see if others have had it or how I can fix it. Essentially the problem is that kde seems to randomly decide that I am holding down the shift or ctrl key.Im using a logitech cordless desktop s510, running openSUSE 11.3 x86_64. Ive had this problem on and off using a couple of different logitech keyboards. The most often time when it happens with the shift key is when im coding, and the control key when Im running a keyboard shortcut.

I can usually fix the issue by holding down the key that kde thinks is pressed for like 5-10 seconds and releasing, however sometimes I have to unplug and then replug in the usb adapter for kde to get things right. This doesnt happen if im running a non-graphical terminal (thouhg I cant say whether it happens in gnome as I dont have gnome installed) so I am thinking its related to kde. The keyboard can be plugged into other computers and they dont act the same way.

This gets esspecially annoying when Im coding (because of all the symbols) and generally when the issue occurs. I think it may have something to do with the key being pressed for over a certain length.

View 7 Replies View Related

Ubuntu :: Keys Tab / Caps / Shift / Ctrl / Alt / Super Stop Working.

Oct 16, 2010

I'm running Kubuntu 10.10, with KDE 4.5.2, what I've noticed is every so often my Tab, Caps, Shift, Ctrl, Alt, Super keys stop working. I'd been running Ubuntu 10.04 with Gnome and hadn't ever come across this issue. I'm not sure if this is related to KDE 4.5.2 or is possibly because I updated to 10.10 and would also occur on a Gnome environment.If I switch to my virtual machine (VMWare Workstation 7.1.2 build-301548 which I was able to get working on 10.10 using URL.... the keys work within that but if I switch back to my host desktop they stop working.To fix it I've found logging out or unplugging the keyboard and plugging it into a different USB port fixes it.

View 1 Replies View Related

Ubuntu :: Map Ctrl+W In Hebrew Layout(which Is Actually A Ctrl+') To Be A Ctrl+w?

Jan 5, 2010

I have 3 layouts: USA, Russian and Hebrew. In Hebrew the W key is mapped to apostrophe, so Ctrl+W in Hebrew layout doesn't close tabs in Firefox. There is no workaround for it as I see by now, so I am trying to get it work this way:I want to map Ctrl+W in Hebrew layout(which is actually a Ctrl+') to be a Ctrl+w. Here is what I got from xmodmap:Code:$ xmodmap -pke | grep 25keycode 25 = w W Cyrillic_tse Cyrillic_TSE apostrophe WAs you can see, there are pairs for each layout, each pair tells what happens without and with the Shift key pressed.

View 2 Replies View Related

General :: Disable Ctrl+C, Ctrl+V, Ctrl+X In Rdesktop?

Dec 27, 2010

I am doing a project on rdesktop. My aim is to setup a write/copy protected session. I have made rdesktop connection between two Linux machines using Xrdp.Next I want to disable the ctrl+x,ctrl+v keys and the cut and copy option in mouse right click at client side

View 1 Replies View Related

Programming :: Remove Special Characters From String

Jan 30, 2011

I am reading strings from a file using readline() function,the file contains some strings which has only special characters, I need to avoid the strings which has only special characters, the special characters are not similar. How to do it in python.??

View 2 Replies View Related

Programming :: Push All Special Varible Before Calling A Fucnction?

Nov 4, 2010

I have a code like this:

Code:
open (INPUT,"<file"){
while (<INPUT>){.

[code]....

View 1 Replies View Related

Programming :: Change A Line In A File Code - Sed Special Characters Bash Script

Jan 26, 2011

I'm having issue when trying to change a line in a file

[Code]....

View 1 Replies View Related

General :: Vim:ctrl+v Command To Select Some Data.But When Push Ctrl+v.It Doesn't Work?

Nov 28, 2010

" Mark the start of the text with "v", "V" or CTRL-V. The character under the cursor will be used as the start.""With CTRL-V (blockwise Visual mode) the highlighted text will be a rectanglebetween start position and the cursor."I can mark the start with "v" or "V".But it doesn't work when I push ctrl+V.

View 14 Replies View Related

Ubuntu :: Keyboard - Can Not Copy/paste Ctrl+C Or Ctrl+p From One Folder To Another With Mouse

Sep 5, 2010

I can not copy/paste ctrl+C or ctrl+p from one folder to another with the mouse. i was trying to move an item to another folder.

I looked in the keyboard short cut and it was not there. i tried to add it and it put it in custom as disabled and I could not enable it.

View 2 Replies View Related

CentOS 5 :: Why 'ctrl+a, K' Nor 'ctrl+a Kill' Doesn't Work For Screen Windows?

Oct 3, 2010

anyone has a clue why 'ctrl+a, k' nor 'ctrl+a, :kill' doesn't work for killing one of screen windows? Other screen's commands invoked with 'ctrl+a'seem to work.

View 3 Replies View Related

Ubuntu :: Freezes Mouse After Changing A Tab (with Ctrl+tab, Alt+#) Or Closing It (ctrl+w)?

Nov 11, 2010

I just installed Ubuntu 10.10 x64 and already am really annoyed by Firefox, which freezes my mouse after changing a tab (with ctrl+tab, alt+#) or closing it (ctrl+w). After about one second, i can continue working as usual. Changing Tabs by just clicking on one does not freeze anything...Maybe some of you would think now if I am crazy because of complaining about such a little thing, but it is really annoying if you are used to work fluently with ff.Edit:I today noticed, that not only shortcuts in firefox, but all Hotkeys freeze my mouse for a second. For examle ctrl+c, ctrl+v, super+e or anything else.Do you have any Idea what causes this behaviour? Reinstalling ubuntu didn't change anything

View 4 Replies View Related

Programming :: BASH: Detecting CTRL+C Being Pressed?

Jan 28, 2010

I am working on a script and I want it to detect if CTRL+C is pressed at any time during the script and have it not Break the script and display a message stating to use CTRL+Z instead. How can I do that?

View 9 Replies View Related

Programming :: Use CTRL+D Signal In Bash Script?

Jan 15, 2010

I am writing a bash script where I need standard Input should be saved in a file and should be terminated by passing CTRL+D signal. Any clue how can I do that in bash script.

e.g.
Enter one line at a time
Press CTRL+D to finish

View 1 Replies View Related

Programming :: Enable CTRL+C (to Terminate The Program) While Still Have RAW Mode?

Jun 2, 2010

changed terminal into raw modecfmakeraw(&termios);After that terminal no more captures CTRL+CIs there a way to enable CTRL+C (to terminate the program) while still have RAW mode?

View 3 Replies View Related

Programming :: Ignore / Disable Ctrl-C (SIGINT) In Shell Script

Jan 6, 2010

How do I write my trap statement in shell script to ignore SIGINT.Reason being is that the script is used to update records in database. I want to avoid inconsistency in database when user presses Ctrl-C .The result should be

1. Totally ignore Ctrl-C (SIGINT) when user presses Ctrl-C
2. Continue with the rest of processing

View 3 Replies View Related

OpenSUSE :: Ctrl+z And Ctrl+c Do Not Work Without A Third Keystroke

Feb 3, 2010

I just spent a few days ripping out all the broken/buggy apps that are in the opensuse 11.2 official repos so I can finally get working software(openoffice, thunderbird, wine, eclipse, rubygems, rails, and a few others required getting the "official" versions from their respective websites to avoid strange behavior and outright broken functionality).

All of which makes updating more annoying and time-consuming. Why are opensuse packages so different anyway? Anyway, the last thing that I have noticed to fix is Konsole. For some really bizarre reason ctrl+z and ctrl+c do not work without a third keystroke: enter.Maybe this is something new with the KDE team, since they seem bent on making simple things that already work more complex, but given my experience with crappy packages in the suse repos, I am thinking this is the problem. I have looked over all the config settings that I can find and nothing fixes this affront to productivity.

View 1 Replies View Related

OpenSUSE :: Konqueror Can't Cut'n'paste With Ctrl C, Ctrl V?

Mar 7, 2010

I've been using Kaggregator in KDE-PIM, which uses Konqueror as the browserto go to links from Kaggregator.Unfortunately, Konqueror no longer seems tobe able to Copy highlighted material with Ctrl C, the way we've done it forever.Is this a setting I've missed? Or is this a new "feature" in Konqueror?

View 2 Replies View Related

Programming :: Special Expression `-l STRING' For "test" Command?

Apr 21, 2010

I have searched and searched in regards to this documented 'special expression '-l STRING' for the 'test' command, and to no avail, have I found out why it does not work on my system.

The example always given is:
Code:
test -l abc -gt 1 && echo yes
And the returned result is:
Code:
bash: test: -l: unary operator expected
The documention is usually as follows:
Numeric tests

Numeric relationals. The arguments must be entirely numeric (possibly negative), or the special expression `-l STRING', which evaluates to the length of STRING. Then examples are given, including the one I provided above. Does anyone else have this issue of getting an error when trying this special expression of 'l STRING' ???

View 4 Replies View Related

Programming :: If Statement Pattern Search / End Of Pattern Special Character?

Apr 29, 2010

I have to enhance the behaviour of a backup script written in perl. I don't need to change it, what I need to do is to create a bash script that does some checks like file name and file size, execute the backup script then check if the backup files match the original files.Here's how I try to do it:

- read the files from the original files folder
- store them in an array
- search in the array the files that have a specific file extension
- store the file names that match the search pattern (I know the backup script skips some files so I can hardcode the search pattern)
- run the backup script
- read the files from the backup folder
- store them in an array
- compare the original files name and size stored in an array with those from the backup folder
- send a report email

View 3 Replies View Related

Programming :: Control/Meta Keys - How Do They Work?

Mar 28, 2011

I would like in depth knowledge of how these keys work. If I were to want to use these keys for my own application how would I program them?

View 1 Replies View Related

Ubuntu Servers :: Writing Init Script - Signals To Kill The Process (Ctrl-C) From A Bash Script And Exit Dtach (Ctrl-`)

Dec 5, 2010

I'm trying to write a init.d script to daemonise a sagemath notebook server. Here's what I've done so far, I've copied /etc/init.d/single for the structure, and tried to use dtach to provide a handle to access the process. However, my main problem is issuing the signals to kill the process (Ctrl-C) from a bash script and exit dtach (Ctrl-`)

[Code]...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved