From 548a4425c43528d1a65d5912fa73390bcf519dee Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 22 Feb 2018 23:09:45 +0100 Subject: Restructure for compatibility with GNU stow --- .config/dunst/dunstrc | 245 -------------------------------- .config/i3/config | 148 ------------------- .config/i3status/config | 66 --------- .config/latexmk/latexmkrc | 1 - .config/npm/config | 2 - .config/sh/alias.sh | 2 - .config/sh/environment.sh | 20 --- .config/user-dirs.dirs | 8 -- .config/vim/after/ftplugin/cpp.vim | 5 - .config/vim/ftdetect/cls.vim | 1 - .config/vim/ftplugin/c.vim | 8 -- .config/vim/ftplugin/html.vim | 3 - .config/vim/ftplugin/javascript.vim | 3 - .config/vim/ftplugin/mail.vim | 2 - .config/vim/ftplugin/php.vim | 3 - .config/vim/ftplugin/tex.vim | 5 - .config/vim/ftplugin/yaml.vim | 3 - .mailcap | 3 - .vimrc | 45 ------ dunst/.config/dunst/dunstrc | 245 ++++++++++++++++++++++++++++++++ i3/.config/i3/config | 148 +++++++++++++++++++ i3status/.config/i3status/config | 66 +++++++++ latexmk/.config/latexmk/latexmkrc | 1 + mailcap/.mailcap | 3 + npm/.config/npm/config | 2 + sh/.config/sh/alias.sh | 2 + sh/.config/sh/environment.sh | 20 +++ vim/.config/vim/after/ftplugin/cpp.vim | 5 + vim/.config/vim/ftdetect/cls.vim | 1 + vim/.config/vim/ftplugin/c.vim | 8 ++ vim/.config/vim/ftplugin/html.vim | 3 + vim/.config/vim/ftplugin/javascript.vim | 3 + vim/.config/vim/ftplugin/mail.vim | 2 + vim/.config/vim/ftplugin/php.vim | 3 + vim/.config/vim/ftplugin/tex.vim | 5 + vim/.config/vim/ftplugin/yaml.vim | 3 + vim/.vimrc | 45 ++++++ xdg-user-dirs/.config/user-dirs.dirs | 8 ++ 38 files changed, 573 insertions(+), 573 deletions(-) delete mode 100644 .config/dunst/dunstrc delete mode 100644 .config/i3/config delete mode 100644 .config/i3status/config delete mode 100644 .config/latexmk/latexmkrc delete mode 100644 .config/npm/config delete mode 100644 .config/sh/alias.sh delete mode 100644 .config/sh/environment.sh delete mode 100644 .config/user-dirs.dirs delete mode 100644 .config/vim/after/ftplugin/cpp.vim delete mode 100644 .config/vim/ftdetect/cls.vim delete mode 100644 .config/vim/ftplugin/c.vim delete mode 100644 .config/vim/ftplugin/html.vim delete mode 100644 .config/vim/ftplugin/javascript.vim delete mode 100644 .config/vim/ftplugin/mail.vim delete mode 100644 .config/vim/ftplugin/php.vim delete mode 100644 .config/vim/ftplugin/tex.vim delete mode 100644 .config/vim/ftplugin/yaml.vim delete mode 100644 .mailcap delete mode 100644 .vimrc create mode 100644 dunst/.config/dunst/dunstrc create mode 100644 i3/.config/i3/config create mode 100644 i3status/.config/i3status/config create mode 100644 latexmk/.config/latexmk/latexmkrc create mode 100644 mailcap/.mailcap create mode 100644 npm/.config/npm/config create mode 100644 sh/.config/sh/alias.sh create mode 100644 sh/.config/sh/environment.sh create mode 100644 vim/.config/vim/after/ftplugin/cpp.vim create mode 100644 vim/.config/vim/ftdetect/cls.vim create mode 100644 vim/.config/vim/ftplugin/c.vim create mode 100644 vim/.config/vim/ftplugin/html.vim create mode 100644 vim/.config/vim/ftplugin/javascript.vim create mode 100644 vim/.config/vim/ftplugin/mail.vim create mode 100644 vim/.config/vim/ftplugin/php.vim create mode 100644 vim/.config/vim/ftplugin/tex.vim create mode 100644 vim/.config/vim/ftplugin/yaml.vim create mode 100644 vim/.vimrc create mode 100644 xdg-user-dirs/.config/user-dirs.dirs diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc deleted file mode 100644 index ce7ef06..0000000 --- a/.config/dunst/dunstrc +++ /dev/null @@ -1,245 +0,0 @@ -[global] - font = Inconsolata 10 - - # Allow a small subset of html markup: - # bold - # italic - # strikethrough - # underline - # - # For a complete reference see - # . - # If markup is not allowed, those tags will be stripped out of the - # message. - allow_markup = yes - - # The format of the message. Possible variables are: - # %a appname - # %s summary - # %b body - # %i iconname (including its path) - # %I iconname (without its path) - # %p progress value if set ([ 0%] to [100%]) or nothing - # Markup is allowed - format = "%s\n%b" - - # Sort messages by urgency. - sort = yes - - # Show how many messages are currently hidden (because of geometry). - indicate_hidden = yes - - # Alignment of message text. - # Possible values are "left", "center" and "right". - alignment = left - - # The frequency with wich text that is longer than the notification - # window allows bounces back and forth. - # This option conflicts with "word_wrap". - # Set to 0 to disable. - bounce_freq = 0 - - # Show age of message if message is older than show_age_threshold - # seconds. - # Set to -1 to disable. - show_age_threshold = 60 - - # Split notifications into multiple lines if they don't fit into - # geometry. - word_wrap = yes - - # Ignore newlines '\n' in notifications. - ignore_newline = no - - - # The geometry of the window: - # [{width}]x{height}[+/-{x}+/-{y}] - # The geometry of the message window. - # The height is measured in number of notifications everything else - # in pixels. If the width is omitted but the height is given - # ("-geometry x2"), the message window expands over the whole screen - # (dmenu-like). If width is 0, the window expands to the longest - # message displayed. A positive x is measured from the left, a - # negative from the right side of the screen. Y is measured from - # the top and down respectevly. - # The width can be negative. In this case the actual width is the - # screen width minus the width defined in within the geometry option. - geometry = "300x5-30+20" - - # Shrink window if it's smaller than the width. Will be ignored if - # width is 0. - shrink = no - - # The transparency of the window. Range: [0; 100]. - # This option will only work if a compositing windowmanager is - # present (e.g. xcompmgr, compiz, etc.). - transparency = 0 - - # Don't remove messages, if the user is idle (no mouse or keyboard input) - # for longer than idle_threshold seconds. - # Set to 0 to disable. - idle_threshold = 120 - - # Which monitor should the notifications be displayed on. - monitor = 0 - - # Display notification on focused monitor. Possible modes are: - # mouse: follow mouse pointer - # keyboard: follow window with keyboard focus - # none: don't follow anything - # - # "keyboard" needs a windowmanager that exports the - # _NET_ACTIVE_WINDOW property. - # This should be the case for almost all modern windowmanagers. - # - # If this option is set to mouse or keyboard, the monitor option - # will be ignored. - follow = mouse - - # Should a notification popped up from history be sticky or timeout - # as if it would normally do. - sticky_history = yes - - # Maximum amount of notifications kept in history - history_length = 20 - - # Display indicators for URLs (U) and actions (A). - show_indicators = yes - - # The height of a single line. If the height is smaller than the - # font height, it will get raised to the font height. - # This adds empty space above and under the text. - line_height = 0 - - # Draw a line of "separatpr_height" pixel height between two - # notifications. - # Set to 0 to disable. - separator_height = 2 - - # Padding between text and separator. - padding = 8 - - # Horizontal padding. - horizontal_padding = 8 - - # Define a color for the separator. - # possible values are: - # * auto: dunst tries to find a color fitting to the background; - # * foreground: use the same color as the foreground; - # * frame: use the same color as the frame; - # * anything else will be interpreted as a X color. - separator_color = frame - - # Print a notification on startup. - # This is mainly for error detection, since dbus (re-)starts dunst - # automatically after a crash. - startup_notification = false - - # dmenu path. - dmenu = /usr/bin/dmenu -p dunst: - - # Browser for opening urls in context menu. - browser = /usr/bin/firefox -new-tab - - # Align icons left/right/off - icon_position = off - - # Paths to default icons. - icon_folders = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ - -[frame] - width = 3 - color = "#aaaaaa" - -[shortcuts] - - # Shortcuts are specified as [modifier+][modifier+]...key - # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", - # "mod3" and "mod4" (windows-key). - # Xev might be helpful to find names for keys. - - # Close notification. - close = ctrl+space - - # Close all notifications. - close_all = ctrl+shift+space - - # Redisplay last message(s). - # On the US keyboard layout "grave" is normally above TAB and left - # of "1". - #history = ctrl+grave - - # Context menu. - context = ctrl+shift+period - -[urgency_low] - # IMPORTANT: colors have to be defined in quotation marks. - # Otherwise the "#" and following would be interpreted as a comment. - background = "#222222" - foreground = "#888888" - timeout = 10 - -[urgency_normal] - background = "#285577" - foreground = "#ffffff" - timeout = 10 - -[urgency_critical] - background = "#900000" - foreground = "#ffffff" - timeout = 0 - - -# Every section that isn't one of the above is interpreted as a rules to -# override settings for certain messages. -# Messages can be matched by "appname", "summary", "body", "icon", "category", -# "msg_urgency" and you can override the "timeout", "urgency", "foreground", -# "background", "new_icon" and "format". -# Shell-like globbing will get expanded. -# -# SCRIPTING -# You can specify a script that gets run when the rule matches by -# setting the "script" option. -# The script will be called as follows: -# script appname summary body icon urgency -# where urgency can be "LOW", "NORMAL" or "CRITICAL". -# -# NOTE: if you don't want a notification to be displayed, set the format -# to "". -# NOTE: It might be helpful to run dunst -print in a terminal in order -# to find fitting options for rules. - -#[espeak] -# summary = "*" -# script = dunst_espeak.sh - -#[script-test] -# summary = "*script*" -# script = dunst_test.sh - -#[ignore] -# # This notification will not be displayed -# summary = "foobar" -# format = "" - -#[signed_on] -# appname = Pidgin -# summary = "*signed on*" -# urgency = low -# -#[signed_off] -# appname = Pidgin -# summary = *signed off* -# urgency = low -# -#[says] -# appname = Pidgin -# summary = *says* -# urgency = critical -# -#[twitter] -# appname = Pidgin -# summary = *twitter.com* -# urgency = normal -# -# vim: ft=cfg diff --git a/.config/i3/config b/.config/i3/config deleted file mode 100644 index e1d753d..0000000 --- a/.config/i3/config +++ /dev/null @@ -1,148 +0,0 @@ -# i3 config file (v4) -# -# Please see http://i3wm.org/docs/userguide.html for a complete reference! - -set $mod Mod4 - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -font pango:Inconsolata 13px - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec i3-sensible-terminal - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id i3-dmenu-desktop - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+odiaeresis focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+odiaeresis move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e 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+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' '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 - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym odiaeresis resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym $mod+r mode "resize" - -bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+ -bindsym XF86AudioLowerVolume exec amixer sset Master 5%- -bindsym XF86AudioMute exec amixer sset Master toggle - -bindsym XF86MonBrightnessUp exec xbacklight -inc 20 -bindsym XF86MonBrightnessDown exec xbacklight -dec 20 - -bindsym XF86ScreenSaver exec i3lock -def - -bindsym $mod+x move workspace to output right - -bindsym $mod+p exec passmenu -bindsym $mod+Shift+p exec passmenu --type - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - status_command i3status -} diff --git a/.config/i3status/config b/.config/i3status/config deleted file mode 100644 index 2268298..0000000 --- a/.config/i3status/config +++ /dev/null @@ -1,66 +0,0 @@ -# i3status configuration file. -# see "man i3status" for documentation. - -# It is important that this file is edited as UTF-8. -# The following line should contain a sharp s: -# ß -# If the above line is not correctly displayed, fix your editor first! - -general { - colors = true - interval = 1 -} - -order += "ipv6" -order += "disk /" -order += "volume master" -order += "run_watch DHCP" -order += "run_watch VPN" -order += "wireless _first_" -order += "ethernet enp0s25" -order += "battery 1" -order += "load" -order += "tztime local" - -wireless _first_ { - format_up = "W: (%quality at %essid) %ip" - format_down = "W: down" -} - -ethernet enp0s25 { - # if you use %speed, i3status requires root privileges - format_up = "E: %ip (%speed)" - format_down = "E: down" -} - -battery 1 { - format = "%status %percentage %remaining" -} - -run_watch DHCP { - pidfile = "/var/run/dhclient*.pid" -} - -run_watch VPN { - pidfile = "/var/run/vpnc.pid" -} - -tztime local { - format = "%Y-%m-%d %H:%M:%S" -} - -load { - format = "%1min" -} - -disk "/" { - format = "%avail" -} - -volume master { - format = "♪: %volume" - format_muted = "♪: muted (%volume)" - device = "default" - mixer = "Master" - mixer_idx = 0 -} diff --git a/.config/latexmk/latexmkrc b/.config/latexmk/latexmkrc deleted file mode 100644 index 31a1ed0..0000000 --- a/.config/latexmk/latexmkrc +++ /dev/null @@ -1 +0,0 @@ -$pdf_previewer = "zathura"; diff --git a/.config/npm/config b/.config/npm/config deleted file mode 100644 index 0931132..0000000 --- a/.config/npm/config +++ /dev/null @@ -1,2 +0,0 @@ -cache=$XDG_CACHE_HOME/npm -prefix=$XDG_DATA_HOME/npm diff --git a/.config/sh/alias.sh b/.config/sh/alias.sh deleted file mode 100644 index d802a19..0000000 --- a/.config/sh/alias.sh +++ /dev/null @@ -1,2 +0,0 @@ -alias irssi="irssi --home=${XDG_CONFIG_HOME}/irssi" -alias pandoc="pandoc --data-dir=${XDG_DATA_HOME}/pandoc" diff --git a/.config/sh/environment.sh b/.config/sh/environment.sh deleted file mode 100644 index 3d02b22..0000000 --- a/.config/sh/environment.sh +++ /dev/null @@ -1,20 +0,0 @@ -export XDG_CONFIG_HOME="${HOME}/.config" -export XDG_CACHE_HOME="${HOME}/.cache" -export XDG_DATA_HOME="${HOME}/.local/share" - -if [[ -d "${HOME}/bin" ]] -then - export PATH="${PATH}:${HOME}/bin" -fi - -export CARGO_HOME="${XDG_DATA_HOME}/cargo" -export ELINKS_CONFDIR="${XDG_CONFIG_HOME}/elinks" -export GIMP2_DIRECTORY="${XDG_CONFIG_HOME}/gimp" -export HISTFILE="${XDG_CACHE_HOME}/sh/history" -export LESSHISTFILE="${XDG_CACHE_HOME}/less/history" -export LESSKEY="${XDG_CONFIG_HOME}/less/lesskey" -export NOTMUCH_CONFIG="${XDG_CONFIG_HOME}/notmuch/config" -export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/config" -export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/pass" -export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority" -export XINITRC="${XDG_CONFIG_HOME}/X11/xinitrc" diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs deleted file mode 100644 index d2dba77..0000000 --- a/.config/user-dirs.dirs +++ /dev/null @@ -1,8 +0,0 @@ -XDG_DESKTOP_DIR="$HOME" -XDG_DOCUMENTS_DIR="$HOME/docs" -XDG_DOWNLOAD_DIR="/tmp" -XDG_MUSIC_DIR="$HOME/music" -XDG_PICTURES_DIR="$HOME/imgs" -XDG_PUBLICSHARE_DIR="" -XDG_TEMPLATES_DIR="" -XDG_VIDEOS_DIR="$HOME/vids" diff --git a/.config/vim/after/ftplugin/cpp.vim b/.config/vim/after/ftplugin/cpp.vim deleted file mode 100644 index 87152c2..0000000 --- a/.config/vim/after/ftplugin/cpp.vim +++ /dev/null @@ -1,5 +0,0 @@ -setlocal expandtab -setlocal shiftwidth=2 -setlocal softtabstop=2 - -setlocal cino=N-s diff --git a/.config/vim/ftdetect/cls.vim b/.config/vim/ftdetect/cls.vim deleted file mode 100644 index 1a23087..0000000 --- a/.config/vim/ftdetect/cls.vim +++ /dev/null @@ -1 +0,0 @@ -au BufNewFile,BufRead *.cls set filetype=tex diff --git a/.config/vim/ftplugin/c.vim b/.config/vim/ftplugin/c.vim deleted file mode 100644 index beaaf90..0000000 --- a/.config/vim/ftplugin/c.vim +++ /dev/null @@ -1,8 +0,0 @@ -setlocal tabstop=8 -setlocal softtabstop=8 -setlocal shiftwidth=8 -setlocal noexpandtab - -setlocal cino=:0 - -setlocal colorcolumn=80 diff --git a/.config/vim/ftplugin/html.vim b/.config/vim/ftplugin/html.vim deleted file mode 100644 index 765e06c..0000000 --- a/.config/vim/ftplugin/html.vim +++ /dev/null @@ -1,3 +0,0 @@ -setlocal expandtab -setlocal shiftwidth=4 -setlocal softtabstop=4 diff --git a/.config/vim/ftplugin/javascript.vim b/.config/vim/ftplugin/javascript.vim deleted file mode 100644 index 765e06c..0000000 --- a/.config/vim/ftplugin/javascript.vim +++ /dev/null @@ -1,3 +0,0 @@ -setlocal expandtab -setlocal shiftwidth=4 -setlocal softtabstop=4 diff --git a/.config/vim/ftplugin/mail.vim b/.config/vim/ftplugin/mail.vim deleted file mode 100644 index 0915315..0000000 --- a/.config/vim/ftplugin/mail.vim +++ /dev/null @@ -1,2 +0,0 @@ -setlocal noexpandtab -setlocal wrap diff --git a/.config/vim/ftplugin/php.vim b/.config/vim/ftplugin/php.vim deleted file mode 100644 index 00a6a64..0000000 --- a/.config/vim/ftplugin/php.vim +++ /dev/null @@ -1,3 +0,0 @@ -set expandtab -set shiftwidth=2 -set softtabstop=2 diff --git a/.config/vim/ftplugin/tex.vim b/.config/vim/ftplugin/tex.vim deleted file mode 100644 index 40e8bf7..0000000 --- a/.config/vim/ftplugin/tex.vim +++ /dev/null @@ -1,5 +0,0 @@ -setlocal tabstop=2 -setlocal shiftwidth=2 -setlocal expandtab - -setlocal colorcolumn=80 diff --git a/.config/vim/ftplugin/yaml.vim b/.config/vim/ftplugin/yaml.vim deleted file mode 100644 index 51f2b56..0000000 --- a/.config/vim/ftplugin/yaml.vim +++ /dev/null @@ -1,3 +0,0 @@ -setlocal expandtab -setlocal shiftwidth=2 -setlocal softtabstop=2 diff --git a/.mailcap b/.mailcap deleted file mode 100644 index 332d833..0000000 --- a/.mailcap +++ /dev/null @@ -1,3 +0,0 @@ -text/html; firefox %s ; -text/html; lynx -dump %s ; copiousoutput -application/vnd.oasis.opendocument.text; odt2txt %s ; copiousoutput diff --git a/.vimrc b/.vimrc deleted file mode 100644 index c760f86..0000000 --- a/.vimrc +++ /dev/null @@ -1,45 +0,0 @@ -" Disable Vi-compatibility -set nocompatible - -" Set paths according to XDG Base Directory specification -set viminfo+=n${XDG_CACHE_HOME}/vim/viminfo -set runtimepath=${XDG_CONFIG_HOME}/vim,$VIM,$VIMRUNTIME,${XDG_CONFIG_HOME}/vim/after -let g:netrw_home = "${XDG_CACHE_HOME}/vim" - -" Syntax highlighting -syntax on - -" Enable the filetype plugin -filetype plugin indent on -" LaTeX instead of Plain TeX -let g:tex_flavor = "latex" - -" Status line and numbers -set laststatus=2 -set number -set relativenumber -set ruler - -" Splits -set splitbelow -set splitright - -" Colors -set background=dark - -" Ignore some additional patterns when opening files -set wildignore+=*.o,*.so,*.swp,*/__pycache__/* - -" Search subdirectories with :find & co -set path+=** - -" Better completion -set wildmenu -set wildmode=longest:full,full - -" netrw -let g:netrw_banner=0 -" let g:netrw_browse_split=4 -let g:netrw_altv=1 -let g:netrw_liststyle=3 -let g:netrw_list_hide=netrw_gitignore#Hide() diff --git a/dunst/.config/dunst/dunstrc b/dunst/.config/dunst/dunstrc new file mode 100644 index 0000000..ce7ef06 --- /dev/null +++ b/dunst/.config/dunst/dunstrc @@ -0,0 +1,245 @@ +[global] + font = Inconsolata 10 + + # Allow a small subset of html markup: + # bold + # italic + # strikethrough + # underline + # + # For a complete reference see + # . + # If markup is not allowed, those tags will be stripped out of the + # message. + allow_markup = yes + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # Markup is allowed + format = "%s\n%b" + + # Sort messages by urgency. + sort = yes + + # Show how many messages are currently hidden (because of geometry). + indicate_hidden = yes + + # Alignment of message text. + # Possible values are "left", "center" and "right". + alignment = left + + # The frequency with wich text that is longer than the notification + # window allows bounces back and forth. + # This option conflicts with "word_wrap". + # Set to 0 to disable. + bounce_freq = 0 + + # Show age of message if message is older than show_age_threshold + # seconds. + # Set to -1 to disable. + show_age_threshold = 60 + + # Split notifications into multiple lines if they don't fit into + # geometry. + word_wrap = yes + + # Ignore newlines '\n' in notifications. + ignore_newline = no + + + # The geometry of the window: + # [{width}]x{height}[+/-{x}+/-{y}] + # The geometry of the message window. + # The height is measured in number of notifications everything else + # in pixels. If the width is omitted but the height is given + # ("-geometry x2"), the message window expands over the whole screen + # (dmenu-like). If width is 0, the window expands to the longest + # message displayed. A positive x is measured from the left, a + # negative from the right side of the screen. Y is measured from + # the top and down respectevly. + # The width can be negative. In this case the actual width is the + # screen width minus the width defined in within the geometry option. + geometry = "300x5-30+20" + + # Shrink window if it's smaller than the width. Will be ignored if + # width is 0. + shrink = no + + # The transparency of the window. Range: [0; 100]. + # This option will only work if a compositing windowmanager is + # present (e.g. xcompmgr, compiz, etc.). + transparency = 0 + + # Don't remove messages, if the user is idle (no mouse or keyboard input) + # for longer than idle_threshold seconds. + # Set to 0 to disable. + idle_threshold = 120 + + # Which monitor should the notifications be displayed on. + monitor = 0 + + # Display notification on focused monitor. Possible modes are: + # mouse: follow mouse pointer + # keyboard: follow window with keyboard focus + # none: don't follow anything + # + # "keyboard" needs a windowmanager that exports the + # _NET_ACTIVE_WINDOW property. + # This should be the case for almost all modern windowmanagers. + # + # If this option is set to mouse or keyboard, the monitor option + # will be ignored. + follow = mouse + + # Should a notification popped up from history be sticky or timeout + # as if it would normally do. + sticky_history = yes + + # Maximum amount of notifications kept in history + history_length = 20 + + # Display indicators for URLs (U) and actions (A). + show_indicators = yes + + # The height of a single line. If the height is smaller than the + # font height, it will get raised to the font height. + # This adds empty space above and under the text. + line_height = 0 + + # Draw a line of "separatpr_height" pixel height between two + # notifications. + # Set to 0 to disable. + separator_height = 2 + + # Padding between text and separator. + padding = 8 + + # Horizontal padding. + horizontal_padding = 8 + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Print a notification on startup. + # This is mainly for error detection, since dbus (re-)starts dunst + # automatically after a crash. + startup_notification = false + + # dmenu path. + dmenu = /usr/bin/dmenu -p dunst: + + # Browser for opening urls in context menu. + browser = /usr/bin/firefox -new-tab + + # Align icons left/right/off + icon_position = off + + # Paths to default icons. + icon_folders = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ + +[frame] + width = 3 + color = "#aaaaaa" + +[shortcuts] + + # Shortcuts are specified as [modifier+][modifier+]...key + # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", + # "mod3" and "mod4" (windows-key). + # Xev might be helpful to find names for keys. + + # Close notification. + close = ctrl+space + + # Close all notifications. + close_all = ctrl+shift+space + + # Redisplay last message(s). + # On the US keyboard layout "grave" is normally above TAB and left + # of "1". + #history = ctrl+grave + + # Context menu. + context = ctrl+shift+period + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#222222" + foreground = "#888888" + timeout = 10 + +[urgency_normal] + background = "#285577" + foreground = "#ffffff" + timeout = 10 + +[urgency_critical] + background = "#900000" + foreground = "#ffffff" + timeout = 0 + + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# Messages can be matched by "appname", "summary", "body", "icon", "category", +# "msg_urgency" and you can override the "timeout", "urgency", "foreground", +# "background", "new_icon" and "format". +# Shell-like globbing will get expanded. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: if you don't want a notification to be displayed, set the format +# to "". +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# format = "" + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +# vim: ft=cfg diff --git a/i3/.config/i3/config b/i3/.config/i3/config new file mode 100644 index 0000000..e1d753d --- /dev/null +++ b/i3/.config/i3/config @@ -0,0 +1,148 @@ +# i3 config file (v4) +# +# Please see http://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:Inconsolata 13px + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+odiaeresis focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+odiaeresis move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e 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+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' '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 + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym odiaeresis resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+r mode "resize" + +bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+ +bindsym XF86AudioLowerVolume exec amixer sset Master 5%- +bindsym XF86AudioMute exec amixer sset Master toggle + +bindsym XF86MonBrightnessUp exec xbacklight -inc 20 +bindsym XF86MonBrightnessDown exec xbacklight -dec 20 + +bindsym XF86ScreenSaver exec i3lock -def + +bindsym $mod+x move workspace to output right + +bindsym $mod+p exec passmenu +bindsym $mod+Shift+p exec passmenu --type + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status +} diff --git a/i3status/.config/i3status/config b/i3status/.config/i3status/config new file mode 100644 index 0000000..2268298 --- /dev/null +++ b/i3status/.config/i3status/config @@ -0,0 +1,66 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + interval = 1 +} + +order += "ipv6" +order += "disk /" +order += "volume master" +order += "run_watch DHCP" +order += "run_watch VPN" +order += "wireless _first_" +order += "ethernet enp0s25" +order += "battery 1" +order += "load" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet enp0s25 { + # if you use %speed, i3status requires root privileges + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery 1 { + format = "%status %percentage %remaining" +} + +run_watch DHCP { + pidfile = "/var/run/dhclient*.pid" +} + +run_watch VPN { + pidfile = "/var/run/vpnc.pid" +} + +tztime local { + format = "%Y-%m-%d %H:%M:%S" +} + +load { + format = "%1min" +} + +disk "/" { + format = "%avail" +} + +volume master { + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "default" + mixer = "Master" + mixer_idx = 0 +} diff --git a/latexmk/.config/latexmk/latexmkrc b/latexmk/.config/latexmk/latexmkrc new file mode 100644 index 0000000..31a1ed0 --- /dev/null +++ b/latexmk/.config/latexmk/latexmkrc @@ -0,0 +1 @@ +$pdf_previewer = "zathura"; diff --git a/mailcap/.mailcap b/mailcap/.mailcap new file mode 100644 index 0000000..332d833 --- /dev/null +++ b/mailcap/.mailcap @@ -0,0 +1,3 @@ +text/html; firefox %s ; +text/html; lynx -dump %s ; copiousoutput +application/vnd.oasis.opendocument.text; odt2txt %s ; copiousoutput diff --git a/npm/.config/npm/config b/npm/.config/npm/config new file mode 100644 index 0000000..0931132 --- /dev/null +++ b/npm/.config/npm/config @@ -0,0 +1,2 @@ +cache=$XDG_CACHE_HOME/npm +prefix=$XDG_DATA_HOME/npm diff --git a/sh/.config/sh/alias.sh b/sh/.config/sh/alias.sh new file mode 100644 index 0000000..d802a19 --- /dev/null +++ b/sh/.config/sh/alias.sh @@ -0,0 +1,2 @@ +alias irssi="irssi --home=${XDG_CONFIG_HOME}/irssi" +alias pandoc="pandoc --data-dir=${XDG_DATA_HOME}/pandoc" diff --git a/sh/.config/sh/environment.sh b/sh/.config/sh/environment.sh new file mode 100644 index 0000000..3d02b22 --- /dev/null +++ b/sh/.config/sh/environment.sh @@ -0,0 +1,20 @@ +export XDG_CONFIG_HOME="${HOME}/.config" +export XDG_CACHE_HOME="${HOME}/.cache" +export XDG_DATA_HOME="${HOME}/.local/share" + +if [[ -d "${HOME}/bin" ]] +then + export PATH="${PATH}:${HOME}/bin" +fi + +export CARGO_HOME="${XDG_DATA_HOME}/cargo" +export ELINKS_CONFDIR="${XDG_CONFIG_HOME}/elinks" +export GIMP2_DIRECTORY="${XDG_CONFIG_HOME}/gimp" +export HISTFILE="${XDG_CACHE_HOME}/sh/history" +export LESSHISTFILE="${XDG_CACHE_HOME}/less/history" +export LESSKEY="${XDG_CONFIG_HOME}/less/lesskey" +export NOTMUCH_CONFIG="${XDG_CONFIG_HOME}/notmuch/config" +export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/config" +export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/pass" +export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority" +export XINITRC="${XDG_CONFIG_HOME}/X11/xinitrc" diff --git a/vim/.config/vim/after/ftplugin/cpp.vim b/vim/.config/vim/after/ftplugin/cpp.vim new file mode 100644 index 0000000..87152c2 --- /dev/null +++ b/vim/.config/vim/after/ftplugin/cpp.vim @@ -0,0 +1,5 @@ +setlocal expandtab +setlocal shiftwidth=2 +setlocal softtabstop=2 + +setlocal cino=N-s diff --git a/vim/.config/vim/ftdetect/cls.vim b/vim/.config/vim/ftdetect/cls.vim new file mode 100644 index 0000000..1a23087 --- /dev/null +++ b/vim/.config/vim/ftdetect/cls.vim @@ -0,0 +1 @@ +au BufNewFile,BufRead *.cls set filetype=tex diff --git a/vim/.config/vim/ftplugin/c.vim b/vim/.config/vim/ftplugin/c.vim new file mode 100644 index 0000000..beaaf90 --- /dev/null +++ b/vim/.config/vim/ftplugin/c.vim @@ -0,0 +1,8 @@ +setlocal tabstop=8 +setlocal softtabstop=8 +setlocal shiftwidth=8 +setlocal noexpandtab + +setlocal cino=:0 + +setlocal colorcolumn=80 diff --git a/vim/.config/vim/ftplugin/html.vim b/vim/.config/vim/ftplugin/html.vim new file mode 100644 index 0000000..765e06c --- /dev/null +++ b/vim/.config/vim/ftplugin/html.vim @@ -0,0 +1,3 @@ +setlocal expandtab +setlocal shiftwidth=4 +setlocal softtabstop=4 diff --git a/vim/.config/vim/ftplugin/javascript.vim b/vim/.config/vim/ftplugin/javascript.vim new file mode 100644 index 0000000..765e06c --- /dev/null +++ b/vim/.config/vim/ftplugin/javascript.vim @@ -0,0 +1,3 @@ +setlocal expandtab +setlocal shiftwidth=4 +setlocal softtabstop=4 diff --git a/vim/.config/vim/ftplugin/mail.vim b/vim/.config/vim/ftplugin/mail.vim new file mode 100644 index 0000000..0915315 --- /dev/null +++ b/vim/.config/vim/ftplugin/mail.vim @@ -0,0 +1,2 @@ +setlocal noexpandtab +setlocal wrap diff --git a/vim/.config/vim/ftplugin/php.vim b/vim/.config/vim/ftplugin/php.vim new file mode 100644 index 0000000..00a6a64 --- /dev/null +++ b/vim/.config/vim/ftplugin/php.vim @@ -0,0 +1,3 @@ +set expandtab +set shiftwidth=2 +set softtabstop=2 diff --git a/vim/.config/vim/ftplugin/tex.vim b/vim/.config/vim/ftplugin/tex.vim new file mode 100644 index 0000000..40e8bf7 --- /dev/null +++ b/vim/.config/vim/ftplugin/tex.vim @@ -0,0 +1,5 @@ +setlocal tabstop=2 +setlocal shiftwidth=2 +setlocal expandtab + +setlocal colorcolumn=80 diff --git a/vim/.config/vim/ftplugin/yaml.vim b/vim/.config/vim/ftplugin/yaml.vim new file mode 100644 index 0000000..51f2b56 --- /dev/null +++ b/vim/.config/vim/ftplugin/yaml.vim @@ -0,0 +1,3 @@ +setlocal expandtab +setlocal shiftwidth=2 +setlocal softtabstop=2 diff --git a/vim/.vimrc b/vim/.vimrc new file mode 100644 index 0000000..c760f86 --- /dev/null +++ b/vim/.vimrc @@ -0,0 +1,45 @@ +" Disable Vi-compatibility +set nocompatible + +" Set paths according to XDG Base Directory specification +set viminfo+=n${XDG_CACHE_HOME}/vim/viminfo +set runtimepath=${XDG_CONFIG_HOME}/vim,$VIM,$VIMRUNTIME,${XDG_CONFIG_HOME}/vim/after +let g:netrw_home = "${XDG_CACHE_HOME}/vim" + +" Syntax highlighting +syntax on + +" Enable the filetype plugin +filetype plugin indent on +" LaTeX instead of Plain TeX +let g:tex_flavor = "latex" + +" Status line and numbers +set laststatus=2 +set number +set relativenumber +set ruler + +" Splits +set splitbelow +set splitright + +" Colors +set background=dark + +" Ignore some additional patterns when opening files +set wildignore+=*.o,*.so,*.swp,*/__pycache__/* + +" Search subdirectories with :find & co +set path+=** + +" Better completion +set wildmenu +set wildmode=longest:full,full + +" netrw +let g:netrw_banner=0 +" let g:netrw_browse_split=4 +let g:netrw_altv=1 +let g:netrw_liststyle=3 +let g:netrw_list_hide=netrw_gitignore#Hide() diff --git a/xdg-user-dirs/.config/user-dirs.dirs b/xdg-user-dirs/.config/user-dirs.dirs new file mode 100644 index 0000000..d2dba77 --- /dev/null +++ b/xdg-user-dirs/.config/user-dirs.dirs @@ -0,0 +1,8 @@ +XDG_DESKTOP_DIR="$HOME" +XDG_DOCUMENTS_DIR="$HOME/docs" +XDG_DOWNLOAD_DIR="/tmp" +XDG_MUSIC_DIR="$HOME/music" +XDG_PICTURES_DIR="$HOME/imgs" +XDG_PUBLICSHARE_DIR="" +XDG_TEMPLATES_DIR="" +XDG_VIDEOS_DIR="$HOME/vids" -- cgit v1.2.1