Category Archives: Configuration

Firefox: Defining font type and size


What a professional typesetter knows is the importance of a good font. For centuries typesetters have evolved fonts to provide ease of reading that we know today. Having the text look good in the web browser is a nice bonus; choosing the right type and size can make a big difference to how well we read, especially if used quite a bit.

Font installation

To make a web page feel right — as the designer had in mind — the fonts should be on your system that a page requires. On some Linux systems, only the basic fonts are installed. Installing missing fonts usually adds nice touches that may have not been realized before. To help discover missing fonts, the Context Font add-on will display font type and size of a selected font. Many sites define their fonts as Arial, or sometimes, Verdana, or Georgia; these fonts can be added by installing Microsoft’s core fonts; a few define theirs with Apple fonts, and a few less with others. These font packages contain the most popular fonts (for Arch Linux):

arpa -i otf-bitter otf-exo ttf-bitstream-vera ttf-dejavu ttf-inconsolata ttf-lato ttf-liberation ttf-mac-fonts ttf-opensans ttf-win7-fonts

Font size

To get a good idea on good font size to use, look at a book. The size there that feels comfortable will likely feel comfortable on the monitor too. When choosing font size also think about making the various typefaces the same size (i.e. serif, sans-serif, and monospace).

Font type

Being able to define one’s own font can help readability quite a bit; however,keep in mind, tastes differ. In Firefox, the settings that can be defined are generic typefaces of: serif, sans-serif, and monospace (additionaly, the minimum font size can be set). It should be known though, that many sites still force a specific font type and size; however, gradually, a greater number of sites are using generic typeface definitions. In the future this means that personalizing fonts will be of greater availability. When choosing a font type, keep in mind to pick one that helps improve readability rather than one that grabs ones attention.

Font tests

Here is a basic test of what Firefox’s base-defined font types and sizes look like (click to view):

Font test: Type and size (based defined). (click to view)

Font test: Type and size (based defined).

Here are what a few of the common font groups look like (click to view):

Font test: Common webfonts group 1. (click to view)

Font test: Common webfonts group 1.

Font test: Common webfonts group 2. (click to view)

Font test: Common webfonts group 2.

What did I choose?

After adding all the new fonts and testing them, I found out I like a varied group; they read beautifully and scale good. Ultimately I came up with these:

Typeface Font Size
Serif Bitter 13
Sans-serif Open Sans 13
Monospace DejaVu Sans Mono 12
Minimum 10

DejaVu Sans Mono and Open Sans are good fonts and, for me, hard to beat. Rather than just define them in Firefox, I prefer to define my serif, sans-serif, and monospace fonts system-wide. This allows me to have a consistent overall look to me desktop. Here is my Fontconfig configuration (note: fonts are listed preferential/available first): fonts.conf.

For GNOME the fonts sizes are:

Setting Font
Window Titles Cantarell Bold 11
Interface Cantarell 11
Documents Cantarell 11
Monospace Monospace 10

What they look like:

Font type and size.

Font type and size.

Common webfont groups 1

Common webfont groups 1






The bash shell’s setting file is a really nice this to have detailed. Therefore I looked into it pretty good. For any that would like to use it, it can be found in the AUR.

DisplaySize in xorg.conf… uhgg!

Update: This turns out to be done by xrandr which the server hands off to now for dynamic use of monitors. man xrandr even reports that it is trying to keepaconstant DPI. Not sure just why it is doing it, but found a good way to get it done.

I just got a new monitor to be able to use as an external monitor for my laptop. While I was setting it up I noticed that the monitors display size wasn’t correctly detected. The Xorg server does a good job auto-configuring however this caught my eye:

xdpyinfo | grep -B2 resolution
dimensions:    1920x1080 pixels (508x286 millimeters)
resolution:    96x96 dots per inch

The monitor I got is a 21.5″ monitor so I figured the DPI was off. I decided to calculate it myself (this is a square pixel monitor):

res_diag=$(echo "scale=5;sqrt($res_horz^2+$res_vert^2)" | bc)
siz_horz=$(echo "scale=5;($siz_diag/$res_diag)*$res_horz*25.4" | bc)
siz_vert=$(echo "scale=5;($siz_diag/$res_diag)*$res_vert*25.4" | bc)
echo "$siz_horz"x"$siz_vert"

Also there are online DPI Calculators conferred by doubt (1, 2,) and xrandr:

