Update X.md

This commit is contained in:
mayfrost 2018-10-16 22:25:44 +00:00 committed by GitHub
parent c962e7ff5e
commit 73d3b5f6d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

30
X.md
View File

@ -1,14 +1,21 @@
# X # X
Set xorg and a desktop environment fast. Set xorg and a desktop environment fast.
1. [NO DE](#no-de)
2. [RATPOISON](#ratpoison)
3. [XBINDKEYS](#xbindkeys)
4. [TERMINAL EMULATOR](terminal-emulator)
5. [SCREEN TEARING](#xreen-tearing)
## NO DE ## NO DE
To use a window manager without any desktop environment, or even a login manager, you can just install the applications mentioned here. To use a window manager without any desktop environment, or even a login manager, you can just install the applications mentioned here.
After that you login and simply type: After that you login and simply type:
`start` `startx`
whenever you want to start X. whenever you want to start X.
Next is an example _".xinitrc"_ file: Next is an example _".xinitrc"_ file:
``` ```
# load your preferred terminal settings # load your preferred terminal settings
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources [[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
@ -69,7 +76,7 @@ Productive, automated, scriptable, and minimal, Ratpoison is a strict tiling win
`Ctrl-t + Q` `Ctrl-t + Q`
The custom _".ratpoisonrc"_ used here can be customized to your need The custom _".ratpoisonrc"_ used here can be customized to your needs:
``` ```
# text editor # text editor
bind e exec gjots2 bind e exec gjots2
@ -135,17 +142,16 @@ set border 0
Custom keys can be added with the Xbindkeys program. Custom keys can be added with the Xbindkeys program.
With the help of the default xev program you can check the keys you want: With the help of the default xev program you can check the keys you want:
* Start the program and type the key you want to see its information * Start the program and type the key you want to see its information
`xev > keys.txt` `xev > keys.txt`
* Look for the line that says * Look for the line that says
`keycode KEY_NUMBER (keysym INGORE_THIS, KEY_NAME)` `keycode KEY_NUMBER (keysym INGORE_THIS, KEY_NAME)`
* Now on xbindkeysrc you'll be adding the information for each bind you want: * Now on _".xbindkeysrc"_ add the information for each bind:
``` ```
"WHAT_YOU_WANT_HERE_GOES_HERE" "WHAT_YOU_WANT_HERE_GOES_HERE"
m:0x0 + c:KEY_NUMBER m:0x0 + c:KEY_NUMBER
KEY_NAME KEY_NAME
``` ```
In the example below we'll have the modified keys: In the example below we'll have the modified keys:
* The "windows" key switch windows using dmenu pre-installed. * The "windows" key switch windows using dmenu pre-installed.
* The "menu" key brings an application launcher you type names into using dmenu. * The "menu" key brings an application launcher you type names into using dmenu.
@ -198,7 +204,7 @@ keystate_scrolllock= enable
## TERMINAL EMULATOR ## TERMINAL EMULATOR
To tweak the theme of your terminal emulator you need to tweak the _".Xresources"_ file. Each time you make changes run To tweak the theme of your terminal emulator you need to tweak the _".Xresources"_ file. Each time you make changes run:
`xrdb -merge` `xrdb -merge`
Next is an example _".Xresources"_ file: Next is an example _".Xresources"_ file:
@ -256,7 +262,7 @@ Section "Device"
EndSection EndSection
``` ```
Another way to add changes is in the _"/etc/X11/xorg.conf"_ file: * Another way to add changes is in the _"/etc/X11/xorg.conf"_ file:
``` ```
Section "Device" Section "Device"
Identifier "Intel Graphics" Identifier "Intel Graphics"