How to use Alt-Fn to switch into tty under awesome?

Now I use awesome WM and do not define any Alt+Fn keys for it.
Unlike metacity ( I have used that before ) or other WMs, in which Alt+Fn are defined, Ctrl+Alt+Fn must be used for changing to tty.
So I wanna use Alt+Fn instead of Ctrl+Alt+Fn. Could anyone help me? Thanks a lot!

It's possible. I did a fair amount of research, but here is how I did it.
First I use the chvt command to switch to the ttys, but it requires root access. You can give the command suid permission by:
# chmod u+s /usr/bin/chvt
Now you can switch terminal using the chvt command as regular user. To switch you have to type "chvt N" where N is from /dev/ttyN. So if you want to switch to tty1, you type: chvt 1. Pretty simple.
Now comes the next part, xbindkeys. You are going to assign the commands to the Alt+Fn keys. From the wiki here, I used the "xbindkeys -k" to assign a shortcut key by pressing Alt+F1 and got something like this:
"(Scheme function)"
m:0x8 + c:67
Alt + F1
You need to add this to the ~/.xbindkeysrc file and replace "(Scheme function)" with the appropriate command to the Fn key, such as "chvt 1" to the "Alt+F1" shortcut:
"chvt 1"
m:0x8 + c:67
Alt + F1
You can do this so on for the other shortcuts. Restart X after you're done. Have fun!
Last edited by Acecero (2009-10-25 03:08:25)