em_ds_h=$(xrandr | grep VGA-0 | rev | cut -d " " -f 3 | rev | sed 's/mm//')
em_ds_v=$(xrandr | grep VGA-0 | rev | cut -d " " -f 1 | rev | sed 's/mm//')
echo $em_ds

My discovered value and theirs are a couple millimeters off overall so I just used theirs. I created a configuration to define the display size to the the Xorg server. A basic configuration to define display size can be done like this:

cat /usr/share/X11/xorg.conf.d/90-monitor-disp-size.conf
Section "Monitor"
  Identifier "<default monitor>"
  DisplaySize 477 268

Ubuntu uses /usr/share/X11/xorg.conf.d/ Arch Linux and some other use /etc/X11/xorg.conf.d/ (better choice I think). However this won’t work on the external monitor. So I expanded on it (more than it probably needed to be) by defining both monitors and related sections:

Section "Monitor"
  Identifier    "Internal - Pavilion Laptop"
  DisplaySize    304.5 228.6

Section "Monitor"
  Identifier    "External - Samsung Syncmaster SA350"
  VendorName    "Samsung"
  ModelName     "SA300/SA350"
  DisplaySize    476 267.7

Section "Device"
  Identifier    "ATI Radeon Mobility IGP 330M"
  Option        "Monitor-VGA-0"  "External - Samsung Syncmaster SA350"
  Option        "Monitor-LVDS"   "Internal - Pavilion Laptop"

Section "Screen"
  Identifier    "Default Screen"
  Monitor       "Internal - Pavilion Laptop"

Section "ServerLayout"
  Identifier    "Default Layout"
  Screen        "Default Screen"

I added VendorName and ModelName but I’m not sure they uniquely define the monitor so that the Xorg server acknowledges them. The VendorName I believe is just for reference, ModelName can usually be discovered by doing:

grep "Monitor name" /var/log/Xorg.0.log

Monitor-VGA-0 and Monitor-LVDS define the ports and hence by reference should uniquely define the monitor (xrandr -q shows them and both are found in the Xorg log).

After a bit of research I discovered that there is a good amount of history concerning the Xorg server having a bit of trouble in not being able to correctly discover the display size. I believe this may be related to some drivers. I’ve been told the open-source ATI driver have had problems and read in some other places of other people who have had similar issues. Defining the display size in the configuration and telling the Xorg server not to use the auto-detected value can be done by adding this to the Devices section (for Nvidia drivers use: Option "UseEDID" "FALSE"):

 Option        "NoDDC"

Unfortunately, this didn’t work either and left me completely at a loss. Unsure how to go further to define display size in the the Xorg server configuration I decided to define it through xrandr.

xrandr has an option to define the display size with the --fbmm option:

xrandr --output VGA-0 --auto -fbmm 476x267.7

--auto uses the default/preferred mode of the monitor.

A Beautiful fstab

I know what partitions I have and like to know what is mounted and where. To do this, I keep a tidy static filesystem file (/etc/fstab).

I use labels instead of UUID’s just because they look nicer, but also because this allows me to resize them if need be. It’s hard to go wrong with UUID’s but since I know I likely won’t be putting a USB drive named ‘Windows’ or ‘Ubuntu’ in the USB port, I’m likely pretty safe. You may have noticed too that I choose not let HAL/DBUS (is it dbus that does mounting now?) handle my Windows and Storage partitions. I choose to do this for several reasons. One is because when I copy files I almost always find it much quicker from the command line (i.e. cp file1 file2 ... /mnt/Storage/backups/) rather than navigate through multiple directories in the file browser. The second reason is for security because sensitive data I don’t always want available. The third is to protect the Windows partition. If a crash were to happen, I find it a good inconvenience to have to boot Windows to be able to fix the NTFS volume.

Here it is:

# /etc/fstab: static file system information
# <file system>          <dir>        <type>  <options>           <dump/pass>
# Temporary file systems:
tmpfs                    /tmp         tmpfs   nodev,nosuid                0 0

# Internal hard disk (sda[2,3,5,6,7]): 
LABEL=SYSTEM\040RESERVED /mnt/SR      ntfs-3g noatime,noauto,user         0 0
LABEL=ACER               /mnt/Windows ntfs-3g noatime,noauto,user         0 0
LABEL=Arch               /            ext4    errors=remount-ro,noatime   0 1
LABEL=Home               /home        ext4    noatime                     0 2
LABEL=Swap               swap         none    defaults                    0 0

