How to make xmodmap changes permanent? (reboot and resume)Reassign Ctrl and Alt keys - xmodmap 'BadValue'...

Convert Byte array into collection of items of different types

Count rotary dial pulses in a phone number (including letters)

USPS Back Room - Trespassing?

How to let other coworkers know that I don't share my coworker's political views?

Best material to absorb as much light as possible

Remove CiviCRM and Drupal links / banner on profile form

Ethical issue - how can I better document what is happening?

Who decides how to classify a novel?

Which European Languages are not Indo-European?

What does ${!#} mean in Shell scripting?

How to cut a climbing rope?

Question in discrete mathematics about group permutations

Could a 19.25mm revolver actually exist?

NIntegrate doesn't evaluate

In the 3D Zeldas, is it faster to roll or to simply walk?

Is "cool" appropriate or offensive to use in IMs?

Is the Indo-European language family made up?

Does pair production happen even when the photon is around a neutron?

Can my floppy disk still work without a shutter spring?

Can a British citizen living in France vote in both France and Britain in the European Elections?

Who is in charge of Wakanda?

Dad jokes are fun

Is there a simple example that empirical evidence is misleading?

Of strange atmospheres - the survivable but unbreathable



How to make xmodmap changes permanent? (reboot and resume)


Reassign Ctrl and Alt keys - xmodmap 'BadValue' errorHow to set an xmodmap file for the session manager (or at least SLiM) because of a broken physical keyAltGr keys don't work with Ubuntu in VirtualBoxHow to get keycodes for xmodmap?xmodmap for key combination - how to toggle the Fn behavior?Changing specific keys on Apple keyboard under Fedora 22Mapping key using xmodmap changes multiple keysxmodmap not mapping Ctrl to Super except in Ubuntu's Keyboard Shortcutsxterm and Prior key remap with xmodmapxmodmap: remapped Control_L not working for copying and pasting






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















Using xmodmap to remap meta key with the following command:



xmodmap -e 'keycode 133 = F14'


How can i make the change permanent, especially on system sleep/resume ?










share|improve this question





























    0















    Using xmodmap to remap meta key with the following command:



    xmodmap -e 'keycode 133 = F14'


    How can i make the change permanent, especially on system sleep/resume ?










    share|improve this question

























      0












      0








      0








      Using xmodmap to remap meta key with the following command:



      xmodmap -e 'keycode 133 = F14'


      How can i make the change permanent, especially on system sleep/resume ?










      share|improve this question














      Using xmodmap to remap meta key with the following command:



      xmodmap -e 'keycode 133 = F14'


      How can i make the change permanent, especially on system sleep/resume ?







      systemd keyboard-shortcuts keyboard xmodmap






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      intikaintika

      1,102411




      1,102411






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Reboot



          On the setting panel (KDE/GNOME) there is a startup section where application can be added to startup session, xmodmap can be added there



          Resume



          Xmodmap does not keep the changes after sleep/resume, here is how to set xmodmap on system resume with systemd: (non systemd user can use this)





          • Create xkeyboard resume script:



            touch /usr/lib/systemd/system-sleep/xkeyboard; chmod 755 /usr/lib/systemd/system-sleep/xkeyboard



          • Edit xkeyboard and fill it with:



              #!/bin/bash

          case $1 in
          pre)
          exit 0
          ;;
          post)
          export DISPLAY=:0
          sleep 10
          xmodmap -e 'keycode 133 = F14'
          ;;
          esac





          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f520755%2fhow-to-make-xmodmap-changes-permanent-reboot-and-resume%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Reboot



            On the setting panel (KDE/GNOME) there is a startup section where application can be added to startup session, xmodmap can be added there



            Resume



            Xmodmap does not keep the changes after sleep/resume, here is how to set xmodmap on system resume with systemd: (non systemd user can use this)





            • Create xkeyboard resume script:



              touch /usr/lib/systemd/system-sleep/xkeyboard; chmod 755 /usr/lib/systemd/system-sleep/xkeyboard



            • Edit xkeyboard and fill it with:



                #!/bin/bash

            case $1 in
            pre)
            exit 0
            ;;
            post)
            export DISPLAY=:0
            sleep 10
            xmodmap -e 'keycode 133 = F14'
            ;;
            esac





            share|improve this answer




























              0














              Reboot



              On the setting panel (KDE/GNOME) there is a startup section where application can be added to startup session, xmodmap can be added there



              Resume



              Xmodmap does not keep the changes after sleep/resume, here is how to set xmodmap on system resume with systemd: (non systemd user can use this)





              • Create xkeyboard resume script:



                touch /usr/lib/systemd/system-sleep/xkeyboard; chmod 755 /usr/lib/systemd/system-sleep/xkeyboard



              • Edit xkeyboard and fill it with:



                  #!/bin/bash

              case $1 in
              pre)
              exit 0
              ;;
              post)
              export DISPLAY=:0
              sleep 10
              xmodmap -e 'keycode 133 = F14'
              ;;
              esac





              share|improve this answer


























                0












                0








                0







                Reboot



                On the setting panel (KDE/GNOME) there is a startup section where application can be added to startup session, xmodmap can be added there



                Resume



                Xmodmap does not keep the changes after sleep/resume, here is how to set xmodmap on system resume with systemd: (non systemd user can use this)





                • Create xkeyboard resume script:



                  touch /usr/lib/systemd/system-sleep/xkeyboard; chmod 755 /usr/lib/systemd/system-sleep/xkeyboard



                • Edit xkeyboard and fill it with:



                    #!/bin/bash

                case $1 in
                pre)
                exit 0
                ;;
                post)
                export DISPLAY=:0
                sleep 10
                xmodmap -e 'keycode 133 = F14'
                ;;
                esac





                share|improve this answer













                Reboot



                On the setting panel (KDE/GNOME) there is a startup section where application can be added to startup session, xmodmap can be added there



                Resume



                Xmodmap does not keep the changes after sleep/resume, here is how to set xmodmap on system resume with systemd: (non systemd user can use this)





                • Create xkeyboard resume script:



                  touch /usr/lib/systemd/system-sleep/xkeyboard; chmod 755 /usr/lib/systemd/system-sleep/xkeyboard



                • Edit xkeyboard and fill it with:



                    #!/bin/bash

                case $1 in
                pre)
                exit 0
                ;;
                post)
                export DISPLAY=:0
                sleep 10
                xmodmap -e 'keycode 133 = F14'
                ;;
                esac






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                intikaintika

                1,102411




                1,102411






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f520755%2fhow-to-make-xmodmap-changes-permanent-reboot-and-resume%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

                    The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

                    Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...