Similar Messages

  • Any setting to use alt+tab for switching adobe and other file ?

    any setting to use alt+tab for switching adobe and other file ? instead of opening a adobe file agin and agin?
    thanks.
    really hate using win8...........................

    i mean ..can adobe fild open it in a normal way like win7 did...
    so i can use alt+tab to switch task easily..

  • Can't use alt-f1 to switch to console

    I'm using gnome on my NB100 netbook. Everything is working great apart from a few small issues:
    I can't use ctrl-alt-f1 etc to switch to the console - nothing happens, and
    I can't use ctrl-alt-backspace to kill X - again, nothing happens.
    Also, when I shut down from the shutdown dialog in gnome, nothing happens. If I open up a terminal and run "sudo killall Xorg" then X dies and the machine proceeds to shutdown. I can see in the console that it hasn't started to change the runlevel until I manually kill Xorg.
    I have checked in xev just in case that Xorg wasn't recognizing the ctrl or alt keys properly, but no problems there.
    To be honest I'm stumped. Any advice would be gratefully received.
    Last edited by rezza (2009-03-11 23:08:31)

    rezza wrote:
    I'm using gnome on my NB100 netbook. Everything is working great apart from a few small issues:
    I can't use alt-f1 etc to switch to the console - nothing happens, and
    I can't use ctrl-alt-backspace to kill X - again, nothing happens.
    Also, when I shut down from the shutdown dialog in gnome, nothing happens. If I open up a terminal and run "sudo killall Xorg" then X dies and the machine proceeds to shutdown. I can see in the console that it hasn't started to change the runlevel until I manually kill Xorg.
    I have checked in xev just in case that Xorg wasn't recognizing the ctrl or alt keys properly, but no problems there.
    To be honest I'm stumped. Any advice would be gratefully received.
    Its alt+ctrl+f1

  • How to use LR6 standalone without signing into cc?

    GD this company will not give standalone customers peace and quiet. Shove the creative cloud down our throats whether we want it or not.
    I cannot launch LR6 without being signed into cc. I paid for the stand alone edition. Does anyone know the magic mojo to get the dam thing right?

    I ended here for a slightly different reason (the actual installation - for anyone interested - see below)
    Since I'm here, I can try to give your question, as I understand it, my best shot:
    - To check if your serial number "sticks", i.e. is not in trial or subscription mode: Go to the Help menu - System Info...
       then if the 2nd line in the window that opens reads: "License: Perpetual", that's all you can do, re-installing won't make a difference.
    - In that case, getting that annoying Adobe ID Sign-In message anyway (even if, like me, you don't want to do anything online, sync or otherwise):
       there isn't much else to do but close the window without signing in and confirm to quit - Yes... every bleepin' time you launch LR6
    I have not found a Preference to disable that check, even under the Lightroom mobile tab (which at least, like the Help menu, confirms you're not signed in). Maybe in a future update they'll have an option to disable that check on startup, at least after the first time (but not yet in 6.0.1, the latest one so far)
    Otherwise either cave in and make at least a dummy Adobe ID, or the only other solution: Go back to LR5, unless you need the new functions...
    It's still installed separately on my machine, and I have a pre-LR6 backup of my catalogs,  so I'll play around with it for a couple of days before deciding. It's certainly my last Adobe product.
    Now the reason I ended up here: The INSTALLER actually FORCES you to sign in with Adobe ID even with a VALID SERIAL, which is just plain bovine stuff, and the utterly unhelpful Adobe Chat employee didn't answer my question, pointed me towards Adobe Photoshop Lightroom Help | Serialize Lightroom CC trial to activate as Lightroom 6 (which still expects you to log in, no matter what you try later) and disconnected. Grrrr.
    Here's the work-around for that:
    - DISCONNECT your network connection temporarily (Turn off WiFi, unplug the ethernet cable...)
    - Launch the installer, click on the "I have purchased" half => it will complain there's no internet connection
    - But a "Connect Later" button appears => click on it => get the old serial# screen, enter serial (& if necessary re-connect, then enter prior serial to upgrade )
    - Next screen, Accept Terms, then next screen choose your install options and there you go.
    - You will of course have to get back online to validate the serial within a few days, like before, but at least you skipped the whole Adobe ID Sign-In nonsense, and not deal with the creepy "Starting with this version... share your information with Adobe how you use Lightroom... is turned on by default..."

  • How to use alt+f4?

    hello There
    i've a little problem writing the code meaning pressing alt+f4
    (F4 While Holding Alt Key)
    this is how we write alt key
    if (k.getKeyCode () == KeyEvent.VK_ALT) so how we write alt+f4 ?????
    thank you

    If you're trying to override the behavior in windows to close a window, then you can't do that.
    But to match alt+F4 you can do// assuming that k is a KeyEvent
    if (k.isAltDown() && k.getKeyCode() == KeyEvent.VK_F4) {
        // do stuff
    }

  • How to use automator to duplicate files into separate folder?

    i am running the latest version of Yosemite just to clarify.
    My question is, is it possible to use automator to automatically copy a file thats added to a folder to a separate folder?
    to clarify, i have a drive account that has all my university work stored in a folder called university, i also have a folder on my HD called university.
    When i work on something i open it from the university folder on my HD, and when im done working i have to copy the file manually into the drive folder.
    Is there any way that i can use automator to detect when a file gets saved in a folder on my hard drive and automatically copy it to my drive folder?

    Hello,
    I really don't have much of an idea, but since no one has replied yet, I'll offer this...
    I wonder if it's a matter of having to clear browser caches & reloading the page?

  • How to use one Web Dynpro DC into another Web Dynpro Dc

    Hi All,
    I am trying to learn the usage of DC but I am unable to find a basic tutorial on this topic. I found a few tutorial and few blogs too, but none of them explains topics like:
    How to call child component methods from parent component and vice versa too if possible?
    Can somebody please provide me with a basic tutorial on this topic.
    Regards
    Sid

    Hi,
    Go through the Componentization tutorials
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/bd0e0401-0801-0010-aaab-d0e1742da383 [original link is broken]
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/751d003a-0b01-0010-8996-afbaa3fd5339 [original link is broken]
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#comp
    Regards,Anilkumar

  • How to use the BD menu built into the player in Encore CS4

    I cant get Encore to create a production that responds to the player Top Menu button (Panasonic Direct Navigator table). Cyberlink, which was bundled with the burner, does this by default. Place a number of videos into the production, dont create a menu, and OK!: Press the Top Menu button and the player's built in table pops up with a list of all titles.
    In Encore, press the Top Menu button, and you get 'operation not allowed'. It appears that Encore requires a Title button action?, but opening the player table is not an option. There is no Title button on the remote; there is Top Menu and Popup Menu.
    There's got to be a simple solution. Player menu tables have been around since DVDs.
    thanks

    I'm not aware of any method to access a menu system that is only built into hardware.  My own Sony DVD does not have such a menu, and if there is none on the DVD, I get none during playback no matter which buttons I press.
    The standard method is to add your own menu if you want a menu.

  • How to use SD_SHIPMENT_PROCESS to PACK deliveries into a HU?

    We are trying to duplicate the functionality behind the "Pack" button in the shipping document (vt03n) using the SD_SHIPMENT_PROCESS function module to associate deliveries to a handling unit.  Has anyone had experience with which structure need to be filled and passed to this function module. Any source of good documentation on this SD_SHIPMENT PROCESS FM?

    Hello Martin Rainer.
    If you are experienced in packing, please check out this thread. It drives me wild.
    The specified item was not found.
    Re: SD_SHIPMENT_PROCESS Reassign HUs

  • How to use integer constants in switch

    Hello!
    I try:
    Connection.m
    #define CHANNEL_A = 0x01;
    #define CHANNEL_B = 0x02;
    #define CHANNEL_C = 0x03;
    switch (channel){
    case CHANNEL_A:
    return 0;
    case CHANNEL_B:
    return 1;
    case CHANNEL_C:
    return 2;
    default:
    return -1;
    and get: "error: syntax error before '=' token" after "case CHANNEL_A:" string
    Then, I try:
    Connection.h
    extern const int CHANNEL_A;
    extern const int CHANNEL_B;
    extern const int CHANNEL_C;
    Connection.m
    const int CHANNEL_A = 0x01;
    const int CHANNEL_B = 0x02;
    const int CHANNEL_C = 0x03;
    switch (channel){
    case CHANNEL_A:
    return 0;
    case CHANNEL_B:
    return 1;
    case CHANNEL_C:
    return 2;
    default:
    return -1;
    and get: "case label does not reduce to an integer constant" after "case CHANNEL_A:" string

    Or try an enum
    enum CHANNELS {
    CHANNEL_A = 0x01
    CHANNEL_B = 0x02
    CHANNEL_C = 0x03
    enum CHANNELS channel;
    switch(channel) {
    case CHANNEL_A:
    ... do something ...
    break;
    case CHANNEL_B:
    ... do something ...
    break;
    case CHANNEL_C:
    ... do something ...
    break;
    #defines DO NOT HAVE EQUAL SIGNS! What C book are you reading?
    #define CHANNEL_A = 0x01;
    Associates "= 0x01" with the pre-processor macro CHANNEL_A. The pre-processor will substitute "= 0x01" everywhere it sees CHANNEL_A. So when you say
    case CHANNEL_A:
    the pre-processor replaces that with
    case = 0x01:
    and that is NOT correct case syntax, hence your compiler error.
    And *const int* is not a compile time constant, or at least not one that switch/case wants to see. *const int* is a variable that you promise will not change.

  • HOW TO USE OGR2OGR  TO CONVERT DGN  INTO SHAPE FILES WITH MSLINK

    hi Friends...
    i had a requirement to convert the dgn file into shape files with its mslink and entity number. can any body give guidelines .........pls
    Rajanikanthc

    Bentley Map will do this for you.
    Open the DGN, connect to the database for the attribute
    Export->GIS Datatype,
    pick export, right click, new export
    pick directory if you have mulitple level
    pick export, right click and export

  • How to use evdre to display all the levels under the node user choose

    I used SELF,LDEP(6) in the memberset of evdre trying to display all the 6 levels from the top node of NetIncome, all the display all the level with the correct amount except the top node which is displayed in the row key, but all the cell which should be the aggregation of all it's children is blank, if I choose only self, it shows the amount with only top level. how could I all the level and the corresponding amount display?

    Hi,
    Did you try SELF,ALL ?
    Hope it works...
    regards,
    Raju

  • How to use a java class in difference project under a same workspace!

    Hi, there:
    I have a problem. I want to reuse a java class which is located in another project of the same workspace. I do not know how to set the two project setting or how to import the java class. I deeply appreciate.
    Sheng-He

    include it as a library
    open project settings goto libraries and simply add your class

  • How to use dynamic selection screen inputs in main program

    hi all,
      its a report where in it calls one dynamic selection screen( user need to enter the parameters here) after that i need to use those inputs for some check, can any buddy help how to use/ get that input parameters into main program.
    regards,
    vara..

    Hi,
    i think u have created that dynamic selection screen in seperate program and calling to ur main program.instead of that u just create that synamic selection screen program as include program and include it in ur main program.
    or u need to use set/get parameter id concept.
    rgds,
    bharat.

  • How to use the structure in the EXIT_SAPMM06E_013 function module

    Hello Experts,
    Please guide me how to use the structure defined in function modules under  table tab in the driver program for smart form to fetch the data. Please post some sample code if available.
    Best Regards,
    Sandesh.Sreyamsh

    Can you please elaborate little bit more what is the actual requirement?

Maybe you are looking for