dextra

dynamic window manager extra repository, themes, styles, dotfiles
git clone git://git.suckless.org/dextra
Log | Files | Refs | LICENSE

commit 25e0543c6a5fdef76719f0b447398c79be2c1811
parent e473fc1aad7a36f47b026135277b5bbf9ccad88d
Author: arg@suckless.org <unknown>
Date:   Sun, 25 Nov 2007 16:56:39 +0100

added Felix Leckow's lightgrey files
Diffstat:
LICENSE | 1+
lightgrey/Xdefaults | 49+++++++++++++++++++++++++++++++++++++++++++++++++
lightgrey/config.h | 96+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lightgrey/conkyrc | 9+++++++++
lightgrey/moc_theme | 35+++++++++++++++++++++++++++++++++++
lightgrey/mutt.colours | 6++++++
lightgrey/screenrc | 21+++++++++++++++++++++
lightgrey/xinitrc | 8++++++++
lightgrey/xmodmap | 10++++++++++
9 files changed, 235 insertions(+), 0 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -7,6 +7,7 @@ MIT/X Consortium License © 2007 Alexander Polakov <polachok@gmail.com> © 2007 Grigorios Bouzakis <grbzks@gmail.com> © 2007 Antony Jepson <antonyat@gmail.com> +© 2007 Felix Leckow <felixleckow@googlemail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/lightgrey/Xdefaults b/lightgrey/Xdefaults @@ -0,0 +1,49 @@ +!! urxvt +urxvt*font: 9x15 +urxvt*boldFont: 9x15bold + +urxvt*internalBorder: 0 +urxvt*scrollBar: false +uxvt*inheritPixmap: false +urxvt*saveLines: 32767 +urxvt*scrollTtyKeypress:true +urxvt*scrollTtyOutput: false +urxvt*visualBell: true +! to get backspace to work in mutt within screen +urxvt*backspacekey:  + +!! colours +! black + white +*color0: #000000 +*color15: #ffffff + +! darkgrey + lightgrey +*color8: #cccccc +*color7: #eeeeee + +! red +*color1: #ac4848 +*color9: #fe7676 + +! green +*color2: #3b773b +*color10: #6abe6a + +! yellow +*color3: #858642 +*color11: #c1c26a + +! blue +*color4: #0075b2 +*color12: #0092de + +! magenta +*color5: #6a6abe +*color13: #7676fe + +! cyan +*color6: #479494 +*color14: #69c4c5 + +*foreground: #000000 +*background: #fafafa diff --git a/lightgrey/config.h b/lightgrey/config.h @@ -0,0 +1,96 @@ +/* See LICENSE file for copyright and license details. */ + +/* appearance */ +#define BARPOS BarBot /* BarTop, BarOff */ +#define BORDERPX 4 +#define FONT "9x15" +#define NORMBORDERCOLOR "#9cefef" +#define NORMBGCOLOR "#ffffff" +#define NORMFGCOLOR "#000000" +#define SELBORDERCOLOR "#52aaad" +#define SELBGCOLOR "#cccccc" +#define SELFGCOLOR "#000000" + +/* tagging */ +const char tags[][MAXTAGLEN] = { "a", "s", "d", "q", "w", "e" }; +Bool seltags[LENGTH(tags)] = {[0] = True}; +Rule rules[] = { + /* class:instance:title regex tags regex isfloating */ + { "Gimp", NULL, True }, + { "MPlayer", NULL, True }, + { "Acroread", NULL, True }, + { "Avidemux2_gtk", NULL, True }, + { "feh:feh:feh", NULL, True }, + { "Firefox-bin:firefox-bin:Add Bookmark", NULL, True }, +}; + +/* layout(s) */ +#define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */ +#define RESIZEHINTS True /* False - respect size hints in tiled resizals */ +#define SNAP 32 /* snap pixel */ +#include "bstack.c" +Layout layouts[] = { + /* symbol function */ + { "TTT", bstack }, /* first entry is default */ + { "[]=", tile }, + { "><>", floating }, +}; + +/* key definitions */ +#include <X11/XF86keysym.h> +#define MODKEY Mod4Mask +Key keys[] = { + /* modifier key function argument */ + { MODKEY, XK_p, spawn, + "exe=`dmenu_path | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"'" + " -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'` && exec $exe" }, + { MODKEY|ShiftMask, XK_Return, spawn, "exec urxvt" }, + { MODKEY|ShiftMask, XK_x, spawn, "exec slock" }, \ + { MODKEY, XK_z, spawn, "exec swarp 1280 1024" }, \ + { 0, XF86XK_AudioPlay, spawn, "exec moctoggle" }, + { 0, XF86XK_AudioStop, spawn, "exec mocp --stop" }, + { 0, XF86XK_AudioNext, spawn, "exec mocp --next" }, + { 0, XF86XK_AudioPrev, spawn, "exec mocp --previous" }, + { 0, XF86XK_AudioMute, spawn, "exec amixer sset Master toggle" }, + { 0, XF86XK_AudioRaiseVolume, spawn, "exec amixer sset PCM 5%+" }, + { 0, XF86XK_AudioLowerVolume, spawn, "exec amixer sset PCM 5%-" }, + { MODKEY, XK_1, setlayout, "TTT" }, \ + { MODKEY, XK_2, setlayout, "[]=" }, \ + { MODKEY, XK_3, setlayout, "><>" }, \ + { MODKEY, XK_space, togglefloating, NULL }, + { MODKEY, XK_b, togglebar, NULL }, + { MODKEY, XK_j, focusnext, NULL }, + { MODKEY, XK_k, focusprev, NULL }, + { MODKEY, XK_h, setmwfact, "-0.05" }, + { MODKEY, XK_l, setmwfact, "+0.05" }, + { MODKEY, XK_m, togglemax, NULL }, + { MODKEY, XK_Return, zoom, NULL }, + { MODKEY, XK_Tab, viewprevtag, NULL }, + { MODKEY|ShiftMask, XK_c, killclient, NULL }, + { MODKEY, XK_0, view, NULL }, + { MODKEY, XK_a, view, tags[0] }, + { MODKEY, XK_s, view, tags[1] }, + { MODKEY, XK_d, view, tags[2] }, + { MODKEY, XK_q, view, tags[3] }, + { MODKEY, XK_w, view, tags[4] }, + { MODKEY, XK_e, view, tags[5] }, + { MODKEY|ControlMask, XK_a, toggleview, tags[0] }, + { MODKEY|ControlMask, XK_s, toggleview, tags[1] }, + { MODKEY|ControlMask, XK_d, toggleview, tags[2] }, + { MODKEY|ControlMask, XK_q, toggleview, tags[3] }, + { MODKEY|ControlMask, XK_w, toggleview, tags[4] }, + { MODKEY|ControlMask, XK_e, toggleview, tags[5] }, + { MODKEY|ShiftMask, XK_0, tag, NULL }, + { MODKEY|ShiftMask, XK_a, tag, tags[0] }, + { MODKEY|ShiftMask, XK_s, tag, tags[1] }, + { MODKEY|ShiftMask, XK_d, tag, tags[2] }, + { MODKEY|ShiftMask, XK_q, tag, tags[3] }, + { MODKEY|ShiftMask, XK_w, tag, tags[4] }, + { MODKEY|ShiftMask, XK_e, tag, tags[5] }, + { MODKEY|ControlMask|ShiftMask, XK_a, toggletag, tags[0] }, + { MODKEY|ControlMask|ShiftMask, XK_s, toggletag, tags[1] }, + { MODKEY|ControlMask|ShiftMask, XK_d, toggletag, tags[2] }, + { MODKEY|ControlMask|ShiftMask, XK_q, toggletag, tags[3] }, + { MODKEY|ControlMask|ShiftMask, XK_w, toggletag, tags[4] }, + { MODKEY|ControlMask|ShiftMask, XK_e, toggletag, tags[5] }, +}; diff --git a/lightgrey/conkyrc b/lightgrey/conkyrc @@ -0,0 +1,9 @@ +# conky compiled with --disable-x11 +background no +update_interval 1.0 +total_run_times 0 +no_buffers yes + +# stuff after 'TEXT' will be formatted on screen +TEXT +${downspeed eth0}/${upspeed eth0} KiB/s | ${fs_free /home} | $mem | $loadavg | ${time %a %b %d %H:%M} diff --git a/lightgrey/moc_theme b/lightgrey/moc_theme @@ -0,0 +1,35 @@ +background = black default +frame = black default +window_title = black default +directory = black default +selected_directory = white cyan +playlist = black default +selected_playlist = white cyan bold +file = black default +selected_file = white cyan +marked_file = cyan white +marked_selected_file = white cyan bold +info = black default +selected_info = white cyan +marked_info = cyan white +marked_selected_info = white cyan bold +status = black default +title = white black bold,reverse +state = black default +current_time = black default +time_left = black default +total_time = black default +time_total_frames = black default +sound_parameters = black default +legend = black default +disabled = black default +enabled = black default bold +empty_mixer_bar = black default +filled_mixer_bar = white cyan +empty_time_bar = black default +filled_time_bar = white cyan +entry = black default +entry_title = black default +error = white red bold +message = white cyan bold +plist_time = black default diff --git a/lightgrey/mutt.colours b/lightgrey/mutt.colours @@ -0,0 +1,6 @@ +color status black color8 +color indicator white cyan +color normal black default +color error white red +color attachment color8 default +color body color1 default "^\\[---.*" diff --git a/lightgrey/screenrc b/lightgrey/screenrc @@ -0,0 +1,21 @@ +startup_message off +zombie kr + +# window numbering starts at 1 +bind c screen 1 +bind 0 select 10 + +# to put stuff into term title bar +termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' +termcapinfo urxvt 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' +hardstatus string '%t' # window title -> term title + +term screen-16color + +# stolen from http://phraktured.net/config/screenrc +caption always "%{= Kk} %=< %?%-Lw%?%{Kk}[:%n %t:]%{Kk}%?%+Lw%? >%= " + +screen -t bash 1 bash +screen -t mail 9 mutt -y + +select 1 diff --git a/lightgrey/xinitrc b/lightgrey/xinitrc @@ -0,0 +1,8 @@ +#!/bin/sh + +xmodmap ~/.xmodmap +xsetroot -solid '#777777' +swarp 1280 1024 +until (conky | dwm); do + sleep 1 +done diff --git a/lightgrey/xmodmap b/lightgrey/xmodmap @@ -0,0 +1,10 @@ +remove Lock = Caps_Lock +keysym Caps_Lock = Super_L + +keycode 162 = XF86AudioPlay +keycode 164 = XF86AudioStop +keycode 160 = XF86AudioMute +keycode 176 = XF86AudioRaiseVolume +keycode 174 = XF86AudioLowerVolume +keycode 153 = XF86AudioNext +keycode 144 = XF86AudioPrev