dot

packages and services management
Log | Files | Refs | README

commit da39e5e080b22e3d262a0c9ff788ea94d2fee94e
parent a387d1be6c905ad3a5856b553f2624b891d47cdc
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Sat, 24 Jun 2017 19:21:35 +0200

no tile, just a solid color

Diffstat:
MINSTALL | 2+-
Mbin/color | 18+++---------------
Mbin/status | 2+-
Mdwm/config.h | 14+++++++-------
Mx11/.xinitrc | 2+-
Dx11/tile.xbm | 22----------------------
6 files changed, 13 insertions(+), 47 deletions(-)

diff --git a/INSTALL b/INSTALL @@ -22,7 +22,7 @@ case "$1" in ;; ( -g ) [ $# = 1 ] || usage - mkdir -p "$GIT" && cd "$GIT" || exit 1 + mkdir -p "$VAR" "$GIT" && cd "$GIT" || exit 1 git clone http://github.com/josuah/www & git clone http://github.com/josuah/alphabet & diff --git a/bin/color b/bin/color @@ -1,17 +1,5 @@ [ "$DISPLAY" ] || exit -fg=`hexdump /dev/urandom | sed q | cut -c 9-12,14-15` -bg=`hexdump /dev/urandom | sed q | cut -c 9-12,14-15` - -case "$1" in -( 0 ) xsetroot -bitmap "$ETC/x11/tile.xbm" -bg '#000000' -fg '#000000' ;; -( 1 ) xsetroot -bitmap "$ETC/x11/tile.xbm" -bg '#ffffff' -fg '#ffffff' ;; -( 2 ) xsetroot -bitmap "$ETC/x11/tile.xbm" -bg '#001133' -fg '#ffeecc' ;; -( 3 ) xsetroot -bitmap "$ETC/x11/tile.xbm" -bg '#220033' -fg '#00aa99' ;; -( 4 ) xsetroot -bitmap "$ETC/x11/tile.xbm" -bg '#443322' -fg '#ffffff' ;; -( 5 ) xsetroot -bitmap "$ETC/x11/tile.xbm" -bg '#000000' -fg '#667722' ;; -( 6 ) xsetroot -bitmap "$ETC/x11/tile.xbm" -bg '#440000' -fg '#88cc00' ;; -( 7 ) xsetroot -bitmap "$ETC/x11/tile.xbm" -bg '#000000' -fg '#008888' ;; -( 8 ) xsetroot -bitmap "$ETC/x11/tile.xbm" -bg '#333333' -fg '#000000' ;; -( * ) xsetroot -bitmap "$ETC/x11/tile.xbm" -bg "#$fg" -fg "#$bg" ;; -esac +xsetroot -solid "#$( + od -A n -h /dev/urandom | tr -cd 0-9a-f | dd bs=1 count=6 2> /dev/null +)" diff --git a/bin/status b/bin/status @@ -30,7 +30,7 @@ status_date() status_cpu() { - uptime | sed -r 's/.*load averages: ([^,]*).*/\1/' + uptime | sed -r 's/.*load average[^ ] *([^,]*).*/\1/' } diff --git a/dwm/config.h b/dwm/config.h @@ -5,14 +5,13 @@ static const char *fonts[] = { "monospace:pixelsize=13", }; static const char dmenufont[] = "monospace:pixelsize=13"; -static const char normbordercolor[] = "#000000"; +static const char normbordercolor[] = "#111111"; static const char normbgcolor[] = "#000000"; -static const char normfgcolor[] = "#ffffff"; -static const char selbordercolor[] = "#000000"; -static const char selbgcolor[] = "#ffffff"; -static const char selfgcolor[] = "#000000"; -static const unsigned int borderpx = 10; /* border pixel of windows */ -static const unsigned int gappx = 10; /* gap pixel between windows */ +static const char normfgcolor[] = "#555555"; +static const char selbordercolor[] = "#555555"; +static const char selbgcolor[] = "#000000"; +static const char selfgcolor[] = "#ffffff"; +static const unsigned int borderpx = 2; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ @@ -40,6 +39,7 @@ static const Rule rules[] = { { "Iceweasel", NULL, NULL, 1 << 3, 0, -1 }, { "Firefox", NULL, NULL, 1 << 3, 0, -1 }, { "Surf", NULL, NULL, 1 << 3, 0, -1 }, + { "Midori", NULL, NULL, 1 << 3, 0, -1 }, { "Zathura", NULL, NULL, 1 << 4, 0, -1 }, { NULL, "libreoffice", NULL, 1 << 4, 0, -1 }, { "Gimp", NULL, NULL, 1 << 5, 0, -1 }, diff --git a/x11/.xinitrc b/x11/.xinitrc @@ -1,7 +1,7 @@ #!/bin/sh setxkbmap us -option compose:ralt -xsetroot -bitmap "$ETC/tile.xbm" -bg '#000000' -fg '#ffffff' +xsetroot -solid '#000000' xset +fp "$CONFIG/fonts" while xsetroot -name "$(status)" diff --git a/x11/tile.xbm b/x11/tile.xbm @@ -1,22 +0,0 @@ -#define tile_width 56 -#define tile_height 32 -static unsigned char tile_bits[] = { - 0x01, 0x40, 0x20, 0x10, 0x08, 0x04, 0x00, 0x06, 0x40, 0x20, 0x10, 0x08, - 0x04, 0xc0, 0x18, 0x40, 0x20, 0x10, 0x08, 0x04, 0x30, 0x60, 0x40, 0x20, - 0x10, 0x08, 0x04, 0x0c, 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0xe0, - 0x43, 0x18, 0x10, 0x30, 0x84, 0x0f, 0x98, 0x4c, 0x06, 0x10, 0xc0, 0x64, - 0x32, 0x86, 0xf0, 0x01, 0x10, 0x00, 0x1f, 0xc2, 0x81, 0x70, 0x00, 0x10, - 0x00, 0x0c, 0x02, 0x81, 0x08, 0x00, 0x6c, 0x00, 0x18, 0x02, 0x81, 0x04, - 0x00, 0x83, 0x01, 0x60, 0x02, 0x81, 0x03, 0xc0, 0x00, 0x06, 0x80, 0x03, - 0x81, 0x00, 0x20, 0x00, 0x08, 0x00, 0x02, 0x81, 0x03, 0x18, 0x00, 0x30, - 0x80, 0x03, 0x81, 0x0c, 0x06, 0x00, 0xc0, 0x60, 0x02, 0x81, 0xb0, 0x01, - 0x10, 0x00, 0x1b, 0x02, 0x81, 0x40, 0x00, 0x6c, 0x00, 0x04, 0x02, 0x81, - 0x40, 0x00, 0x82, 0x00, 0x04, 0x02, 0x81, 0x40, 0x80, 0x01, 0x03, 0x04, - 0x02, 0x81, 0x40, 0x40, 0x00, 0x04, 0x04, 0x02, 0x81, 0x40, 0x70, 0x00, - 0x1c, 0x04, 0x02, 0x01, 0x43, 0xac, 0x01, 0x6b, 0x84, 0x01, 0x01, 0x4c, - 0x22, 0x82, 0x88, 0x64, 0x00, 0x01, 0xf0, 0x21, 0x6c, 0x08, 0x1f, 0x00, - 0x01, 0x60, 0x20, 0x10, 0x08, 0x0c, 0x00, 0x06, 0x80, 0x20, 0x10, 0x08, - 0x02, 0xc0, 0x18, 0x00, 0x23, 0x10, 0x88, 0x01, 0x30, 0x60, 0x00, 0x2c, - 0x10, 0x68, 0x00, 0x0c, 0x80, 0x00, 0x38, 0x10, 0x38, 0x00, 0x02, 0x00, - 0x03, 0x26, 0x10, 0xc8, 0x80, 0x01, 0x00, 0x8c, 0x21, 0x10, 0x08, 0x63, - 0x00, 0x00, 0x70, 0x20, 0x10, 0x08, 0x1c, 0x00 };