# External hard disk (sdb1)
LABEL=Backup             /mnt/Backup  ext4    noatime,noauto,user         0 3

noatime has been applied to save disk writes and unnecessary timestamps everytime the file is accessed, and the user option allows me to mount without superuser privileges. For the Windows partition to be able mounted as a regular user, the NTFS-3G driver will need to be compiled with internal FUSE support.

Firefox tuning


These edits I use to help Firefox ergonomics — basically they are only fine touches.

Configuration editor

For quick and accessible configuration editing, I like to use the configuration editor. It can be got to by typing about:config in the URL bar.

Session remember

New tab for a new page


New tabs unfocused (when loading a new page)


Middle-click, accidental click, prevention

To protect against accidental middle-clicks that open new tabs with the contents of the clipboard:


Spell check in all entry fields enable


DPI set

Firefox assumes the monitor to have a DPI of 96. If the monitor has a different DPI this setting will adjust font sizes befittingly; the value is a decimal, the result of Monitor-DPI/96 (e.g. 102/96).


Help rollovers disable

Tabnails disable when rearranging tabs


Mouse scroll speed


Source code editor define


“Do Not Track” enable

Read more on this here.


Font type and size

Many sites define font size depended on CSS values. Using these values can be helpful in define font size: Firefox: Defining font type and size.


Avoid add-ons that are unnecessary; add-ons contribute to the potentiality of creating an un-stable browser experience. These add-ons give nice bonuses and have a good reputation:

  • Adblock Plus — blocks annoying buy keep unobtrusive ads.
  • Clear Fields – adds a clear text button for URL and search text entries.
  • Omnibar — integrate location and search bar
  • Wired Marker — highlight text on a webpage and remember it.

References and tips

  • Firefox shortcut keys
    • F6: Focus toggle of browser window and URL bar.
  • Middle-clicking a tab will close the tab.
  • For spell checking be sure to add the dictionary (e.g. hunspell-en package for English…), enable by right clicking in text-entry field.
  • Reset Firefox if problems begin (keeps bookmarks, passwords…).
  • Firefox Tips and Tweaks.

A Beginners Setup to Quake Wars

If you are just getting into Quake Wars, has a Strogg just thrown a grenade in your area and then quickly pulled out his Lacerator jumping around the corner to finish you off, all before you could say, “What the…”? Welcome to Quake Wars. Quake Wars has been around for a couple years and has some very devote followers. I almost threw out Quake Wars, discarding it as too tough and moved on. I’ve played a good bit of Urban Terror and thought I could mesh skills pretty well in QW but I couldn’t. For one, QW is a completely different game that UT. It is highly team-based and class-independent game. Second, experts there have a highly configured setups that can make your twist-left-hand stretch-forefinger setup into minchmeat. This is a guide that will get your setup somewhat on par with the experts and put you on evener ground.

ETQW is highly configurable. It literally has thousands of settings that can be changed. Thankfully we will only have to change a number of them the get on par with other players. Be of warning though that changing some settings are considered cheats and the built-in cheat system (Punkbuster) may disallow some settings. I have built a configuration that will work on just about all servers. If there are values that are not allowed by Punkbuster, Punkbuster will let you know in the chat window.

Keyboard Layout

The most important thing you can do is to build a keyboard layout where most commonly used keys are close to the fingertips. Here’s the layout I use. Green keys are at the fingertips, blue require a bit of reach, yellow are just out of reach, and red are need be.

A couple notes. Sprint toggle is the always running toggle. Sprinting is useful most of the time but makes scoping opponents and moving impossible. All keys to right are automated responses that I frequently use. 9 and 0 will respawn you in either the original spawn or the foremost spawn.

User Configuration File

Configurations are put in the users autoexec.cfg file. There won’t be one originally so you will have to create it. The autoexec.cfg file in Linux goes in the user configuration folder: ~/.etqwcl/sdnet/<playername>/base. In Vista it goes in in the users Documents\Id Software\ETQW…\sdnet\base. This file gets loaded when the user logs in. To be able to test it though it needs to be in ETQW’s global location <ETQW-config-folder>/base. Create an autoexec.cfg in the user folder and redirect to the global one:

exec global.cfg

