aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2014-10-23 18:32:20 -0700
committershmibs <shmibs@gmail.com>2014-10-23 18:32:20 -0700
commite5cf9723cd9f002de3e960f79a56d05304f730f9 (patch)
treecb3983090e8cb29e863f149727e322968b57957b
parent85904ee8ab3bf1ae2be36a66e38b7b77709af4ae (diff)
downloaddotfiles-e5cf9723cd9f002de3e960f79a56d05304f730f9.tar.gz
banshee => mpd+pms
-rwxr-xr-x.config/herbstluftwm/autostart8
-rwxr-xr-x.config/herbstluftwm/panel.sh31
-rw-r--r--.vimrc1
-rw-r--r--.xinitrc2
-rw-r--r--.zshrc1
5 files changed, 27 insertions, 16 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart
index adef952..238cbbe 100755
--- a/.config/herbstluftwm/autostart
+++ b/.config/herbstluftwm/autostart
@@ -130,13 +130,7 @@ hc keybind Mod4-Shift-o spawn ~/stuffs/tor/start-tor-browser
hc keybind Mod4-Shift-t spawn transmission-gtk
hc keybind Mod4-Shift-v spawn urxvt -name "vim" -e vim
hc keybind Mod4-Shift-w spawn urxvt -name "weechat" -e weechat
-
-# banshee
-hc keybind Mod4-Shift-Up spawn banshee --show
-hc keybind Mod4-Shift-Down spawn banshee --hide
-hc keybind Mod4-Left spawn banshee --restart-or-previous
-hc keybind Mod4-Right spawn banshee --next
-hc keybind Mod4-Down spawn banshee --toggle-playing
+hc keybind Mod4-Shift-p spawn urxvt -e pms
# dmenu
hc keybind Mod4-0 spawn dmenu_run -fn $efont -p "Run:" -h 18 -nb $bg_normal -nf $fg_normal \
diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh
index 8852924..3d264a0 100755
--- a/.config/herbstluftwm/panel.sh
+++ b/.config/herbstluftwm/panel.sh
@@ -112,7 +112,7 @@ fields[2]=$(update_winlist)
fields[3]="%{r}"
# when
fields[4]=""
-# banshee np
+# mpd
fields[5]=""
# conky stats
fields[6]=""
@@ -130,12 +130,6 @@ fields[7]=""
# with the first element in the line as a
# unique identifier for the event type
-get_stat() {
- {
- conky -c ~/.config/herbstluftwm/panel/conky_stats
- }
-}
-
get_date() {
{
while true; do
@@ -145,6 +139,12 @@ get_date() {
} | awk '$0 != l { print ; l=$0 ; fflush(); }'
}
+get_stat() {
+ {
+ conky -c ~/.config/herbstluftwm/panel/conky_stats
+ }
+}
+
get_when() {
{
while true; do
@@ -158,6 +158,12 @@ get_when() {
} | awk '$0 != l { print ; l=$0 ; fflush(); }'
}
+get_mpd() {
+ while true; do
+ mpc current -f "mpd\t%artist%\t%album%\t%title%" --wait
+ done
+}
+
#######################
@@ -174,6 +180,8 @@ get_when() {
child[2]=$!
get_when &
child[3]=$!
+ #get_mpd &
+ #child[4]=$!
hc --idle
@@ -282,6 +290,15 @@ get_when() {
date)
notify-send "$(cal)"
;;
+ #mpd)
+ # artist=$(mpc current -f '%artist%')
+ # albumartist=$(mpc current -f '%albumartist%')
+ # if [[ "$artist" != "$albumartist" ]]; then
+ # artist=$(echo -e "album artist: $albumartist\nartist: $artist")
+ # else
+ # artist=$(echo "artist: $artist")
+ # fi
+ # file="/home/shmibs/music/$(mpc current -f '%file%')"
stats)
urxvt -e htop &
;;
diff --git a/.vimrc b/.vimrc
index 1cd50a5..ce89dcb 100644
--- a/.vimrc
+++ b/.vimrc
@@ -139,7 +139,6 @@ function! Settings_tex()
setlocal noautoindent
setlocal nocindent
setlocal nosmartindent
- setlocal indentexpr=
setlocal shiftwidth=4
setlocal tabstop=4
let g:tex_comment_nospell=1
diff --git a/.xinitrc b/.xinitrc
index c120e73..5257a31 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -46,7 +46,7 @@ urxvtd &
command -v optirun && $(echo "" | optirun bar)
xsetroot -cursor_name left_ptr
-compton -b --backend glx --vsync drm &
+compton -b --backend glx --vsync drm
#ibus-daemon -x &
nitrogen --restore &
diff --git a/.zshrc b/.zshrc
index d5b07f5..a2b137b 100644
--- a/.zshrc
+++ b/.zshrc
@@ -211,3 +211,4 @@ update-backdrops() {
done
}
+