Joined
·
10,264 Posts
Not flashy, and hardly ever changes.

.xinitrc
.Xresources
documents/colours/washed
documents/scripts/dwm-status.sh
DWM/config.h
.ncmpcpp/config
.vimrc
.xinitrc
Code:
Code:
# Sync Xresources
xrdb -merge ~/.Xresources &
# Start xCompMgr
xcompmgr -c -t-5 -l-5 -r4.2 -o1 &
# Set pointer for XMonad
# xsetroot -cursor_name left_ptr &
# Start Rxvt-Unicode Daemon
urxvtd -q -o -f &
# Set Background
sh ~/.fehbg &
# Start MPD
mpd ~/.mpd/mpd.conf &
# Start Conky
# conky -c ~/documents/conky/conkyrc &
# Start DWM/WMFS Status Bar
while true;
do
source /home/sarge/documents/scripts/dwm-status.sh
sleep 1s
done &
# Start Window Manager
# exec wmfs
# exec xmonad
exec dwm
# exec scrotwm
.Xresources
Code:
Code:
! URxvt
!-----------------------------------------------------------------
URxvt*buffered: true
URxvt*transparent: false
URxvt*shading: 80
URxvt*depth: 32
URxvt*tint: true
URxvt*background: rgba:0000/0000/0000/5555
URxvt*scrollBar: false
URxvt.font: xft:DejaVuSansMono:pixelsize=10
URxvt.perl-ext:
URxvt.perl-ext-common:
! Xft
!-----------------------------------------------------------------
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rga
Xft.hintstyle: hintslight
Xft.dpi: 96
! Colours
!-----------------------------------------------------------------
!#include "/home/sarge/documents/colours/hund"
!#include "/home/sarge/documents/colours/milomouse"
!#include "/home/sarge/documents/colours/light"
#include "/home/sarge/documents/colours/washed"
!#include "/home/sarge/documents/colours/zenburn"
!#include "/home/sarge/documents/colours/default"
documents/colours/washed
Code:
Code:
!Theme Twenty
*foreground: rgb:aa/aa/aa
*background: rgb:aa/aa/aa
*color0: rgb:30/34/30
*color1: rgb:bf/79/79
*color2: rgb:97/b2/6b
*color3: rgb:cd/cd/c1
*color4: rgb:86/a2/be
*color5: rgb:d9/b7/98
*color6: rgb:a1/b5/cd
*color7: rgb:ff/ff/ff
*color8: rgb:cd/b5/cd
*color9: rgb:f4/a4/5f
*color10: rgb:c5/f7/79
*color11: rgb:ff/ff/ef
*color12: rgb:98/af/d9
*color13: rgb:d7/d9/98
*color14: rgb:a1/b5/cd
*color15: rgb:de/de/de
documents/scripts/dwm-status.sh
Code:
Code:
#!/bin/bash
# Status script for dwm
mem(){
mem="$(free -m | sed -n 's|^-.*:[ \t]*\([0-9]*\) .*|\1|gp')"
echo -e "$mem"
}
vol(){
vol="$(amixer get Master | sed -n 's|.*\[\([0-9]*\)\%.*|\1%|pg')"
echo -e "$vol"
}
pac(){
pac="$(pacman -Qu | wc -l)"
if [ $pac == 1 ]; then
echo -e "0"
else
echo -en "$pac"
fi
}
dte(){
dte="$(date "+ %a %m/%d/%Y %I:%M")"
echo -e "$dte"
}
xsetroot -name "[ Mpd. `mpc current` ] [ Vol. $(vol) ] [ Mem. $(mem) ] [ Updates. $(pac) ] [ $(dte) ] "
DWM/config.h
Code:
Code:
/* See LICENSE file for copyright and license details. */
/* appearance */
#define NUMCOLORS 4 // need at least 3
static const char colors[NUMCOLORS][ColLast][8] = {
// border foreground background
{ "#111111", "#FFFFFF", "#111111" }, // 0 = normal
{ "#203A63", "#FFFFFF", "#203A63" }, // 1 = selected
{ "#E67373", "#FFFFFF", "#D78787" }, // 2 = urgent/warning
{ "#303030", "#FFFFFF", "#303030" }, // 3 = unselected monitor/dmenu highlight
// add more here
};
static const char font[] = "Anka/Coder Condensed, 8";
static const char dmenufont[] = "Anka/Coder Condensed-8";
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 10; /* snap pixel */
static const Bool showbar = True; /* False means no bar */
static const Bool topbar = False; /* False means bottom bar */
static const int marginbottom = 0; /* Bottom padding for conky */
/* layout(s) */
static const float mfact = 0.75; /* factor of master area size [0.05..0.95] */
static const int nmaster = 2; /* default number of clients in the master area */
static const unsigned int gappx = 4; /* gap pixel between windows */
static const unsigned int shade = 100; /* opacity of unfocused windows */
static const Bool resizehints = False;/* True means respect size hints in tiled resizals */
#include "nbstack.c"
#include "pidgin_ggrid.c"
#include "gaplessgrid.c"
static const Layout layouts[] = {
/* symbol add gaps arrange function */
{ "=2]", True, ntile }, /* first entry is default */
{ "T2T", True, nbstack },
{ "[+]", True, gaplessgrid },
{ "[M]", False, monocle },
{ ":++", True, pidgin_ggrid },
{ "><>", False, NULL }, /* no layout function means floating behavior */
};
/* tagging */
static const Tag tags[] = {
/* name layout mfact nmaster */
{ "Main", &layouts[0], -1, -1 },
{ "Term", &layouts[2], -1, -1 },
{ "Web", &layouts[2], -1, -1 },
{ "IRC", &layouts[0], -1, -1 },
{ "IM", &layouts[4], 0.15, -1 },
{ "Other", &layouts[0], -1, -1 },
{ "Torrent", &layouts[0], -1, -1 },
{ "Media", &layouts[2], -1, -1 },
{ "Misc", &layouts[0], -1, -1 },
};
/* rules */
static const char ncmpcpp[] = "ncmpc++ ver. 0.5.7";
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor opacity */
{ "Firefox", NULL, NULL, 1 << 2, False, 1, -1 },
{ "Namoroka", NULL, NULL, 1 << 2, False, 1, -1 },
{ "Chromium", NULL, NULL, 1 << 2, False, 1, -1 },
{ "Pidgin", NULL, NULL, 1 << 4, False, 0, -1 },
{ "Pidgin", NULL, "Pidgin", 1 << 4, False, 0, -1 },
{ "URxvt", NULL, ncmpcpp, 1 << 7, False, -1, -1 },
};
/* key definitions */
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static const char spadname[] = "Scratchpad";
static const char *dmenucmd[] = { "dmenu_run",
"-fn", dmenufont,
"-nb", colors[0][ColBG],
"-nf", colors[0][ColFG],
"-sb", colors[3][ColBG],
"-sf", colors[3][ColFG], NULL };
static const char *termcmd[] = { "urxvtc", NULL };
static const char *webcmd[] = { "firefox", NULL };
static const char *webcmd2[] = { "firefox", "-private", NULL };
static const char *imcmd[] = { "pidgin", NULL };
static const char *spadcmd[] = { "urxvtc",
"-name", spadname,
"-geometry", "100x25", NULL };
#include "push.c"
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_w, spawn, {.v = webcmd } },
{ MODKEY|ShiftMask, XK_w, spawn, {.v = webcmd2 } },
{ MODKEY, XK_d, spawn, {.v = devcmd } },
{ MODKEY, XK_i, spawn, {.v = imcmd } },
{ MODKEY, XK_c, togglespad, {.v = spadcmd } },
{ MODKEY, XK_m, spawn, {.v = mailcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY|ShiftMask, XK_j, pushdown, {0} },
{ MODKEY|ShiftMask, XK_k, pushup, {0} },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
/*{ MODKEY, XK_Tab, view, {0} },*/
{ MODKEY, XK_Tab, focusstack, {.i = +1 } },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY|ControlMask, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY|ControlMask, XK_s, setlayout, {.v = &layouts[1]} },
{ MODKEY|ControlMask, XK_g, setlayout, {.v = &layouts[2]} },
{ MODKEY|ControlMask, XK_m, setlayout, {.v = &layouts[3]} },
{ MODKEY|ControlMask, XK_p, setlayout, {.v = &layouts[4]} },
{ MODKEY|ControlMask, XK_f, setlayout, {.v = &layouts[5]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
/*{ MODKEY, XK_0, view, {.ui = ~0 } },*/
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5)
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
};
/* button definitions */
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};
.ncmpcpp/config
Code:
Code:
#=================================#
#|| ||#
#|| N C M P C P P C O N F I G ||#
#|| ||#
#=================================#
##
##### connection settings #####
## set it in order to make tag editor and renaming files work properly
mpd_host = "localhost"
mpd_port = "6600"
mpd_music_dir = "/media/Data/Music"
mpd_connection_timeout = "5"
mpd_crossfade_time = "1"
mpd_communication_mode = "notifications" (polling/notifications)
##### music visualizer #####
##
## Note: In order to make music visualizer work you'll
## need to use mpd fifo output, whose format parameter
## has to be set to 44100:16:1. Example configuration:
## (it has to be put into mpd.conf)
##
## audio_output {
## type "fifo"
## name "My FIFO"
## path "/tmp/mpd.fifo"
## format "44100:16:1"
## }
##
visualizer_fifo_path = "/tmp/mpd.fifo"
##
## Note: Below parameter is needed for ncmpcpp
## to determine which output provides data for
## visualizer and thus allow syncing between
## visualization and sound as currently there
## are some problems with it.
##
visualizer_output_name = "FIFO"
##
## Note: Below parameter defines how often ncmpcpp
## has to "synchronize" visualizer and audio outputs.
## 30 seconds is optimal value, but if you experience
## synchronization problems, set it to lower value.
## Keep in mind that sane values start with >=10.
##
visualizer_sync_interval = "25"
##
## Note: To enable spectrum frequency visualization
## you need to compile ncmpcpp with fftw3 support.
##
visualizer_type = "wave" (spectrum/wave)
##### system encoding #####
##
## ncmpcpp should detect your charset encoding
## but if it failed to do so, you can specify
## charset encoding you are using here.
##
## Note: You can see whether your ncmpcpp build
## supports charset detection by checking output
## of `ncmpcpp --version`.
##
## Note: Since MPD uses utf8 by default, setting
## this option makes sense only if your encoding
## is different.
##
system_encoding = ""
##### delays #####
## delay after playlist highlighting will be disabled (0 = don't disable)
playlist_disable_highlight_delay = "5"
## defines how long various messages are supposed to be visible
message_delay_time = "4"
##### song format #####
## for song format you can use:
##
## %l - length
## %f - filename
## %D - directory
## %a - artist
## %A - album artist
## %t - title
## %b - album
## %y - year
## %n - track number (01/12 -> 01)
## %N - full track info (01/12 -> 01/12)
## %g - genre
## %c - composer
## %p - performer
## %d - disc
## %C - comment
## $R - begin right alignment
##
## you can also put them in { } and then it will be displayed
## only if all requested values are available and/or define alternate
## value with { }|{ } eg. {%a - %t}|{%f}
##
## Note: Format that is similar to "%a - %t" (i.e. without any additional
## braces) is equal to "{%a - %t}", so if one of the tags is missing,
## you'll get nothing.
##
## text can also have different color than the main window has,
## eg. if you want length to be green, write $3%l$9
##
## available values:
##
## - 0 - default window color (discards all other colors)
## - 1 - black
## - 2 - red
## - 3 - green
## - 4 - yellow
## - 5 - blue
## - 6 - magenta
## - 7 - cyan
## - 8 - white
## - 9 - end of current color
##
## Note: colors can be nested.
##
song_list_format = "{%a - }{%t}|{$8%f$9}$R{$3(%l)$9}"
song_status_format = "{{%a{ \"%b\"{ (%y)}} - }{%t}}|{%f}"
song_library_format = "{%n - }{%t}|{%f}"
tag_editor_album_format = "{(%y) }%b"
##
## Note: Below variables are for alternative version of user's interface.
## Their syntax supports all tags and colors listed above plus some extra
## markers used for text attributes. They are followed by character '$'.
## After that you can put:
##
## - b - bold text
## - u - underline text
## - r - reverse colors
## - a - use alternative character set
##
## If you don't want to use an attribute anymore, just put it again, but
## this time insert character '/' between '$' and attribute character,
## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename
## with reversed colors.
##
#
alternative_header_first_line_format = "$b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b"
#
alternative_header_second_line_format = "{{$4%a$9}{ - $7%b$9}}|{%D}"
#
##
## Note: Below variables also supports
## text attributes listed above.
##
#
now_playing_prefix = "$b$u"
now_playing_suffix = "$/b$/u"
browser_playlist_prefix = "$2playlist$9 "
selected_item_prefix = "$6"
selected_item_suffix = "$9"
## colors are not supported for below variable
song_window_title_format = "{%a - }{%t}|{%f}"
##### columns settings #####
##
## syntax of song columns list format is "column column etc."
##
## - syntax for each column is:
##
## (width of column)[column's color]{displayed tag}
##
## Note: Width is by default in %, if you want a column to
## have fixed size, add 'f' after the value, e.g. (10)[white]{a}
## will be the column that take 10% of screen (so the real column's
## width will depend on actual screen size), whereas (10f)[white]{a}
## will take 10 terminal cells, no matter how wide the screen is.
##
## - color is optional (if you want the default one, type [])
##
## Note: You can give a column additional attributes by putting appropriate
## character after displayed tag character. Available attributes are:
##
## - r - column will be right aligned
## - E - if tag is empty, empty tag marker won't be displayed
##
## You can also:
##
## - give a column custom name by putting it after attributes,
## separated with character ':', e.g. {lr:Length} gives you
## right aligned column of lengths named "Length".
##
## - define sequence of tags, that have to be displayed in case
## predecessor is empty in a way similar to the one in classic
## song format, i.e. using '|' character, e.g. {a|c|p:Owner}
## creates column named "Owner" that tries to display artist
## tag and then composer and performter if previous ones are
## not available.
##
song_columns_list_format = "(7f)[green]{l} (40)[cyan]{t|f} (25)[blue]{a} (30)[green]{b}"
##### various settings #####
#
##
## Note: Custom command that will be executed each
## time song changes. Useful for notifications etc.
##
## Attention: It doesn't support song format anymore.
## Use `ncmpcpp --now-playing SONG_FORMAT` instead.
##
execute_on_song_change = ""
playlist_show_remaining_time = "no"
playlist_shorten_total_times = "yes"
playlist_separate_albums = "no"
playlist_display_mode = "columns" (classic/columns)
browser_display_mode = "columns" (classic/columns)
search_engine_display_mode = "classic" (classic/columns)
discard_colors_if_item_is_selected = "yes"
incremental_seeking = "yes"
seek_time = "1"
autocenter_mode = "yes"
centered_cursor = "yes"
progressbar_look = "//"
default_place_to_search_in = "database" (database/playlist)
user_interface = "alternative" (classic/alternative)
media_library_left_column = "a" (possible values: a,y,g,c,p, legend above)
default_find_mode = "wrapped" (wrapped/normal)
default_space_mode = "add" (add/select)
default_tag_editor_left_col = "albums" (albums/dirs)
default_tag_editor_pattern = "%n - %t"
header_visibility = "yes"
statusbar_visibility = "yes"
header_text_scrolling = "yes"
fancy_scrolling = "yes"
cyclic_scrolling = "no"
lines_scrolled = "2"
follow_now_playing_lyrics = "no"
ncmpc_like_songs_adding = "yes" (enabled - add/remove, disabled - always add)
show_hidden_files_in_local_browser = "no"
display_screens_numbers_on_start = "yes"
##
## How shall key_screen_switcher work?
##
## - "previous" - switch between current and last used screen
## - "sequence: 2 -> 9 -> 5" - switch between given sequence of screens.
##
## Screen numbers you can use after 'sequence' keyword are:
##
## - 1 - help
## - 2 - playlist
## - 3 - browser
## - 4 - search engine
## - 5 - media library
## - 6 - playlist editor
## - 7 - tag editor
## - 8 - outputs
## - 9 - visualizer
## - 10 - clock
##
## As you can see, above example will switch between
## playlist, visualizer and media library screens.
##
screen_switcher_mode = "sequence: 2 -> 3"
##
## Note: You can define startup screen for ncmpcpp
## by choosing screen number from the list above.
##
startup_screen = "2"
jump_to_now_playing_song_at_start = "yes"
ask_before_clearing_main_playlist = "no"
clock_display_seconds = "yes"
display_volume_level = "yes"
display_bitrate = "no"
display_remaining_time = "no"
regular_expressions = "basic" (basic/extended)
##
## Note: If below is enabled, ncmpcpp will ignore leading
## "The" word while sorting items in browser, tags in
## media library, etc.
##
ignore_leading_the = "no"
block_search_constraints_change_if_items_found = "yes"
mouse_support = "yes"
mouse_list_scroll_whole_page = "yes"
empty_tag_marker = "<empty>"
tag_editor_extended_numeration = "no"
media_library_display_date = "yes"
media_library_disable_two_column_mode = "no"
enable_window_title = "yes"
##
## Note: You can choose default search mode for search
## engine. Available modes are:
##
## - 1 - use mpd built-in searching (no regexes, pattern matching)
## - 2 - use ncmpcpp searching (pattern matching with support for regexes,
## but if your mpd is on a remote machine, downloading big database
## to process it can take a while
## - 3 - match only exact values (this mode uses mpd function for searching
## in database and local one for searching in current playlist)
##
#
#search_engine_default_search_mode = "1"
#
##
## Note: Below variables can allow you to physically
## remove files and directories from your hdd using
## ncmpcpp's browser screen.
##
allow_physical_files_deletion = "no"
allow_physical_directories_deletion = "no"
##### lyrics support #####
##
## supported lyrics databases:
##
## - 1 - lyricsplugin.com
##
lyrics_database = "1"
external_editor = "vim"
use_console_editor = "yes" (set to yes, if your editor is console app)
##### colors definitions #####
colors_enabled = "yes"
empty_tag_color = "black"
header_window_color = "blue"
volume_color = "blue"
state_line_color = "black"
state_flags_color = "cyan"
main_window_color = "blue"
color1 = "blue"
color2 = "cyan"
main_window_highlight_color = "cyan"
progressbar_color = "cyan"
statusbar_color = "blue"
alternative_ui_separator_color = "blue"
active_column_color = "red"
window_border_color = "green"
active_window_border = "red"
.vimrc
Code:
Code:
set number
set tabstop=4
set shiftwidth=4
set expandtab
syntax on
colorscheme github