You can name it anything you want. Once you have your global config set up you can test it from a running QW by opening console (~) and running exec global.cfg. QW will let you know of any error exist in the configuration file.

Global Configuration File

I could explain all the details of the configuration file but rather I’ll just give it to you. It has all the explanations in it plus links you need to look up an details. A couple notes: A smooth, even frames per second is critical to QW. You’ll want 30fps or 60fps without any hitching. Good graphics and great light don’t mean a thing when you’re looking to make that great hit and find yourself fighting your hardware. The config is for a nvidia 9600 GSO which at 2009 this is a medium level graphic card that handles shaders and lighting poorly, the config will reflect that. I haven’t give away all my secrets ;), but here it is:

// Contributor akau <>
// - cvar listings

/// Hardware ///

// FPS 30 or 60 decision - "showcom_fps 1" to draw fps
seta com_unlockFPS 1
seta com_unlock_timingMethod 2

// Texture Quality (-2 to 2)
// Texture and Visual Quality mirror those found in Settings > Advanced
seta image_diffusePicMip "0"
seta image_bumpPicMip "0"
seta image_specularPicMip "-1"
seta image_anisotropy "0"       // (0 off, to 16 by 2^)

// Visual Quality/Performance
// Terrain Quality, Effects Level, Debris/Weather many settings
seta r_megadrawmethod "3"             // Lighting Quality   (3 low, 0 high)
seta com_lastFoliageLevel "0"         // Foliage Quality    (0 low, 2 high)
seta seta com_lastGraphicsLevel "0"   // Shader Effects     (0 low, 2 high)
seta com_lastGraphicsDetailLevel "0"  // Effects Level      (0 low, 2 high)
seta com_gpuSpec "0"                  // Shader Level       (0 low, 3 ultra)
seta r_multiSamples "0"               // Anti-Aliasing      (0,2,4,8,16,32)
seta image_filter "GL_LINEAR_MIPMAP_NEAREST" // bilinear antialiasing (faster)

seta r_swapinterval "0"         // Vsync                    (0 off, 1 on)
seta r_shadows "0"              // Shadows                  (0 off, 1 on)
seta r_softParticles "0"        // Better explosions/smoke  (0 off, 1 on)
seta r_useAlphaToCoverage "0"   // Smooth foliage           (0 off, 1 on)

// Good FPS boosts
// r_megaDrawMethod, r_shadows, r_softParticles, com_gpuSpec above
seta com_machineSpec "1"        // Processor                (0 low, 2 high)
seta g_decals "1"               // Bullet marks             (0 off, 1 on)
seta g_showPlayerShadow "0"     // Player shadows           (0 off, 1 on)
seta r_skipMegaTexture "1"      // Skip mega textures       (1 off,  0 on)
seta r_skipStuff "0"            // grass and foliage        (0 off, 1 on)

// Additional FPS boosts
seta r_skipBump "0"             // Skips rendering bumpmaps on textures
seta r_skipSpecular "1"         //
seta r_shaderQuality "2"        // Shader quality (0 high 2 low)
seta r_detailTexture "0"        // Detail level textures
seta r_detailFade "0"           // Detail level fades

seta r_useThreadedRenderer "2"  // For multiple cpus
seta com_videoRam "768"         // usually ETQW can detect video memory

// Resolution
// r_mode list:
seta r_mode "10"                // -1 for custom
seta r_aspectRatio "2"          // 0=4:3, 1=16:9, 2=16:10, 3=5:4 TFT, -1 custom
seta r_fullscreen "1"
//seta r_customAspectRatioV "10"
//seta r_customAspectRatioH "16"
//seta r_customHeight "900"
//seta r_customWidth "1440"
//seta cg_fov "90"              // field of view, default depends on aspect
                                // ratio.  Note: wider fov increases view depth
// seta image_lodbias "-1"      // viewable distance        (-1 high, 1 low)
// seta r_visdistmult "1.2"

// Gamma/Brightness
seta r_brightness "1.18"
seta r_gamma "1.05"

// Sound
seta s_driver "oss"             // For linux OSS
seta s_volume_dB "-10"
seta s_volumeMusic_dB "-16"
seta s_force22kH "0"            // lowering audio quality helps FPS a bit

