Print Screen key in i3





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







5















By default, i3 ignores the Print Screen key available in most keyboards. How can it be activated?










share|improve this question





























    5















    By default, i3 ignores the Print Screen key available in most keyboards. How can it be activated?










    share|improve this question

























      5












      5








      5








      By default, i3 ignores the Print Screen key available in most keyboards. How can it be activated?










      share|improve this question














      By default, i3 ignores the Print Screen key available in most keyboards. How can it be activated?







      i3






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 31 at 10:03









      Luís de SousaLuís de Sousa

      12619




      12619






















          1 Answer
          1






          active

          oldest

          votes


















          8














          Everything inside i3 needs to be bound and just a minimal set of keys is added/generated inside the default config. Some keys that are not letters can be represented with its keycodes or keysyms. More about this subject here:




          • i3 User’s Guide - 4.3. Keyboard bindings


          Printscreen is the Print keysym.



          I personally use gnome-screenshot to that task, since it can crop images, making life easier. Add the following lines to your .config/i3/config or any config file you are using as the i3wm main config file.



          #interactive screenshot by pressing printscreen
          bindsym Print exec gnome-screenshot -i
          #crop-area screenshot by pressing Mod + printscreen
          bindsym $mod+Print exec gnome-screenshot -a


          Some people like to use scrot. That is up to you to decide :) . Example:



          bindsym Print exec scrot $HOME/Images/`date +%Y-%m-%d_%H:%M:%S`.png





          share|improve this answer


























          • The second binding with Mod1+Print does not work, but the rest is more than enough.

            – Luís de Sousa
            Jan 31 at 14:51






          • 1





            maim has a rich feature set, including region selection

            – williamvds
            Jan 31 at 17:11











          • Good suggestion :) Will try maim at home too..

            – nwildner
            Jan 31 at 17:52











          • @LuísdeSousa Mod1 is alt, not your main mod key(Control or Winkey, whatever you have set up). Editing the answer to use main mod key. Sorry for the misinformation from my i3/config

            – nwildner
            Jan 31 at 18:07













          • @ndwildner This is not related to the $mod, there is even a sort of error sound that is played.

            – Luís de Sousa
            Jan 31 at 19:32












          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%2f497897%2fprint-screen-key-in-i3%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









          8














          Everything inside i3 needs to be bound and just a minimal set of keys is added/generated inside the default config. Some keys that are not letters can be represented with its keycodes or keysyms. More about this subject here:




          • i3 User’s Guide - 4.3. Keyboard bindings


          Printscreen is the Print keysym.



          I personally use gnome-screenshot to that task, since it can crop images, making life easier. Add the following lines to your .config/i3/config or any config file you are using as the i3wm main config file.



          #interactive screenshot by pressing printscreen
          bindsym Print exec gnome-screenshot -i
          #crop-area screenshot by pressing Mod + printscreen
          bindsym $mod+Print exec gnome-screenshot -a


          Some people like to use scrot. That is up to you to decide :) . Example:



          bindsym Print exec scrot $HOME/Images/`date +%Y-%m-%d_%H:%M:%S`.png





          share|improve this answer


























          • The second binding with Mod1+Print does not work, but the rest is more than enough.

            – Luís de Sousa
            Jan 31 at 14:51






          • 1





            maim has a rich feature set, including region selection

            – williamvds
            Jan 31 at 17:11











          • Good suggestion :) Will try maim at home too..

            – nwildner
            Jan 31 at 17:52











          • @LuísdeSousa Mod1 is alt, not your main mod key(Control or Winkey, whatever you have set up). Editing the answer to use main mod key. Sorry for the misinformation from my i3/config

            – nwildner
            Jan 31 at 18:07













          • @ndwildner This is not related to the $mod, there is even a sort of error sound that is played.

            – Luís de Sousa
            Jan 31 at 19:32
















          8














          Everything inside i3 needs to be bound and just a minimal set of keys is added/generated inside the default config. Some keys that are not letters can be represented with its keycodes or keysyms. More about this subject here:




          • i3 User’s Guide - 4.3. Keyboard bindings


          Printscreen is the Print keysym.



          I personally use gnome-screenshot to that task, since it can crop images, making life easier. Add the following lines to your .config/i3/config or any config file you are using as the i3wm main config file.



          #interactive screenshot by pressing printscreen
          bindsym Print exec gnome-screenshot -i
          #crop-area screenshot by pressing Mod + printscreen
          bindsym $mod+Print exec gnome-screenshot -a


          Some people like to use scrot. That is up to you to decide :) . Example:



          bindsym Print exec scrot $HOME/Images/`date +%Y-%m-%d_%H:%M:%S`.png





          share|improve this answer


























          • The second binding with Mod1+Print does not work, but the rest is more than enough.

            – Luís de Sousa
            Jan 31 at 14:51






          • 1





            maim has a rich feature set, including region selection

            – williamvds
            Jan 31 at 17:11











          • Good suggestion :) Will try maim at home too..

            – nwildner
            Jan 31 at 17:52











          • @LuísdeSousa Mod1 is alt, not your main mod key(Control or Winkey, whatever you have set up). Editing the answer to use main mod key. Sorry for the misinformation from my i3/config

            – nwildner
            Jan 31 at 18:07













          • @ndwildner This is not related to the $mod, there is even a sort of error sound that is played.

            – Luís de Sousa
            Jan 31 at 19:32














          8












          8








          8







          Everything inside i3 needs to be bound and just a minimal set of keys is added/generated inside the default config. Some keys that are not letters can be represented with its keycodes or keysyms. More about this subject here:




          • i3 User’s Guide - 4.3. Keyboard bindings


          Printscreen is the Print keysym.



          I personally use gnome-screenshot to that task, since it can crop images, making life easier. Add the following lines to your .config/i3/config or any config file you are using as the i3wm main config file.



          #interactive screenshot by pressing printscreen
          bindsym Print exec gnome-screenshot -i
          #crop-area screenshot by pressing Mod + printscreen
          bindsym $mod+Print exec gnome-screenshot -a


          Some people like to use scrot. That is up to you to decide :) . Example:



          bindsym Print exec scrot $HOME/Images/`date +%Y-%m-%d_%H:%M:%S`.png





          share|improve this answer















          Everything inside i3 needs to be bound and just a minimal set of keys is added/generated inside the default config. Some keys that are not letters can be represented with its keycodes or keysyms. More about this subject here:




          • i3 User’s Guide - 4.3. Keyboard bindings


          Printscreen is the Print keysym.



          I personally use gnome-screenshot to that task, since it can crop images, making life easier. Add the following lines to your .config/i3/config or any config file you are using as the i3wm main config file.



          #interactive screenshot by pressing printscreen
          bindsym Print exec gnome-screenshot -i
          #crop-area screenshot by pressing Mod + printscreen
          bindsym $mod+Print exec gnome-screenshot -a


          Some people like to use scrot. That is up to you to decide :) . Example:



          bindsym Print exec scrot $HOME/Images/`date +%Y-%m-%d_%H:%M:%S`.png






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 31 at 18:07

























          answered Jan 31 at 10:07









          nwildnernwildner

          15k34581




          15k34581













          • The second binding with Mod1+Print does not work, but the rest is more than enough.

            – Luís de Sousa
            Jan 31 at 14:51






          • 1





            maim has a rich feature set, including region selection

            – williamvds
            Jan 31 at 17:11











          • Good suggestion :) Will try maim at home too..

            – nwildner
            Jan 31 at 17:52











          • @LuísdeSousa Mod1 is alt, not your main mod key(Control or Winkey, whatever you have set up). Editing the answer to use main mod key. Sorry for the misinformation from my i3/config

            – nwildner
            Jan 31 at 18:07













          • @ndwildner This is not related to the $mod, there is even a sort of error sound that is played.

            – Luís de Sousa
            Jan 31 at 19:32



















          • The second binding with Mod1+Print does not work, but the rest is more than enough.

            – Luís de Sousa
            Jan 31 at 14:51






          • 1





            maim has a rich feature set, including region selection

            – williamvds
            Jan 31 at 17:11











          • Good suggestion :) Will try maim at home too..

            – nwildner
            Jan 31 at 17:52











          • @LuísdeSousa Mod1 is alt, not your main mod key(Control or Winkey, whatever you have set up). Editing the answer to use main mod key. Sorry for the misinformation from my i3/config

            – nwildner
            Jan 31 at 18:07













          • @ndwildner This is not related to the $mod, there is even a sort of error sound that is played.

            – Luís de Sousa
            Jan 31 at 19:32

















          The second binding with Mod1+Print does not work, but the rest is more than enough.

          – Luís de Sousa
          Jan 31 at 14:51





          The second binding with Mod1+Print does not work, but the rest is more than enough.

          – Luís de Sousa
          Jan 31 at 14:51




          1




          1





          maim has a rich feature set, including region selection

          – williamvds
          Jan 31 at 17:11





          maim has a rich feature set, including region selection

          – williamvds
          Jan 31 at 17:11













          Good suggestion :) Will try maim at home too..

          – nwildner
          Jan 31 at 17:52





          Good suggestion :) Will try maim at home too..

          – nwildner
          Jan 31 at 17:52













          @LuísdeSousa Mod1 is alt, not your main mod key(Control or Winkey, whatever you have set up). Editing the answer to use main mod key. Sorry for the misinformation from my i3/config

          – nwildner
          Jan 31 at 18:07







          @LuísdeSousa Mod1 is alt, not your main mod key(Control or Winkey, whatever you have set up). Editing the answer to use main mod key. Sorry for the misinformation from my i3/config

          – nwildner
          Jan 31 at 18:07















          @ndwildner This is not related to the $mod, there is even a sort of error sound that is played.

          – Luís de Sousa
          Jan 31 at 19:32





          @ndwildner This is not related to the $mod, there is even a sort of error sound that is played.

          – Luís de Sousa
          Jan 31 at 19:32


















          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%2f497897%2fprint-screen-key-in-i3%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

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith