Setxkbmap with keyboard shortcuts and xmodmap

I'm using Arch with Awesome WM. I have configured awesome to work with setxkbmap: I have a widget and when I click on it or when I press Alt+Shift it changes the layout.
kbdcfg = {}
kbdcfg.cmd = "setxkbmap"
kbdcfg.layout = { { "us", "" }, { "bg", "phonetic" } }
kbdcfg.current = 1 -- us is our default layout
kbdcfg.widget = wibox.widget.textbox()
kbdcfg.widget:set_markup(" <b>" .. kbdcfg.layout[kbdcfg.current][1] .. "</b> ")
kbdcfg.switch = function ()
kbdcfg.current = kbdcfg.current % #(kbdcfg.layout) + 1
local t = kbdcfg.layout[kbdcfg.current]
kbdcfg.widget:set_markup(" <b>" .. t[1] .. "</b> ")
os.execute( kbdcfg.cmd .. " " .. t[1] .. " " .. t[2])
end
-- Mouse bindings
kbdcfg.widget:buttons(
awful.util.table.join(awful.button({ }, 1, function () kbdcfg.switch() end))
However, when I'm in the `bg` layout and use some shortcut (e.g. Ctrl-C) it doesn't work and it's very annoying to constantly switch between the layouts for such a trivial task.
Also, I have disabled CapsLock (via xmodmap) and map it to another modifier key and now I have mapped CapsLock+[hjkl] to right/down/up/left and I have some other mappings. But when I switch to my other layout, these mappings are disabled, and when I reenable them (using xmodmap ~/.Xmodmap), they, of course, don't work: when I press the key `j` it prints `j` instead of `й` (how it should be). Here is my .Xmodmap:
keycode 66 = Mode_switch NoSymbol
keycode 39 = s S dollar dollar
keycode 43 = h H Left Left
keycode 44 = j J Down Down
keycode 45 = k K Up Up
keycode 46 = l L Right Right
keycode 54 = c C Caps_Lock Caps_Lock
Is there a way to solve these problems, and if so - how? Thank you!

[IMG]http://i20.photobucket.com/albums/b240/the_ataris_fan/keyboard.jpg[/IMG]

Similar Messages

  • Is there a way to move my keyboard shortcuts and preferences from CS3 to CS5?

    I just loaded CS5 and I'm starting to work with it. Big difference from CS3 and I'm finding things don't work the same at all. Anything i can do to make this seem more familiar, like using the same keyboard shortcuts and workspaces?

    Workspaces are stored as XML files in your user profile on Windows or the user library on Mac, in a subfolder called, strangely enough, workspaces.
    You may have run afoul of the new "content grabber" in the center of a frame that allows you to move the content without changing tools. Looks sort of like a dounut, or the center spot on some SLR camera focus viewfinders. You'll either love it or hate it, and it can be switched on or off in the View menu.

  • XFCE sometimes forgets keyboard shortcut and layouts

    Hello,
    I have been using XFCE since gnome3. However, I have the problem with keyboard applet on my desktop (x86-64). I am using us and cz keyboards and switching with keyboard shortcut "alt+shift". Unfortunatelly, the applet once or twice a week forgets this keyboard shortcut and sometimes, it forgets alternative keyboard layout (cz) too.
    Everytime it forgets it, I have to set it up again.
    I did not realized, when this problem appears. There is no relationship with restart, running some programs, etc.. It seems, it appears randomly, with no corelation to any operation I make.
    There is no problem on the second PC (laptop) with archlinux and xfce (but i686).
    I think, this problem appeared when I installed xfce for the first time (6 months ago).
    Any suggestions to solve this problem? Thanks a lot.

    ConnorBehan wrote:Unfortunately, most goodies (my own included) are not as well written as the core of Xfce and tend to lose or corrupt their config files from time to time. I have config files for some panel plugins saved in a directory I made called "/home/backups" and I have a line in my rc.local that force copies them back to ~/.config/xfce4/panel/
    unfortunately, changing owner or read only mode did not help. I will have to do it by your way, but in cron, because it happens during normal work suddenly and I restart the PC once a week.

  • Keynote problems with keyboard shortcuts

    Is anyone having problems with keyboard shortcuts not working with Keynote?  Had this problem (and a host of others) since the upgrade to Mavericks and the latest Keynote.

    Hello,
    I can replicate all by problem number 1. Once the PDF loads, I can use the arrow keys to scroll up/down. All of the other problems you mentioned haven't been implemented.
    You're certainly welcome to send feedback to Apple, though!
    -Ryan

  • CS3 standardizing keyboard shortcuts and other prefs ??

    Hello. I have 30+ computers that are running Indesign CS3. Instead of going around to each one and setting all keyboard shortcuts and things like default stroke weight and also prefs. like, Edit > Preferences > Advanced Type and the Small cap setting as well as others. I would like them all to start with my sites default prefs.
    Where are these prefs stored. I know the keyboard shortcuts are in the Indesign Shortcut Sets folder, where are all the Edit > Preferences things stored?
    If I set one to the way I want it and than copy these files to all computers will this fix my problem?
    What are the files, how should I accomplish this?
    thanks

    Preferences for CS3 are saved in two files in the user profile. The first is InDesign Defaults, under \Documents and Settings\[username]\Application Data\Adobe\InDesign\Version 5.0 and the second is InDesign Saved Data under \Documents and Settings\[username]\Local Settings\Application Data\Adobe\InDesign\Version 5.0\Caches (these are the XP locations. paths are slightly different for Vista) These are hidden files.
    The documentation says that it is not recommended to copy these files from one machine to another, and that it is recommended that you script it instead, but I've only found one user who's been able to do that, and since the script was written for a major client he hasn't been willing or able to share it with the world. I've been copying and pasting these files onto multiple machines at my school for years without any trouble, but, if there are differences in configuration from machine to machine you could cause some instabilities. Set a restore point and try it.
    Unless you have a system freeze program in place, however, this is largely an exercise in futility. Preferences, as noted, are user-specific and changeable, and get written each time the application closes. The best you'll get is a common starting point.
    Peter

  • Problem with keyboard shortcut for font size in CC photoshop. The incriments sometimes work, i.e it goes 1 points at the time, but sometimes it goes 10 or even 20 points at the time. It seems to be very random. Any thoughts?

    Problem with keyboard shortcut for font size in CC photoshop. The incriments sometimes work, i.e it goes 1 points at the time, but sometimes it goes 10 or even 20 points at the time. It seems to be very random. Any thought

    You should ask in Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • HT201236 how do you make a bullet with keyboard shortcuts?

    how do you make a bullet with keyboard shortcuts?

    According to this https://discussions.apple.com/thread/1381905?start=0&tstart=0 Option 8 will insert a bullet.

  • Keyboard shortcuts and tabs with get info box

    I'm having several problems with the new get info box - and regret that I can no longer bring up the old version with the shift/right-click/get-info command.
    1) No keyboard shortcut to advance from one track to the next, from inside the Get Info box. This used to be handled with Alt-N or Alt-P for Next and Previous. Now it seems to require mouse click on the error.
    2) When tabbing through fields, it skips fields toward the bottom (album artist)
    3) For works with the same title (most of my library is classical), I've tended to organize them by adding an extra space at the end of the Album line for the 2nd work with that title, or an extra two spaces for the 3rd work with that same title. This way they sort as distinct albums, since most works have multiple tracks. With the new Get Info, if I enter that extra space on the field in the box, it cuts it off when clicking ok. But if I just F2 the field on itunes list view, I can add it with no problem. This is a pain because I have to do it one track at a time, can't do it for multiple tracks at once. 

    The functions printed in small letters on those keys are accessed by the fn key.
    The following work on my MBP (albeit using Word 2008, but IIRC the same shortcuts worked in Word 2004):
    Jump to start of document = Command-Fn-LeftArrow (aka Command-Home)
    Jump to end of document = Command-Fn-RightArrow (aka Command-End)
    Likewise,
    Jump to start of line = Fn-LeftArrow
    Jump to end of line = Fn-RightArrow
    Page Up = Fn-UpArrow
    Page Down = Fn-DownArrow
    In this one (exceedingly rare) instance, Niel is incorrect.

  • Toggle Play and Resume System Variables with Keyboard Shortcut

    Hey Folks,
    In many popular video applications (YouTube, Vimeo, Hulu, etc), the Spacebar is used to Play (and then) Pause the movie and I want my project to stay consistent with this.
    I'd like to have a single keyboard shortcut (maybe to a hidden button on a Master Slide) that,Plays or Pauses (depending on what is happening) a slide video (or the entire project really), and I want that shortcut to be the Spacebar. 
    I will be having slide videos (user clicks an Image to go to a slide video, not event video).  Playbar will be visible during this time.
    In trying to accomplish this, I see that cpCmndPause is an available System Variable.  I would assume cpCmndResume is the counterpart to that, or is cpCmndPause=0 the counterpart?
    Anyone have an idea how to accomplish this?
    Thanks,
    Tom

    Spacebar cannot be assigned as a shortcut key. probably because it will be reclaimed by browser. The toggle part is easier.
    Toggle Shape buttons - Captivate 6 - Captivate blog
    Custom Play/Pause button in Captivate - Captivate blog

  • Looking for app to quickly with keyboard shortcut (i.e. Control   R) resize photos like I can do with Irfanview in Windows

    Hello,
    I am trying to switch from Windows to OSX but must first find Mac equivalent solutions for daily tasks performed in Windows.
    1. I am looking for an app to quickly resize photos using keyboard shortcuts, i.e. Control + R, just like I can do with Irfanview in Windows.
    2. I am looking for an app which will quickly resize multiple photos like I can do with Irfanview.
    3. I am looking for another (or the same) light weight app to quickly convert and combine one or more jpgs to PDF. The windows app I am currently using is called JPEGtoPDF from www.compulsivecode.com.
    Many thanks for helping me switch to OSX!

    Photoshop Elements has the ability to sync and save photos in Adobe Revel with the use of mobile albums. Photoshop Elements is a consumer product that is not included in creative cloud. Photoshop is the professional photo editing app that is included in Creative Cloud.

  • Custom keyboard shortcuts and editing multiple layers in Flash CS4

    Hi, all -
    CS3 -> CS4 transition newb here who's getting increasingly frustrated with the new motion tweens; however, for this project, I'm working in a 3D space and require using them, so I'm dealing with this bit by painful bit. I found the tip about Split Motion, but first question: how do you apply Split Motion across several layers at the same time? I have six different tweens, and in CS3, I used to be able to shift-click or click-drag across frames and apply a command to all of them (for example, hit F5 to add frames), but Split Motion is requiring me to right-click on each and every layer. This is really laborious, and I worry about future animations that might be more complex.
    Similarly, I tend to add custom keyboard shortcuts to each of my Flash versions for commands I use frequently and don't want to right-click a menu for (such as "add motion tween") - however, I can't seem to find where to create a custom shortcut for either that, or Split Motion.
    Any and all help would be appreciated as I muddle through this. Honestly, guys, I WANT to like the new version and there's so many added features, but it's hampering my workflow so bad I want to pummel it with sticks.

    Hey there,
    I definitely hear you about Split Motion. There is an enhancement request for supporting multiple layers, and adding it as a keyboard shortcut. The first one is tricky, but the second one is not. I think there was hope that splitting motions wouldn't be necessary much (especially since you have to be careful when doing so when eases are involved), which is why the eventual need for more functionality related to split motion was realized a bit late in the schedule.
    Now regarding other operations, such as you mentioned F5 to insert frames - that and other operations (inserting certain types of property keyframes, F6, and so on) work just fine.
    You can apply a shortcut to Create Motion Tween in the custom keyboard shortcut dialog.  Not all operations in the program are available though (most context menu items aren't), which is why unfortunately why we don't see Split Motion yet.
    It might be possible to avoid Split Motion though with another workflow. What are you using the feature for?  Just curious in case I can help.
    Jen.

  • Keyboard shortcuts and Word

    I am not sure if it is OK to ask this question here, please indulge me if it isn't and tell me where to post.
    I use Word 2004 on our G4; Mr H uses it on our MBP. (we have three liscence keys with our edition so all is legal)
    Is there a keyboard shortcut to get to the beginning and the end of a document in Work using a keyboard shortcut on the MBP?
    On the G4 if we want to move from anyplace in a document to the beginning, I hit command + home and get there; to get to the end hit command + end and get there.
    On the MBP this doesn't work - the home and end keys are incorporated into the arrow keys, and the command doesn't work.
    Is there another shortcut to make this happen?
    Mrs H

    The functions printed in small letters on those keys are accessed by the fn key.
    The following work on my MBP (albeit using Word 2008, but IIRC the same shortcuts worked in Word 2004):
    Jump to start of document = Command-Fn-LeftArrow (aka Command-Home)
    Jump to end of document = Command-Fn-RightArrow (aka Command-End)
    Likewise,
    Jump to start of line = Fn-LeftArrow
    Jump to end of line = Fn-RightArrow
    Page Up = Fn-UpArrow
    Page Down = Fn-DownArrow
    In this one (exceedingly rare) instance, Niel is incorrect.

  • I've used a terminal command to change default send keyboard shortcut and now it doesn't work at all!

    My friend provided me with a Terminal command allow me to use Cmd+Enter to send an email (muscle memory from Outlook, hard to forget!)
    Command was:
    defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\\U21a9"
    Did that, and it didn't add the Cmd+Enter instruction but removed the Cmd+Shift+D instruction, so I had NO keyboard shortcut. Then Cmd+Enter started working. For a while. Now I'm back to getting the irritating error bleep sound, and having no functional keyboard shortcut for sending mail.
    Does anybody have any advice?

    Try
    defaults delete com.apple.mail NSUserKeyEquivalents
    Then, relaunch Mail.

  • Delete files with keyboard-shortcuts

    hi
    just wanted to know a few tricks or keyboard shortcuts.
    on a pc, when i deleted some files, i always pressed the del-button and then the right-arrow to select 'yes'
    on the mac it doesn't work the same. you press the cmd+backspace but when i press de right-arrow to select 'yes', it doesn't work.
    it means i have to grab the mouse again. is there some shortcut or key to completely perform this operation with the keyboard.
    thanks

    Sure there is. Select full keyboard access in System Preferences/Keyboard. You will then be able to move around all dialogue boxes (and other controls) via TAB. In addition to ENTER which selects the glowing button, SPACE selects the blue surrounded button.
    You can also disable Finder’s "Do you reall want to delete" dialogue in its preferences.
    Björn

  • Insert variable with keyboard shortcut

    The only keyboard shortcut I can find to insert a variable is CTRL-0. This colors the left side
    of the status bar and gives you the entire list of user variables with -- with "Not Applicable" as the
    highlighted choice. It appears that you have to traverse the list with the mouse pointer and
    click on the desired variable.
    This is just as cumbersome as calling up the variables pod and double clicking on the
    variable you want.
    Is there a way to define a keyboard shortcut to insert a particular variable?
    Cheers,
    JP

    I just updated to 10.0.2 and the behavior is the same.
    I can't tell you the version number I had been running because I couldn't find an "About" button.
    I thought that FM checked for updates when I installed it from a 10.0 CD. Applications typically check
    for available updates when you install and register and let you choose whether to update.
    So Adobe doesn't inform you of new FM updates either?
    I really appreciate the help I get from this forum. Even though the update installation didn't
    say I had to reboot, I'll try that and let you know whether that changes the behavior.
    I'd reboot and check right now except that I have a gazillion things open while I work on
    the client's document.
    But it's not a life-or-death situation. I may even retain my sanity while trying to figure this out...
    Thanks again,
    JP

Maybe you are looking for

  • Pass value from Java to Perl

    Anyone knows how to pass value from Java to Perl program?

  • Mac mini and mavericks

    When my Mac Mini wakes up from sleep, the monitor screen is pixellated and the computer won't respond. Has anyone experience this and do you have any suggestions for fixing it? Many thanks.

  • Sap pm business blueprints

    hi friends I have a argent requirement of sap pm business blue prints any one if have than please send me or tell me the link from i can get BBP thanx in advanced

  • 6509 conversion from CatOS to IOS

    I am interested in hearing from those who have converted from CatOS to IOS using 6500 as primarily a LAN switch with InterVLAN routing. Are there valid reasons / advantages to running IOS over CatOS? It seems to me that the CatOS is more efficient la

  • Lightroom 4 will no longer open

    my lightroom 4 will no longer open