// Network -
//seta cl_maxpackets "100"      // max packets 100 for PunkBuster bandwidth.
//seta cl_packetdup "1"         // If high PL - make 1.
//seta snaps "40"               // Leave this at 40, servers will adjust.
//seta rate 25000               // DSL/Cable best at 25,000 servers will adjust.
//seta cl_timenudge 0           // Leave at 0 for less lag and less trouble.
//seta cg_lagometer "0"         // Displays network lag

// Mouse
seta sensitivity "13.0"         // sensitivity
seta m_smooth "1"               // smooth mouse movements
seta m_pitch "0.022"            // vertical sensitivity scale
seta m_yaw "0.022"              // horizontal sensitivity scale
seta m_helicopterPitch "0.022"  // mouse/joystick no inverted when flying

// VOIP - team, global, fireteam (1 on, 0 off)
seta ui_voipReceiveTeam "1"
seta ui_voipReceiveGlobal "1"
seta ui_voipReceiveFireTeam "1"

/// General Settings ///

seta g_skipIntro "1"                  // Seen intro, doesn't work in Linux
seta com_allowconsole "1"             // For Windows tilda key
seta gui_showTooltips "0"             // Enough of the tooltips
seta g_tooltipTimeScale "0"
seta net_clientPunkbusterEnabled "1"  // Punkbuster is our friend

// Limit rolling and bobbing motions (Warning few servers may not allow this)
seta pm_crouchbob 0
seta pm_bobpitch 0
seta pm_bobup 0
seta pm_runroll 0
seta pm_runpitch 0
seta pm_runbob 0
seta pm_walkbob 0

seta in_toggleSprint "1"              // I find the run toggle useful
seta g_weaponSwitchTimeout "0"        // Quick weapon switch

seta ui_advancedFlightControls "1"    // No auto-correcting of flight controls
seta ui_drivingCameraFreelook  "1"    // Freelook on vehicles with no weapons
seta ui_rememberCameraMode "1"        // Remember vehicle camera mode

/// HUD settings ///

seta g_rotatecommandmap "0"           // No rotating command map
seta gui_showRespawnText "0"          // Unneeded respawn text (1 on, 0 off)

// Chat colors
seta g_chatDefaultColor 1 1 0 .60       // Global chat color (RGBa color) Y
g_chatTeamColor .8 .8 .8 .7             // Team chat color Gray
g_chatFireTeamColor 1 .6 .6 .7          // Fireteam chat color
seta gui_chatAlpha "0.7"                //
seta g_chatLineTimeout "12"             // Chat timeout (default 5 seconds)

//seta g_chatDefaultColor .6 .8 1 .7      // global chat color (RGBa color) B
//g_chatTeamColor 1 1 .6 .7               // team chat color Purple?
//g_chatTeamColor .94 .96 .50 .7          // team chat color
//g_chatFireTeamColor .72 .44 .44 .7      // fireteam chat color

// Less distracting waypoints, player info, mines, objectives, crosshair,
// vehicles, fraglist, commandmap, fireteam list
seta g_waypointAlphaScale "0.5"
seta g_waypointDistanceMax "3084"
seta g_waypointDistanceMin "16"
seta g_waypointSizeMax "15"
seta g_waypointSizeMin "10"

seta g_playerIconAlphaScale ".5"
seta g_playerIconSize "8"
seta g_playerArrowIconSize "5"
seta g_drawVehicleIcons "0"             // Disable the vehicle icons
seta g_friendlyColor ".8 .8 .8 .5"
seta g_enemyColor ".55 .20 .16 0.5"     // Gray red
seta g_neutralColor "0.45 .45 .45 .5"
//seta g_friendlyColor ".14 .88 .32 .5"
//seta g_enemyColor "1 .2 .21 0.5"        // Brighter-red

seta g_drawMineIcons "0"
seta g_mineTriggerWarning "0"

seta gui_objectiveListAlpha "0.4"
seta gui_objectiveStatusAlpha "0.4"

seta gui_crosshairColor "1 1 1 .70"
seta gui_crosshairSpreadScale "0"
seta gui_crosshairGrenadeAlpha "0.286585"
seta gui_crosshairStatsAlpha "0"
seta gui_crosshairSpreadAlpha "0"
seta gui_crosshairAlpha "0.7"
seta gui_crosshairKey "pin_14"
seta gui_crosshairDef "crosshairs"
//seta gui_crosshairColor "0 1 0 .70"     // Green

