--- /dev/null
+[main]
+path = ~/.vdirsyncer/cal/default
--- /dev/null
+mkdir -pv ~/.config/{khal,khard,vdirsyncer,todoman}
+mkdir -pv ~/.mutt
+mkdir -pv ~/.gnupg
+mkdir -pv ~/.vim/{autoload,bundle}
+mkdir -pv ~/.{local/bin,config/{i3,i3status}}
+mkdir -pv ~/.{ncmpcpp,config/mpd}
--- /dev/null
+db_file "~/.config/mpd/database"
+log_file "~/.config/mpd/log"
+
+# Optional
+music_directory "/mnt/data/music"
+playlist_directory "~/.config/mpd/playlists"
+pid_file "~/.config/mpd/pid"
+state_file "~/.config/mpd/state"
+sticker_file "~/.config/mpd/sticker.sql"
+
+user "mrl"
+group "mrl"
+bind_to_address "any"
+
+auto_update "yes"
+follow_outside_symlinks "yes"
+follow_inside_symlinks "yes"
+
+input {
+ plugin "curl"
+# proxy "proxy.isp.com:8080"
+# proxy_user "user"
+# proxy_password "password"
+}
+
+audio_output {
+ type "pulse"
+ name "My Pulse Output"
+# server "remote_server" # optional
+# sink "remote_server_sink" # optional
+}
+
+audio_output {
+ type "fifo"
+ name "Visualizer feed"
+ path "/dev/shm/mpd.fifo"
+ format "44100:16:2"
+}
+
+filesystem_charset "UTF-8"
+id3v1_encoding "UTF-8"
--- /dev/null
+#!/bin/bash
+/usr/bin/ncmpcpp "$@"
+printf "\e]20;;100x100+1000+1000\a"
--- /dev/null
+def_key "j"
+ scroll_down
+def_key "k"
+ scroll_up
+def_key "J"
+ select_item
+ scroll_down
+def_key "K"
+ select_item
+ scroll_up
+def_key "l"
+ next_column
+def_key "l"
+ slave_screen
+def_key "h"
+ previous_column
+def_key "h"
+ master_screen
+def_key "ctrl-j"
+ page_down
+def_key "ctrl-k"
+ page_up
--- /dev/null
+mpd_music_dir = /mnt/data/music
+
+visualizer_fifo_path = /dev/shm/mpd.fifo
+visualizer_output_name = Visualizer feed
+visualizer_in_stereo = yes
+visualizer_type = spectrum
+visualizer_look = .*
+# ●▮
+
+browser_sort_mode = name
+browser_sort_format = {%A - }{%t}|{%f} {(%l)}
+
+execute_on_song_change = "~/.ncmpcpp/cover.sh"
+
+playlist_show_remaining_time = yes
+playlist_shorten_total_times = yes
+playlist_separate_albums = yes
+
+browser_display_mode = columns
+search_engine_display_mode = columns
+playlist_editor_display_mode = columns
+
+autocenter_mode = yes
+centered_cursor = yes
+
+default_place_to_search_in = database
+user_interface = alternative
+
+media_library_primary_tag = album_artist
+cyclic_scrolling = yes
+
+allow_for_physical_item_deletion = no
+
+startup_screen = "playlist"
+startup_slave_screen = "media_library"
+
+locked_screen_width_part = 50
+ask_for_locked_screen_width_part = no
+
+clock_display_seconds = yes
+display_volume_level = yes
+display_bitrate = yes
+display_remaining_time = yes
+
+ignore_leading_the = yes
+media_library_sort_by_mtime = no
+
+enable_window_title = yes
+
+external_editor = vim
+use_console_editor = yes
--- /dev/null
+#!/bin/bash
+shopt -s nullglob
+
+file="$(mpc --format /mnt/data/music/%file% current)"
+printf "\e]20;;100x100+1000+1000\a"
+for c in "${file%/*}/cover."*; do
+ printf "\e]20;$c;30x30+1+94:op=keep-aspect\a"
+done
--- /dev/null
+sudo apt-get install \
+ bash-completion \
+ build-essential \
+ dunst \
+ flashplugin-nonfree \
+ git \
+ gv \
+ i3-wm \
+ i3status \
+ iotop \
+ man-db \
+ mpd \
+ msmtp \
+ mutt \
+ ncmpcpp \
+ notmuch \
+ notmuch-mutt \
+ offlineimap \
+ pass \
+ pavucontrol \
+ pinentry-qt \
+ psmisc \
+ puddletag \
+ pulseaudio \
+ python3-virtualenv \
+ stow \
+ suckless-tools \
+ unzip \
+ vim \
+ virtualbox \
+ w3m \
+ x11-xserver-utils \
+ xinit
export NOTMUCH_CONFIG=~/.mutt/notmuch-config
export CLEAN_HOME=/opt/clean
-export PATH=$PATH:~/.local/bin:$CLEAN_HOME/lib/exe:$CLEAN_HOME/bin
+export PATH=~/.local/bin:$PATH:$CLEAN_HOME/lib/exe:$CLEAN_HOME/bin
alias ls='ls --color=auto'
alias grep='grep --color=auto'
set $fontsize 12
# lock the screen after 10 minutes
-exec xautolock -locker ~/.local/bin/lock.sh &\
- display -window root /tmp/bg.png &\
+exec display -window root /tmp/bg.png &\
dunst &\
- /usr/sbin/wpa_gui -t &\
urxvtd -q -o -f &\
+ mpd &\
xrdb -merge ~/.Xresources &\
setxkbmap -layout dvorak,ru -variant ,phonetic_dvorak -option compose:ralt,grp:menu_toggle
+# Toggle playback
+bindsym Pause exec mpc toggle
# Printscreen current window
bindsym Shift+Print exec ~/.local/bin/scr window
# Printscreen
bindsym Print exec ~/.local/bin/scr
-# lock the screen
-bindsym $mod+l exec xautolock -locknow
# put a password in the clipboard
bindsym $mod+y exec /usr/share/doc/pass/examples/dmenu/passmenu
bindsym $mod+b exec ~/.local/bin/network
status_command i3status
modifier $mod
font pango:$font $fontsize
- mode hide
- bindsym button1 exec killall -USR1 i3status
}
interval = 5
}
-order += "wireless wlp2s0"
-order += "ethernet enp3s0f1"
+order += "ethernet enp5s0"
order += "volume master"
order += "disk /"
-order += "wireless wlp1s0"
-order += "battery 0"
order += "tztime local"
-battery 0 {
- format = "%status %percentage %remaining"
- integer_battery_capacity = true
- format_down = "No battery"
- status_chr = "⚇ CHR"
- status_bat = "⚡ BAT"
- status_full = "☻ FULL"
- path = "/sys/class/power_supply/BAT%d/uevent"
- low_threshold = 10
-}
-
volume master {
format = "♪: %volume"
format_muted = "♪: muted (%volume)"
device = "hw:1"
}
-wireless wlp2s0 {
- format_up = "W: %essid %ip"
- format_down ="W: down"
-}
-
ethernet enp3s0f1 {
format_up = "E: %ip"
format_down ="E: down"