Merge remote-tracking branch 'gitorious/master' into phoenix
This commit is contained in:
commit
f1532bd578
10 changed files with 213 additions and 51 deletions
40
.Xdefaults
40
.Xdefaults
|
@ -1,33 +1,33 @@
|
||||||
! -*- mode: conf-xdefaults; mode: rainbow -*-
|
! -*- mode: conf-xdefaults; eval: (rainbow-mode 1); eval: (git-auto-commit-mode 1) -*-
|
||||||
! - color scheme
|
! - color scheme
|
||||||
*.background: #000000
|
urxvt.background: #000000
|
||||||
*.foreground: #15abc3
|
urxvt.foreground: #15abc3
|
||||||
! black
|
! black
|
||||||
*.color0: #000000
|
urxvt.color0: #000000
|
||||||
*.color8: #0d0b0c
|
urxvt.color8: #0d0b0c
|
||||||
! red
|
! red
|
||||||
*.color1: #800000
|
urxvt.color1: #800000
|
||||||
*.color9: #c89490
|
urxvt.color9: #c89490
|
||||||
! green
|
! green
|
||||||
*.color2: #00815b
|
urxvt.color2: #00815b
|
||||||
*.color10: #05e4a5
|
urxvt.color10: #05e4a5
|
||||||
! yellow
|
! yellow
|
||||||
*.color3: #c3ab15
|
urxvt.color3: #c3ab15
|
||||||
*.color11: #e0c624
|
urxvt.color11: #e0c624
|
||||||
! blue
|
! blue
|
||||||
*.color4: #035390
|
urxvt.color4: #035390
|
||||||
*.color12: #029cdc
|
urxvt.color12: #029cdc
|
||||||
! purple
|
! purple
|
||||||
*.color5: #585ca8
|
urxvt.color5: #585ca8
|
||||||
*.color13: #9b859d
|
urxvt.color13: #9b859d
|
||||||
! cyan
|
! cyan
|
||||||
*.color6: #15abc3
|
urxvt.color6: #15abc3
|
||||||
*.color14: #24c6e0
|
urxvt.color14: #24c6e0
|
||||||
! white
|
! white
|
||||||
*.color7: #808080
|
urxvt.color7: #808080
|
||||||
*.color15: #ececec
|
urxvt.color15: #ececec
|
||||||
|
|
||||||
*.internalBorder: 0
|
urxvt.internalBorder: 0
|
||||||
|
|
||||||
! General
|
! General
|
||||||
urxvt*loginShell: true
|
urxvt*loginShell: true
|
||||||
|
|
8
.beetsconfig
Normal file
8
.beetsconfig
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[beets]
|
||||||
|
library: ~/.local/share/beets/library.blb
|
||||||
|
directory: /mnt/music/mp3/
|
||||||
|
|
||||||
|
[paths]
|
||||||
|
default: $albumartist/$year - $album/$track - $title
|
||||||
|
singleton: Non-Album/$artist - $title
|
||||||
|
comp: Compilations/$year - $album/$track - $artist - $title
|
2
.config/.gitignore
vendored
2
.config/.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
.libreoffice/
|
*libreoffice/
|
||||||
Empathy/
|
Empathy/
|
||||||
GnuDiary/
|
GnuDiary/
|
||||||
Trolltech.conf
|
Trolltech.conf
|
||||||
|
|
1
.config/fish/.gitignore
vendored
Normal file
1
.config/fish/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
fishd.cloud
|
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -104,3 +104,11 @@ xhtml-loader.rnc
|
||||||
.emacs.d/
|
.emacs.d/
|
||||||
.cuyo
|
.cuyo
|
||||||
.lgames
|
.lgames
|
||||||
|
.bash*
|
||||||
|
.beetsmusic.blb
|
||||||
|
.beetsstate
|
||||||
|
.msmtprc
|
||||||
|
.newsrc*
|
||||||
|
.profile
|
||||||
|
.xsession_errors
|
||||||
|
Mail/
|
||||||
|
|
5
.moc/.gitignore
vendored
Normal file
5
.moc/.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
cache/
|
||||||
|
equalizer
|
||||||
|
last_directory
|
||||||
|
softmixer
|
||||||
|
tags_cache
|
1
.moc/config
Normal file
1
.moc/config
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Theme = custom
|
118
.moc/themes/custom
Normal file
118
.moc/themes/custom
Normal file
|
@ -0,0 +1,118 @@
|
||||||
|
# Example color theme for MOC.
|
||||||
|
# You can use a theme by copying it to ~/.moc/themes directory and using
|
||||||
|
# Theme config option or -T command line option.
|
||||||
|
#
|
||||||
|
# Fill free to make your own themes and send me them. It will be included in
|
||||||
|
# official MOC releases or on the MOC web site.
|
||||||
|
#
|
||||||
|
# The format of this file is:
|
||||||
|
# Lines beginning with # are comments.
|
||||||
|
# Blank lines are ignored.
|
||||||
|
# Every other line is expected to be in format:
|
||||||
|
#
|
||||||
|
# ELEMENT = FOREGROUND_COLOR BACKGROUND_COLOR [ATTRIBUTE[,ATTRIBUTE,..]]
|
||||||
|
#
|
||||||
|
# or
|
||||||
|
#
|
||||||
|
# colordef COLOR = RED GREEEN BLUE
|
||||||
|
#
|
||||||
|
# Where names are case insensitive.
|
||||||
|
#
|
||||||
|
# ELEMENT is an element of MOC interface. This can be:
|
||||||
|
# background - default background for regions when nothing is displayed
|
||||||
|
# frame - frames for windows
|
||||||
|
# window_title - the title of the window (eg name of the current
|
||||||
|
# directory)
|
||||||
|
# directory - a directory in the menu
|
||||||
|
# selected_directory - a directory that is selected using arrows
|
||||||
|
# playlist - playlist file
|
||||||
|
# selected_playlist - see selected directory
|
||||||
|
# file - an ordinary file in the menu (mp3, ogg, ...)
|
||||||
|
# selected_file - see selected directory
|
||||||
|
# marked_file - a file that is currently beeing played
|
||||||
|
# marked_selected_file - a file that is currently beeing played and is also
|
||||||
|
# selected using arrows
|
||||||
|
# info - information shown at the right side of files
|
||||||
|
# status - the status line with a message
|
||||||
|
# title - the title of the file that is currently beeing played
|
||||||
|
# state - the state: play, stop, or paus (>, [], ||)
|
||||||
|
# current_time - current time of playing
|
||||||
|
# time_left - the time left to the end of playing the current file
|
||||||
|
# total_time - the length of the currently played file
|
||||||
|
# time_total_frames - the brackets outside the total time of a file ([10:13])
|
||||||
|
# sound_parameters - the frequency and bitrate numbers
|
||||||
|
# legend - "KHz" and "Kbps"
|
||||||
|
# disabled - disabled element ([STEREO])
|
||||||
|
# enabled - enabled element
|
||||||
|
# empty_mixer_bar - "empty" part of the volume bar
|
||||||
|
# filled_mixer_bar - "filled" part of the volume bar
|
||||||
|
# empty_time_bar - "empty" part of the time bar
|
||||||
|
# filled_time_bar - "filled" part of the time bar
|
||||||
|
# entry - place wher user can type a search query or a file name
|
||||||
|
# entry_title - the title of an entry
|
||||||
|
# error - error message
|
||||||
|
# message - information message
|
||||||
|
# plist_time - total time of displayed items
|
||||||
|
#
|
||||||
|
# FOREGOUND_VOLOR and BACKGROUND_COLOR can have one of the following values:
|
||||||
|
# black, red, green, yellow, blue, magenta, cyan, white, default (can be
|
||||||
|
# transparent), grey (not standard, but works)
|
||||||
|
#
|
||||||
|
# Optional ATTRIBUTE parameters can be (from ncurses manual):
|
||||||
|
# normal - default (no highlight)
|
||||||
|
# standout - best highlighting mode of the terminal
|
||||||
|
# underline - underlining
|
||||||
|
# reverse - reverse video
|
||||||
|
# blink - blinking
|
||||||
|
# dim - half bright
|
||||||
|
# bold - extra bright or bold
|
||||||
|
# protect - protected mode
|
||||||
|
#
|
||||||
|
# You can specify a list of attributes separated by commas: attr1,attr2,attr3.
|
||||||
|
# Don't use spaces anywhere in such a list.
|
||||||
|
#
|
||||||
|
# With colordef you can chend the definition of a color. It works only if
|
||||||
|
# your termina supports it, if not those lines will be silently ignored.
|
||||||
|
# COLOR must be a valid color name and the RED GREEN and BLUE are numbers
|
||||||
|
# from 0 to 1000. Example:
|
||||||
|
#
|
||||||
|
# colordef red = 1000 0 0
|
||||||
|
#
|
||||||
|
# HINT: you have only 8 colors, but combined with attributes bold and/or
|
||||||
|
# reversed you actually get more colors.
|
||||||
|
#
|
||||||
|
# If you don't specify some elements, the default values will be used.
|
||||||
|
#
|
||||||
|
# Here follows the default configuration:
|
||||||
|
background = default default
|
||||||
|
frame = default default
|
||||||
|
window_title = default default
|
||||||
|
directory = default default bold
|
||||||
|
selected_directory = default black bold
|
||||||
|
playlist = default default bold
|
||||||
|
selected_playlist = default black bold
|
||||||
|
file = default default
|
||||||
|
selected_file = default black
|
||||||
|
marked_file = green default bold
|
||||||
|
marked_selected_file = green black bold
|
||||||
|
info = blue default bold
|
||||||
|
status = default default
|
||||||
|
title = default default bold
|
||||||
|
state = default default bold
|
||||||
|
current_time = default default bold
|
||||||
|
time_left = default default bold
|
||||||
|
total_time = default default bold
|
||||||
|
time_total_frames = default default
|
||||||
|
sound_parameters = default default bold
|
||||||
|
legend = default default
|
||||||
|
disabled = blue default bold
|
||||||
|
enabled = default default bold
|
||||||
|
empty_mixer_bar = default default
|
||||||
|
filled_mixer_bar = black cyan
|
||||||
|
empty_time_bar = default default
|
||||||
|
filled_time_bar = black cyan
|
||||||
|
entry = default default
|
||||||
|
entry_title = black cyan
|
||||||
|
error = red default bold
|
||||||
|
message = green default bold
|
||||||
|
plist_time = default default
|
|
@ -1,8 +1,8 @@
|
||||||
;; -*- eval: (git-auto-commit-mode 1) -*-
|
;;;_ Import
|
||||||
(use-modules (ice-9 popen)
|
(use-modules (ice-9 popen)
|
||||||
(ice-9 rdelim))
|
(ice-9 rdelim))
|
||||||
|
|
||||||
;;; Variables
|
;;;_ Variables
|
||||||
(define modkey 'mod4)
|
(define modkey 'mod4)
|
||||||
(define dmenu-font
|
(define dmenu-font
|
||||||
"-misc-tamsyn-medium-r-normal-*-14-*-*-*-*-*-iso8859-*")
|
"-misc-tamsyn-medium-r-normal-*-14-*-*-*-*-*-iso8859-*")
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
(define previous-tag '())
|
(define previous-tag '())
|
||||||
(define current-tag "default")
|
(define current-tag "default")
|
||||||
|
|
||||||
;;; Macros
|
;;;_ Macros
|
||||||
(define-macro (cmd command)
|
(define-macro (cmd command)
|
||||||
`(lambda ()
|
`(lambda ()
|
||||||
(run-command ,command)
|
(run-command ,command)
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
(xbindkey-function `(,modkey g) reset-main-binding)
|
(xbindkey-function `(,modkey g) reset-main-binding)
|
||||||
(grab-all-keys)))
|
(grab-all-keys)))
|
||||||
|
|
||||||
;;; Functions
|
;;;_ Functions
|
||||||
(define (reset-main-binding)
|
(define (reset-main-binding)
|
||||||
"reset first binding"
|
"reset first binding"
|
||||||
(close-gui-window)
|
(close-gui-window)
|
||||||
|
@ -66,19 +66,34 @@
|
||||||
(close-port file)
|
(close-port file)
|
||||||
tag))
|
tag))
|
||||||
|
|
||||||
(define (switch-tags)
|
(define (switch-to-tag tag)
|
||||||
"Switch to another tag"
|
(let ((tags (get-tags)))
|
||||||
(let* ((tags (get-tags))
|
|
||||||
(tag (choose-tag "Switch to tag" tags)))
|
|
||||||
(if (string? tag)
|
(if (string? tag)
|
||||||
(begin
|
(begin
|
||||||
(if (not (member tag tags))
|
(if (not (member tag tags))
|
||||||
(system (string-append "herbstclient add " tag)))
|
(system (string-append "herbstclient add " tag)))
|
||||||
(set! previous-tag current-tag)
|
(set! previous-tag current-tag)
|
||||||
(set! current-tag tag)
|
(set! current-tag tag)
|
||||||
(run-command (string-append "herbstclient use " tag))))
|
(run-command (string-append "herbstclient use " tag))))))
|
||||||
|
|
||||||
|
(define (switch-tags)
|
||||||
|
"Switch to another tag"
|
||||||
|
(let* ((tags (get-tags))
|
||||||
|
(tag (choose-tag "Switch to tag" tags)))
|
||||||
|
(switch-to-tag tag)
|
||||||
(reset-main-binding)))
|
(reset-main-binding)))
|
||||||
|
|
||||||
|
(define (switch-and-run)
|
||||||
|
"Ask for a command to run, switch to a tag with that name and run
|
||||||
|
the command."
|
||||||
|
(let* ((file (open-input-pipe
|
||||||
|
(string-append "dmenu_pick -p 'Run:' " dmenu-args)))
|
||||||
|
(prog (read-line file)))
|
||||||
|
(close-port file)
|
||||||
|
(switch-to-tag prog)
|
||||||
|
(run-command prog))
|
||||||
|
(reset-main-binding))
|
||||||
|
|
||||||
(define (kill-tag)
|
(define (kill-tag)
|
||||||
"Kill a selected tag"
|
"Kill a selected tag"
|
||||||
(let* ((tags (get-tags))
|
(let* ((tags (get-tags))
|
||||||
|
@ -123,7 +138,7 @@
|
||||||
(close-pipe dzen-pipe)
|
(close-pipe dzen-pipe)
|
||||||
(set! dzen-pipe '())))
|
(set! dzen-pipe '())))
|
||||||
|
|
||||||
;;; Maps
|
;;;_ Maps
|
||||||
(define (main-binding)
|
(define (main-binding)
|
||||||
"First binding"
|
"First binding"
|
||||||
(xbindkey `(,modkey shift "1") (string-append "dmenu_run -p 'Run:' " dmenu-args))
|
(xbindkey `(,modkey shift "1") (string-append "dmenu_run -p 'Run:' " dmenu-args))
|
||||||
|
@ -142,6 +157,10 @@
|
||||||
(xbindkey '(XF86AudioPrev) "mpc prev")
|
(xbindkey '(XF86AudioPrev) "mpc prev")
|
||||||
(xbindkey '(XF86AudioNext) "mpc next")
|
(xbindkey '(XF86AudioNext) "mpc next")
|
||||||
(xbindkey '(XF86Tools) "ncmpcpp")
|
(xbindkey '(XF86Tools) "ncmpcpp")
|
||||||
|
(xbindkey `(,modkey b) "herbstclient focus left")
|
||||||
|
(xbindkey `(,modkey n) "herbstclient focus down")
|
||||||
|
(xbindkey `(,modkey p) "herbstclient focus up")
|
||||||
|
(xbindkey `(,modkey f) "herbstclient focus right")
|
||||||
(xbindkey-function `(,modkey g) reset-main-binding))
|
(xbindkey-function `(,modkey g) reset-main-binding))
|
||||||
|
|
||||||
(create-map X-function-map
|
(create-map X-function-map
|
||||||
|
@ -158,7 +177,8 @@
|
||||||
(xbindkey-function '(shift f) (cmd "herbstclient fullscreen toggle"))
|
(xbindkey-function '(shift f) (cmd "herbstclient fullscreen toggle"))
|
||||||
(xbindkey-function '(p) (cmd "herbstclient pseudotile toggle"))
|
(xbindkey-function '(p) (cmd "herbstclient pseudotile toggle"))
|
||||||
(xbindkey-function '(r) resize-map)
|
(xbindkey-function '(r) resize-map)
|
||||||
(xbindkey-function '(m) move-to-tag))
|
(xbindkey-function '(m) move-to-tag)
|
||||||
|
(xbindkey-function `(,modkey f) switch-and-run))
|
||||||
|
|
||||||
(create-map W-function-map
|
(create-map W-function-map
|
||||||
(gui-print "S-w")
|
(gui-print "S-w")
|
||||||
|
@ -186,5 +206,10 @@
|
||||||
(xbindkey `(,modkey f) "herbstclient resize right +0.05")
|
(xbindkey `(,modkey f) "herbstclient resize right +0.05")
|
||||||
(xbindkey-function '(Return) reset-main-binding))
|
(xbindkey-function '(Return) reset-main-binding))
|
||||||
|
|
||||||
;;; Main
|
;;;_ Main
|
||||||
(main-binding)
|
(main-binding)
|
||||||
|
|
||||||
|
;;;_ Local Variables
|
||||||
|
;; Local Variables:
|
||||||
|
;; eval: (git-auto-commit-mode 1)
|
||||||
|
;; End:
|
||||||
|
|
32
.xinitrc
32
.xinitrc
|
@ -1,30 +1,26 @@
|
||||||
# -*- mode: shell-script; eval: (git-auto-commit-mode 1) -*-
|
#_ Modify keys
|
||||||
|
|
||||||
# -----[ Set background ]---------------------------------------------
|
|
||||||
hsetroot -center ~/pictures/wallpapers/3600x1080/wallpaper-1460625.jpg
|
|
||||||
|
|
||||||
# -----[ Modify keys ]------------------------------------------------
|
|
||||||
xmodmap ~/.Xmodmap
|
xmodmap ~/.Xmodmap
|
||||||
|
#_ Start some programs
|
||||||
# -----[ Start some programs ]----------------------------------------
|
|
||||||
conky
|
|
||||||
numlockx &
|
numlockx &
|
||||||
emacs --daemon
|
emacs --daemon &
|
||||||
xbindkeys
|
xbindkeys &
|
||||||
|
#_. mpdscribble
|
||||||
# mpdscribble
|
|
||||||
pidof mpdscribble >& /dev/null
|
pidof mpdscribble >& /dev/null
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
mpdscribble &
|
mpdscribble &
|
||||||
fi
|
fi
|
||||||
|
#_. mpdnotify
|
||||||
mpc idleloop player | { while read; do notify-send "`mpc current`"; done } &
|
mpc idleloop player | { while read; do notify-send "`mpc current`"; done } &
|
||||||
|
#_ Start notifier
|
||||||
# -----[ Start notifier ]---------------------------------------------
|
|
||||||
/usr/bin/dunst \
|
/usr/bin/dunst \
|
||||||
-fn "-misc-tamsyn-medium-r-normal-*-14-*-*-*-*-*-iso8859-*" \
|
-fn "-misc-tamsyn-medium-r-normal-*-14-*-*-*-*-*-iso8859-*" \
|
||||||
-nb "#000000" -nf "#15abc3" &
|
-nb "#000000" -nf "#15abc3" &
|
||||||
|
#_ Start session
|
||||||
# -----[ Start session ]----------------------------------------------
|
|
||||||
exec ck-launch-session /usr/bin/herbstluftwm 2>&1 > ~/.xsession_errors
|
exec ck-launch-session /usr/bin/herbstluftwm 2>&1 > ~/.xsession_errors
|
||||||
|
#_ Local Variables
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# eval: (git-auto-commit-mode 1)
|
||||||
|
# eval: (allout-mode 1)
|
||||||
|
# End:
|
||||||
|
|
Loading…
Reference in a new issue