seta g_showVehicleCockpits "0"
seta gui_vehicleDirectionAlpha "0.5"
seta gui_vehicleAlpha "0.8"

seta gui_obitAlpha "0"                    // remove leftside kill message
seta gui_commandMapAlpha ".8"
seta gui_fireTeamAlpha "0.8"
seta gui_personalBestsAlpha ".4"           // Disabled because of bug?
seta gui_showRespawnText "0"

/// Player ///
seta ui_name "akau"
seta ui_clanTag ""
seta ui_clanTagPosition "1"

/// Keybindings ///

// Dont' unbind all unless you plan to bind every key. ETQW will just replace
// otherwise.

// Xbox Controller Settings
exec xboxgamepad.cfg

// Actions //

// Movement
bind "e" "_forward" "" "default"
bind "s" "_moveleft" "" "default"
bind "d" "_back" "" "default"
bind "f" "_moveright""" "default"
// Lean - lean with shift key and s and f
bind "s" "_leanleft" "shift" "default"
bind "f" "_leanright" "shift" "default"
// Crouch/Prone/Sprint/Walk
bind "shift" "_movedown" "" "default"
bind "v" "_prone" "" "default"
bind "r" "_sprint" "" "default"
bind "CTRL" "_speed" "" "default"
// Toggle sprint key behavior.
// On: move forward always sprints, Off: hold sprint key to sprint
bind "F4" "toggle in_toggleSprint"

// Weapons - melee, second, primary, grenades, gadgets (packs, cameras,
// explosives, airstrike), designators, tools (construct, revive, hack), deploy
bind "q" "_weapon0" "" "default"
bind "a" "_weapon1" "" "default"
bind "w" "_weapon2" "" "default"
bind "c" "_weapon3" "" "default"
bind "z" "_weapon5" "" "default"
bind "4" "_weapon6" "" "default"
bind "x" "useweapon weapon_tool1" "" "default"
bind "3" "useweapon weapon_tool2" "" "default"

// Reload
bind "t" "_reload" "" "default"

// Use
bind "g" "_activate" "" "default"

// Vehicle
bind "capslock" "_usevehicle" "" "default" // enter vehicle
bind w "_leanleft" "" "vehicle"            // strafe in Desecrator
bind r "_leanright" "" "vehicle"
bind "shift" "_sprint" "" "vehicle"        // use shift as vehicle boost
bind "1" "_weapon0" "" "default"           // decoys with right mouse click
bind "MOUSE2" "_weapon0" "" "vehicle"

// Fireteam Menu
bind "o" "_fireteam" "" "default"

// Type Chat - team, global, fireteam
bind "y" "clientMessageMode 1" "" "default"
bind "u" "clientMessageMode" "" "default"
bind "i" "clientMessageMode 2" "" "default"

// Automated Chat
bind "MOUSE3" "_context" "" "default"
bind "MOUSE3" "_quickchat" "shift" "default"

// VOIP - team, global, fireteam
bind "5" "_teamVoice" "" "default"
bind "6" "_Voice" "" "default"
bind "7" "_fireteamvoice" "" "default"

// Respawn
bind "h" "kill"

// Sane screenshot button
bind printscreen screenshot

// Spawn at default spawn and forward-most spawn
bind "9" "setSpawnpoint base"
bind "0" "setSpawnpoint default"

// Load configuration
bind "F9" "exec akau.cfg"

