From 2d4a32cbcc2056b0901c1e58e132b276a75a1a99 Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 17 Sep 2022 11:26:34 -0300 Subject: [PATCH] Ignoring local files --- .gitignore | 4 ++++ README.org | 6 +++++- tutorial/i3wm_screens.org | 42 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 tutorial/i3wm_screens.org diff --git a/.gitignore b/.gitignore index 92112be..b7a53e9 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,7 @@ # Undo-tree save-files *.~undo-tree +# local files + +local + diff --git a/README.org b/README.org index 6702f73..2afe415 100644 --- a/README.org +++ b/README.org @@ -15,6 +15,10 @@ opportunity to learn about computers, files, directories and programs. * [[./tutorial/move_files.org][Move or rename files]] * [[./tutorial/redirect_output.org][What exactly are input, output and standard error?]] +** Appearance, screens + +* [[./tutorial/i3wm_screens.org][~xrandr~: working with two screens in i3-wm]] + ** Manuals, documentation * [[./tutorial/manuals.org][Reading the fabulous manuals!]] @@ -57,6 +61,6 @@ opportunity to learn about computers, files, directories and programs. * [[./tutorial/sed_subsitute.org][Using 'sed' editor to substitute text]] -** Gwak +** Gawk - GNU-awk * [[./tutorial/gawk.org][GNU-awk program: a nice tool!]] diff --git a/tutorial/i3wm_screens.org b/tutorial/i3wm_screens.org new file mode 100644 index 0000000..dea81a9 --- /dev/null +++ b/tutorial/i3wm_screens.org @@ -0,0 +1,42 @@ +#+options: toc:nil num:nil + +* How to use "xrandr" to use multiple screens in i3-wm + +i3-windows manager is a really good program. Simple, powerful, quite handy. + +Sometimes you need to use multiple screens. When you are working with i3-wm there is not too much buttons or icons to push... + +So you can use the command line to solve the problem. + +** ~xrandr~ command + +~xrandr~ is a command line interface to RandR extension in GNU systems. + +From the manual: + +#+begin_quote + "used to set the size, orientation or reflection of the outputs for a screen" +#+end_quote + +Running it will allow the users to visualize the state of the outputs + +#+begin_example sh + xrandr +#+end_example + +Let's suppose that you have a computer and you put a second screen by HDMI port. +Running ~xrandr~ with the following arguments will put the output (let's call it "HDMI") to the left of the main screen of the computer ("LVDS1") and will put an automatic resolution to the new screen: + +#+begin_example sh + xrandr --output HDMI --auto --left-of LVDS1 +#+begin_example sh + +That's all! + +You are good to use the new screen in a second workspace. Check the i3-wm userguide for more information. + + +** References + +- [[https://i3wm.org/docs/userguide.html#_configuring_your_monitors][i3-wm documentation: configuring monitors]] +