From 6beab063196d29e7485b275b05dd953c421b0caf Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Tue, 16 Oct 2018 11:48:16 +0200 Subject: [PATCH] Update readme and remove non-used dotfiles --- README.md | 26 +++---- music/.config/mpd/mpd.conf | 41 ----------- music/.local/bin/ncmpcpp | 3 - music/.ncmpcpp/bindings | 22 ------ music/.ncmpcpp/config | 52 -------------- music/.ncmpcpp/cover.sh | 8 --- vimperator/.vimperatorrc | 19 ----- x/.config/i3/config | 140 ------------------------------------- x/.config/i3status/config | 48 ------------- 9 files changed, 13 insertions(+), 346 deletions(-) delete mode 100644 music/.config/mpd/mpd.conf delete mode 100755 music/.local/bin/ncmpcpp delete mode 100644 music/.ncmpcpp/bindings delete mode 100644 music/.ncmpcpp/config delete mode 100755 music/.ncmpcpp/cover.sh delete mode 100644 vimperator/.vimperatorrc delete mode 100644 x/.config/i3/config delete mode 100644 x/.config/i3status/config diff --git a/README.md b/README.md index 8187cbf..5bfcd42 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ # Dotfiles. +## True dotfiles Tip: use GNU stow -`stow -t ~/ NAME` +`stow -t ~/ DIR` -Where NAME is: +## Other configurations -| `NAME` | contents ---- | --- -| cal | khard, khal, vdirsyncer -| email | mutt, offlineimap, notmuch, msmtp -| git | git -| pgp | gpg, gpg-agent -| shell | bash, top, readline -| vim | vim, vim-gnupg, vim-syntastic -| vimperator | vimperator -| x | i3, i3status, urxvt, font, gv, askpass -| misc\_binaries | screenshot script +- `udev/backup.rules` defines the rules for the automatic backup. + Install in: `/etc/udev/rules.d` +- `20-keyboard.conf` defines the keyboard layout. + Install in: `/etc/X11/xorg.conf.d/` +- `dirs.sh` creates all the directories so that stow won't link entire + directories. +- `pkgs.sh` installs all™ packages needed for the dotfiles +- `config.h` contains `config.h`'s for `st` and `dwm` +- `texlive.profile` contains a minimal texlive profile for unattended installation. + Install texlive by running `install-tl -profile texlive.profile` diff --git a/music/.config/mpd/mpd.conf b/music/.config/mpd/mpd.conf deleted file mode 100644 index 85a4202..0000000 --- a/music/.config/mpd/mpd.conf +++ /dev/null @@ -1,41 +0,0 @@ -db_file "~/.config/mpd/database" -log_file "~/.config/mpd/log" - -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" -} - -audio_output { - type "pulse" - name "My Pulse Output" -} - -audio_output { - type "cgi-output" - name "CGI Output" - command "/home/mrl/projects/mpdcgilog/mpdcgilog.py" -} - -audio_output { - type "fifo" - name "Visualizer feed" - path "/dev/shm/mpd.fifo" - format "44100:16:2" -} - -filesystem_charset "UTF-8" -id3v1_encoding "UTF-8" diff --git a/music/.local/bin/ncmpcpp b/music/.local/bin/ncmpcpp deleted file mode 100755 index 352eee5..0000000 --- a/music/.local/bin/ncmpcpp +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -/usr/bin/ncmpcpp "$@" -printf "\e]20;;100x100+1000+1000\a" diff --git a/music/.ncmpcpp/bindings b/music/.ncmpcpp/bindings deleted file mode 100644 index 5512564..0000000 --- a/music/.ncmpcpp/bindings +++ /dev/null @@ -1,22 +0,0 @@ -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 diff --git a/music/.ncmpcpp/config b/music/.ncmpcpp/config deleted file mode 100644 index c252e51..0000000 --- a/music/.ncmpcpp/config +++ /dev/null @@ -1,52 +0,0 @@ -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)} -song_columns_list_format = (6f)[green]{NE} (30)[]{a} (30)[white]{t} (30)[cyan]{b} (7f)[magenta]{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 diff --git a/music/.ncmpcpp/cover.sh b/music/.ncmpcpp/cover.sh deleted file mode 100755 index 755429a..0000000 --- a/music/.ncmpcpp/cover.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/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;50x50+1+94:op=keep-aspect\a" -done diff --git a/vimperator/.vimperatorrc b/vimperator/.vimperatorrc deleted file mode 100644 index 36d66b3..0000000 --- a/vimperator/.vimperatorrc +++ /dev/null @@ -1,19 +0,0 @@ -nnoremap j 5j -nnoremap k 5k -nnoremap l 5l -nnoremap h 5h - -nnoremap J -nnoremap K - -nnoremap l :tabn -nnoremap h :tabp - -nnoremap L :tabm! +1 -nnoremap H :tabm! -1 - -set gui=noaddons,nobookmarks,nomenu,nonavigation,tabs -set hintchars=uhetonasidyfpgcrlkxjbqmz - -set editor="urxvt -e vim" -set focuscontent diff --git a/x/.config/i3/config b/x/.config/i3/config deleted file mode 100644 index c6b06bb..0000000 --- a/x/.config/i3/config +++ /dev/null @@ -1,140 +0,0 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see http://i3wm.org/docs/userguide.html for a complete reference! - -set $mod Mod4 -set $font DejaVu Sans Mono -set $fontsize 12 - -# Toggle playback -bindsym Pause exec mpc toggle -# Printscreen -bindsym Shift+Print exec ~/.local/bin/scr window -bindsym Print exec ~/.local/bin/scr -# put a password in the clipboard -bindsym $mod+y exec passmenu -bindsym $mod+Shift+y exec passmenu --type - -# font for window titles. -font pango:$font 8 - -# use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod -hide_edge_borders none - -# start a terminal -bindsym $mod+Return exec st - -# lock -bindsym $mod+l exec xautolock -locknow - -# kill focused window -bindsym $mod+Shift+quotedbl kill - -# start dmenu -bindsym $mod+e exec dmenu_run -i -f -fn 'xft:$font:pixelsize=$fontsize' - -# change focus -bindsym $mod+h focus left -bindsym $mod+t focus down -bindsym $mod+n focus up -bindsym $mod+s focus right - -# alternatively, you can use the cursor keys: -bindsym XF86MonBrightnessUp exec xbacklight -inc 5 -bindsym XF86MonBrightnessDown exec xbacklight -dec 5 -bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle -bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% -bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% - -# move focused window -bindsym $mod+Shift+h move left -bindsym $mod+Shift+t move down -bindsym $mod+Shift+n move up -bindsym $mod+Shift+s move right - -# split in horizontal orientation -bindsym $mod+d split h - -# split in vertical orientation -bindsym $mod+k split v - -# enter fullscreen mode for the focused container -bindsym $mod+u fullscreen - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+o layout stacking -bindsym $mod+comma layout tabbed -bindsym $mod+period layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym $mod+d focus child - -# switch to workspace -bindsym $mod+1 workspace 1 -bindsym $mod+2 workspace 2 -bindsym $mod+3 workspace 3 -bindsym $mod+4 workspace 4 -bindsym $mod+5 workspace 5 -bindsym $mod+6 workspace 6 -bindsym $mod+7 workspace 7 -bindsym $mod+8 workspace 8 -bindsym $mod+9 workspace 9 -bindsym $mod+0 workspace 10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace 1 -bindsym $mod+Shift+2 move container to workspace 2 -bindsym $mod+Shift+3 move container to workspace 3 -bindsym $mod+Shift+4 move container to workspace 4 -bindsym $mod+Shift+5 move container to workspace 5 -bindsym $mod+Shift+6 move container to workspace 6 -bindsym $mod+Shift+7 move container to workspace 7 -bindsym $mod+Shift+8 move container to workspace 8 -bindsym $mod+Shift+9 move container to workspace 9 -bindsym $mod+Shift+0 move container to workspace 10 - -# reload the configuration file -bindsym $mod+Shift+j reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+p restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+period exec i3-msg exit - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - bindsym h resize shrink width 5 px or 5 ppt - bindsym t resize grow height 5 px or 5 ppt - bindsym n resize shrink height 5 px or 5 ppt - bindsym s resize grow width 5 px or 5 ppt - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym $mod+p mode "resize" - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - status_command i3status - font pango:$font $fontsize -} diff --git a/x/.config/i3status/config b/x/.config/i3status/config deleted file mode 100644 index 8da17fb..0000000 --- a/x/.config/i3status/config +++ /dev/null @@ -1,48 +0,0 @@ -general { - colors = true - interval = 3 -} - -order += "wireless _first_" -order += "ethernet _first_" -#order += "keyboard" -order += "volume master" -order += "disk /" -order += "battery 0" -order += "tztime local" - -battery 0 { - format = "%status %percentage" - 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 -} - -wireless _first_ { - format_up = "W: (%quality at %essid) %ip" - format_down = "W: down" -} -ethernet _first_ { - format_up = "E: %ip" - format_down = "E: down" -} - -volume master { - format = "♪: %volume" - format_muted = "♪: muted (%volume)" -} - -tztime local { - format = "%Y-%m-%d %H:%M:%S" -} - -disk "/" { - format = "%free/%total free" -} - -#keyboard { -#} -- 2.20.1