// GreasedScotsman's insta-class changes and announce
// GDF use CTRL + (1234-qw-asd-5-zx) - (ALT Strogg)
// soldier
bind "1" "clientTeam GDF; clientClass Soldier 0;wait;kill;sayTeam '^7'Respawning as a'^m'Soldier'^7'with an '^d'Assault Rifle'^7'" "CTRL" "default"
bind "2" "clientTeam GDF; clientClass Soldier 1;wait;kill;sayTeam '^7'Respawning as a'^m'Soldier'^7'with a '^d'Rocket Launcher'^7'" "CTRL" "default"
bind "3" "clientTeam GDF; clientClass Soldier 2;wait;kill;sayTeam '^7'Respawning as a'^m'Soldier'^7'with a '^d'GPMG'^7'" "CTRL" "default"
bind "4" "clientTeam GDF; clientClass Soldier 3;wait;kill;sayTeam '^7'Respawning as a'^m'Soldier'^7'with a '^d'Shotgun'^7'" "CTRL" "default"
// medic
bind "q" "clientTeam GDF; clientClass Medic 0;wait;kill;sayTeam '^7'Respawning as a'^m'Medic'^7'with an '^d'Assault Rifle'^7'" "CTRL" "default"
bind "w" "clientTeam GDF; clientClass Medic 1;wait;kill;sayTeam '^7'Respawning as a'^m'Medic'^7'with a '^d'Shotgun'^7'" "CTRL" "default"
// engineer
bind "a" "clientTeam GDF; clientClass Engineer 0;wait;kill;sayTeam '^7'Respawning as an'^m'Engineer'^7'with an '^d'Assault Rifle'^7" "CTRL" "default"
bind "s" "clientTeam GDF; clientClass Engineer 1;wait;kill;sayTeam '^7'Respawning as an'^m'Engineer'^7'with a '^d'Shotgun'^7" "CTRL" "default"
bind "d" "clientTeam GDF; clientClass Engineer 2;wait;kill;sayTeam '^7'Respawning as an'^m'Engineer'^7'with an '^d'Assault Rifle w/ Gren. Launcher'^7" "CTRL" "default"
// field-ops
bind "5" "clientTeam GDF; clientClass FieldOps 0;wait;kill;sayTeam '^7'Respawning as a '^m'Field Ops'^7'with an '^d'Assault Rifle'^7" "CTRL" "default"
// covert-ops
bind "z" "clientTeam GDF; clientClass CovertOps 0;wait;kill;sayTeam '^7'Respawning as a'^m'Covert Ops'^7'with a '^d'Scoped Assault Rifle'^7" "CTRL" "default"
bind "x" "clientTeam GDF; clientClass CovertOps 1;wait;kill;sayTeam '^7'Respawning as a'^m'Covert Ops'^7'with a '^d'Sniper Rifle'^7" "CTRL" "default"
// aggressor
bind "1" "clientTeam Strogg; clientClass Aggressor 0;wait;kill;sayTeam '^7'Respawning as an'^m'Aggressor'^7'with a '^d'Lacerator'^7" "ALT" "default"
bind "2" "clientTeam Strogg; clientClass Aggressor 1;wait;kill;sayTeam '^7'Respawning as an'^m'Aggressor'^7'with an '^d'Obliterator'^7" "ALT" "default"
bind "3" "clientTeam Strogg; clientClass Aggressor 2;wait;kill;sayTeam '^7'Respawning as an'^m'Aggressor'^7'with a '^d'Hyperblaster'^7" "ALT" "default"
bind "4" "clientTeam Strogg; clientClass Aggressor 3;wait;kill;sayTeam '^7'Respawning as an'^m'Aggressor'^7'with a '^d'Nailgun'^7" "ALT" "default"
// technician
bind "q" "clientTeam Strogg; clientClass Technician 0;wait;kill;sayTeam '^7'Respawning as a'^m'Technician'^7'with a '^d'Lacerator'^7" "ALT" "default"
bind "w" "clientTeam Strogg; clientClass Technician 1;wait;kill;sayTeam '^7'Respawning as a'^m'Technician'^7'with a '^d'Nailgun'^7" "ALT" "default"
// constructor
bind "a" "clientTeam Strogg; clientClass Constructor 0;wait;kill;sayTeam '^7'Respawning as a'^m'Constructor'^7'with a '^d'Lacerator'^7" "ALT" "default"
bind "s" "clientTeam Strogg; clientClass Constructor 1;wait;kill;sayTeam '^7'Respawning as a'^m'Constructor'^7'with a '^d'Nailgun'^7" "ALT" "default"
bind "d" "clientTeam Strogg; clientClass Constructor 2;wait;kill;sayTeam '^7'Respawning as a'^m'Constructor'^7'with a '^d'Lacerator w/ Plasma Launcher'^7" "ALT" "default"
// oppressor
bind "5" "clientTeam Strogg; clientClass Oppressor 0;wait;kill;sayTeam '^7'Respawning as an'^m'Oppressor'^7'with a '^d'Lacerator'^7." "ALT" "default"
// infiltrator
bind "z" "clientTeam Strogg; clientClass Infiltrator 0;wait;kill;sayTeam '^7'Respawning as an'^m'Infiltrator'^7'with an'^d'Accurized Lacerator'^7" "ALT" "default"
bind "x" "clientTeam Strogg; clientClass Infiltrator 1;wait;kill;sayTeam '^7'Respawning as an'^m'Infiltrator'^7'with a'^d'Railgun'^7" "ALT" "default"

