[{"data":1,"prerenderedAt":105},["ShallowReactive",2],{"blog-post-/i3-screenshot":3},{"id":4,"title":5,"body":6,"date":92,"description":93,"draft":94,"extension":95,"image":96,"meta":97,"navigation":98,"path":99,"seo":100,"stem":101,"tags":102,"__hash__":104},"content_en/13.i3-screenshot.md","How to take a screenshot like snapping tool in i3wm",{"type":7,"value":8,"toc":89},"minimark",[9,13,16,24,27,56,59,78,85],[10,11,12],"p",{},"So it goes like this:",[10,14,15],{},"First: You should look for some screenshot tool that let you control it's behavior using command-line.",[10,17,18,19,23],{},"One good solution can be ",[20,21,22],"strong",{},"gnome-screenshot",".",[10,25,26],{},"Chances are it has already been installed if you are using an Ubuntu-based distribution like Linux Mint. If not, you can install it:",[28,29,34],"pre",{"className":30,"code":31,"language":32,"meta":33,"style":33},"language-bash shiki shiki-themes github-dark","sudo apt install gnome-screenshot\n","bash","",[35,36,37],"code",{"__ignoreMap":33},[38,39,42,46,50,53],"span",{"class":40,"line":41},"line",1,[38,43,45],{"class":44},"svObZ","sudo",[38,47,49],{"class":48},"sU2Wk"," apt",[38,51,52],{"class":48}," install",[38,54,55],{"class":48}," gnome-screenshot\n",[10,57,58],{},"After that, simply add a keybinding to your i3 configuration with your desired options:",[28,60,62],{"className":30,"code":61,"language":32,"meta":33,"style":33},"bindsym Print exec \"gnome-screenshot -ac\"\n",[35,63,64],{"__ignoreMap":33},[38,65,66,69,72,75],{"class":40,"line":41},[38,67,68],{"class":44},"bindsym",[38,70,71],{"class":48}," Print",[38,73,74],{"class":48}," exec",[38,76,77],{"class":48}," \"gnome-screenshot -ac\"\n",[10,79,80,81,84],{},"Take a look at ",[35,82,83],{},"man gnome-screeshot"," for more option.",[86,87,88],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":33,"searchDepth":90,"depth":90,"links":91},2,[],"2025-05-05T00:00:00.000Z","recreating a familiar environment for former windows users. ",false,"md","/blog-images/i3.png",{},true,"/i3-screenshot",{"title":5,"description":93},"13.i3-screenshot",[103],"linux","2cilVyfUKolEq1C8pgj8FX3OqxAc-AFNwDe8Nuhj8QI",1772192624722]