Using `setxkbmap` to swap esc, but not working consistently The 2019 Stack Overflow Developer...

ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?

Wall plug outlet change

Did the new image of black hole confirm the general theory of relativity?

Can a 1st-level character have an ability score above 18?

How should I replace vector<uint8_t>::const_iterator in an API?

I could not break this equation. Please help me

Problems with Ubuntu mount /tmp

What can I do if neighbor is blocking my solar panels intentionally?

does high air pressure throw off wheel balance?

Is this wall load bearing? Blueprints and photos attached

Wolves and sheep

Are my PIs rude or am I just being too sensitive?

Match Roman Numerals

Python - Fishing Simulator

Change bounding box of math glyphs in LuaTeX

Didn't get enough time to take a Coding Test - what to do now?

Relations between two reciprocal partial derivatives?

Take groceries in checked luggage

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

High Q peak in frequency response means what in time domain?

Working through the single responsibility principle (SRP) in Python when calls are expensive

How can I protect witches in combat who wear limited clothing?

What are these Gizmos at Izaña Atmospheric Research Center in Spain?

Simulating Exploding Dice



Using `setxkbmap` to swap esc, but not working consistently



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election ResultsUse setxkbmap to swap the Left Shift and Left ControlTrying to set keyboard layout using Xorg configuration but it's not workingxrdp: Super_L not workingScript working on Mac but not UbuntuHow remap my CapsLock key to work as if it was a Return key using setxkbmap?change keyboard layoutHow to change keyboard settings of the active user using udev and setxkbmap?setxkbmap: swap layout on releaseRight alt not workingmenu working, but not with |bash command





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







0















I currently have the following line in my ~/.bashrc to swap caps lock and esc: /usr/bin/setkbmap -option "caps:swapescape". Sometimes, when I boot up my computer, it works flawlessly. Other times caps lock still works as caps lock and esc still works as esc.



What might be going on here? Is this line reverting the mapping every time I boot up, so it will alternate working and not working?



Thank you! Please let me know if you have a better alternative. I'm running Debian (Pop!_os).










share|improve this question







New contributor




Ben DalFavero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    I currently have the following line in my ~/.bashrc to swap caps lock and esc: /usr/bin/setkbmap -option "caps:swapescape". Sometimes, when I boot up my computer, it works flawlessly. Other times caps lock still works as caps lock and esc still works as esc.



    What might be going on here? Is this line reverting the mapping every time I boot up, so it will alternate working and not working?



    Thank you! Please let me know if you have a better alternative. I'm running Debian (Pop!_os).










    share|improve this question







    New contributor




    Ben DalFavero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I currently have the following line in my ~/.bashrc to swap caps lock and esc: /usr/bin/setkbmap -option "caps:swapescape". Sometimes, when I boot up my computer, it works flawlessly. Other times caps lock still works as caps lock and esc still works as esc.



      What might be going on here? Is this line reverting the mapping every time I boot up, so it will alternate working and not working?



      Thank you! Please let me know if you have a better alternative. I'm running Debian (Pop!_os).










      share|improve this question







      New contributor




      Ben DalFavero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I currently have the following line in my ~/.bashrc to swap caps lock and esc: /usr/bin/setkbmap -option "caps:swapescape". Sometimes, when I boot up my computer, it works flawlessly. Other times caps lock still works as caps lock and esc still works as esc.



      What might be going on here? Is this line reverting the mapping every time I boot up, so it will alternate working and not working?



      Thank you! Please let me know if you have a better alternative. I'm running Debian (Pop!_os).







      bash keyboard-layout






      share|improve this question







      New contributor




      Ben DalFavero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Ben DalFavero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Ben DalFavero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 33 mins ago









      Ben DalFaveroBen DalFavero

      1




      1




      New contributor




      Ben DalFavero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Ben DalFavero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Ben DalFavero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          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
          });


          }
          });






          Ben DalFavero is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f512349%2fusing-setxkbmap-to-swap-esc-but-not-working-consistently%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Ben DalFavero is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Ben DalFavero is a new contributor. Be nice, and check out our Code of Conduct.













          Ben DalFavero is a new contributor. Be nice, and check out our Code of Conduct.












          Ben DalFavero is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f512349%2fusing-setxkbmap-to-swap-esc-but-not-working-consistently%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...