// Automated responses quick-keyed //

// Global Replies / End Games
bind "HOME" "clientquickchat quickchat/global/yes" "" "default"
bind "END" "clientquickchat quickchat/global/no" "" "default"
bind "INS" "clientquickchat quickchat/global/taunts/owned" "" "default"
bind "PGUP" "clientquickchat quickchat/global/taunts/meh" "" "defaults" //broke
bind "DEL" "clientquickchat quickchat/global/cheers/goodgame" "" "default"
bind "PGDN" "clientquickchat quickchat/global/cheers/wellplayed" "" "default"

bind "UPARROW" "clientquickchat quickchat/global/hi" "" "defaults"
//bind "DOWNARROW" "clientquickchat quickchat/global/sorry" "" "defaults"
bind "LEFTARROW" "clientquickchat quickchat/global/sorry" "" "defaults"

// Team Replies
//bind "KP_NUMLOCK"
bind "KP_SLASH" "clientquickchat quickchat/responses/onit" "" "default"
bind "KP_STAR" "clientquickchat quickchat/responses/sorry" "" "default"
bind "KP_MINUS" "clientquickchat quickchat/responses/thanks" "" "default"
bind "KP_HOME" "clientquickchat quickchat/need/team/medic" "" "default"
bind "KP_UPARROW" "clientquickchat quickchat/need/engineer" "" "default"
bind "KP_PGUP" "clientquickchat quickchat/need/team/covertops" "" "default"
bind "KP_LEFTARROW" "clientquickchat quickchat/need/team/radar" "" "default"
bind "KP_5" "clientquickchat quickchat/need/team/apt" "" "default"
bind "KP_RIGHTARROW" "clientquickchat quickchat/need/team/avt" "" "default"
bind "KP_PLUS" "clientquickchat quickchat/need/medic" "" "default"
bind "KP_END" "clientquickchat quickchat/enemy/indisguise" "" "default"
bind "KP_DOWNARROW" "clientquickchat quickchat/enemy/deployables/aptspotted" "" "default"
bind "KP_PGDN" "clientquickchat quickchat/enemy/deployables/avtspotted" "" "default"
bind "KP_INS" "clientquickchat quickchat/commands/captureforwardspawn" "" "default"
bind "KP_DEL" "clientquickchat quickchat/self/disguise/enemydisguisedasme" "" "default"
// State Class //
bind "KP_ENTER" "clientquickchat quickchat/self/imsoldier" "" "soldier"
bind "KP_ENTER" "clientquickchat quickchat/self/immedic" "" "medic"
bind "KP_ENTER" "clientquickchat quickchat/self/imengineer" "" "engineer"
bind "KP_ENTER" "clientquickchat quickchat/self/imcovertops" "" "covertops"
bind "KP_ENTER" "clientquickchat quickchat/self/imfieldops" "" "fieldops"
bind "KP_ENTER" "clientquickchat quickchat/self/imaggressor" "" "aggressor"
bind "KP_ENTER" "clientquickchat quickchat/self/imtechnician" "" "technician"
bind "KP_ENTER" "clientquickchat quickchat/self/imconstructor" "" "constructor"
bind "KP_ENTER" "clientquickchat quickchat/self/imoppressor" "" "oppressor"
bind "KP_ENTER" "clientquickchat quickchat/self/iminfiltrator" "" "infiltrator"

Customize man page colors with ‘less’ definitions

Man pages by default use less for displaying. I’ve used vim before to for colored text in man pages but something got bjorked in an update. To have color with man pages termcap will need to be invoked. Thanks to nico for the tip.

All that needs to be done is to export bold and underline values of termcap. Adding the values to the ~/.bashrc will make sure that they are always used:

# Less Colors for Man Pages
export LESS_TERMCAP_mb=$'\E[01;31m'       # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m'  # begin bold
export LESS_TERMCAP_me=$'\E[0m'           # end mode
export LESS_TERMCAP_se=$'\E[0m'           # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m'    # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m'           # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline

And source the ~/.bashrc to have it work:

source ~/.bashrc

Notice I used Arch and Gentoo colors, my two favorite distros :) :


Get every new post delivered to your Inbox.

Join 53 other followers