From c7ed3baddb09551ef7e7f41a5aa98332cd01fbb3 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 10 Feb 2017 11:37:37 -0600 Subject: [PATCH] getting ready for the new repo... --- .gitignore | 7 - browser/qutebrowser/.gitignore | 2 - browser/qutebrowser/keys.conf | 685 ------- browser/qutebrowser/link.bash | 10 - browser/qutebrowser/qsettings/QtProject.conf | 8 - browser/qutebrowser/qutebrowser.conf | 1568 ----------------- browser/qutebrowser/user-styles.css | 1 - colors/gen/gen.bash | 46 - colors/gen/schemes/bright.yml | 18 - colors/gen/schemes/donokai.yml | 18 - colors/link.bash | 14 - colors/shell | 125 -- colors/vim | 316 ---- colors/xresources | 41 - editor/kakoune/autoload/colorscheme.kak | 1 - editor/kakoune/kakrc | 7 - editor/kakoune/link.bash | 7 - editor/nvim/config/.gitignore | 3 - editor/nvim/config/colors/current.vim | 1 - editor/nvim/config/init.vim | 442 ----- editor/nvim/link.bash | 10 - email/mutt/config/.gitignore | 2 - email/mutt/config/muttrc | 121 -- email/mutt/config/signature | 2 - email/mutt/link.bash | 7 - env/sh/aliases | 82 - env/sh/bash_profile | 6 - env/sh/bashrc | 51 - env/sh/inputrc | 6 - env/sh/layout_dev.tmux | 5 - env/sh/link.bash | 23 - env/sh/prompt | 39 - env/sh/shell_funcs | 88 - env/sh/tmux.conf | 76 - env/wm/bspwm_config | 61 - env/wm/bspwmrc | 22 - env/wm/extras/bar/bar_commands.bash | 23 - env/wm/extras/bar/colors.bash | 12 - env/wm/extras/bar/formatter.bash | 83 - env/wm/extras/bar/modules/battery-bm.bash | 25 - env/wm/extras/bar/modules/bl.bash | 27 - env/wm/extras/bar/modules/bspwm-bm.bash | 67 - env/wm/extras/bar/modules/clock-bm.bash | 25 - env/wm/extras/bar/modules/date-bm.bash | 24 - env/wm/extras/bar/modules/example.bash | 40 - .../extras/bar/modules/pacaur-updates-bm.bash | 31 - env/wm/extras/bar/start.bash | 65 - env/wm/extras/bar/variables.bash | 60 - env/wm/link.bash | 15 - env/wm/sxhkdrc | 230 --- env/wm/wmstart | 5 - env/x/compton.conf | 53 - env/x/gtk2rc | 3 - env/x/gtk3settings.ini | 4 - env/x/link.bash | 35 - env/x/reset_monitors.bash | 5 - env/x/screensaver/lock.sh | 9 - env/x/screensaver/setup.sh | 5 - env/x/udev_rules/90-usb-device-plugin.rules | 1 - env/x/xinitrc | 23 - env/x/xloadresources | 42 - env/x/xprofile | 37 - env/x/xresources | 42 - link_all.bash | 37 - misc/git/gitconfig | 9 - misc/git/link.bash | 8 - misc/irc/link.bash | 9 - misc/irc/weechat.conf | 594 ------- music/mpd/link.bash | 8 - music/mpd/mpdconf | 413 ----- music/ncmpcpp/.ncmpcpp | 1 - music/ncmpcpp/bindings | 41 - music/ncmpcpp/link.bash | 8 - os/arch_linux/0-adduser.bash | 8 - os/arch_linux/1-git.bash | 4 - os/arch_linux/2-pacaur.bash | 25 - os/arch_linux/3-utils.bash | 58 - os/arch_linux/bar.bash | 4 - os/arch_linux/email.bash | 12 - os/arch_linux/fonts.bash | 21 - os/arch_linux/gmusic.bash | 13 - os/arch_linux/music.bash | 9 - os/arch_linux/neovim.bash | 17 - os/arch_linux/shell.bash | 14 - os/arch_linux/todo.bash | 28 - os/arch_linux/urxvt.bash | 4 - os/arch_linux/wm.bash | 8 - os/arch_linux/xorg.bash | 5 - readme.md | 72 - scripts/get_color.sh | 9 - scripts/get_x_fonts.sh | 22 - scripts/link.bash | 8 - scripts/load_secrets.sh | 1 - scripts/melee.bash | 6 - scripts/monitors.sh | 4 - scripts/reload_xresources.sh | 46 - scripts/set_sh_font.sh | 8 - scripts/steam.bash | 3 - scripts/sxhkd_helpers.sh | 0 scripts/syncs/starbound_download.sh | 9 - scripts/syncs/starbound_upload.sh | 7 - variables.bash | 58 - xsession-launch.bash | 11 - 103 files changed, 6534 deletions(-) delete mode 100644 .gitignore delete mode 100644 browser/qutebrowser/.gitignore delete mode 100644 browser/qutebrowser/keys.conf delete mode 100755 browser/qutebrowser/link.bash delete mode 100644 browser/qutebrowser/qsettings/QtProject.conf delete mode 100644 browser/qutebrowser/qutebrowser.conf delete mode 100644 browser/qutebrowser/user-styles.css delete mode 100755 colors/gen/gen.bash delete mode 100644 colors/gen/schemes/bright.yml delete mode 100644 colors/gen/schemes/donokai.yml delete mode 100755 colors/link.bash delete mode 100755 colors/shell delete mode 100644 colors/vim delete mode 100644 colors/xresources delete mode 100644 editor/kakoune/autoload/colorscheme.kak delete mode 100644 editor/kakoune/kakrc delete mode 100755 editor/kakoune/link.bash delete mode 100644 editor/nvim/config/.gitignore delete mode 120000 editor/nvim/config/colors/current.vim delete mode 100644 editor/nvim/config/init.vim delete mode 100755 editor/nvim/link.bash delete mode 100644 email/mutt/config/.gitignore delete mode 100644 email/mutt/config/muttrc delete mode 100644 email/mutt/config/signature delete mode 100755 email/mutt/link.bash delete mode 100644 env/sh/aliases delete mode 100644 env/sh/bash_profile delete mode 100644 env/sh/bashrc delete mode 100644 env/sh/inputrc delete mode 100644 env/sh/layout_dev.tmux delete mode 100755 env/sh/link.bash delete mode 100644 env/sh/prompt delete mode 100644 env/sh/shell_funcs delete mode 100644 env/sh/tmux.conf delete mode 100755 env/wm/bspwm_config delete mode 100755 env/wm/bspwmrc delete mode 100755 env/wm/extras/bar/bar_commands.bash delete mode 100644 env/wm/extras/bar/colors.bash delete mode 100755 env/wm/extras/bar/formatter.bash delete mode 100644 env/wm/extras/bar/modules/battery-bm.bash delete mode 100644 env/wm/extras/bar/modules/bl.bash delete mode 100644 env/wm/extras/bar/modules/bspwm-bm.bash delete mode 100644 env/wm/extras/bar/modules/clock-bm.bash delete mode 100644 env/wm/extras/bar/modules/date-bm.bash delete mode 100644 env/wm/extras/bar/modules/example.bash delete mode 100644 env/wm/extras/bar/modules/pacaur-updates-bm.bash delete mode 100755 env/wm/extras/bar/start.bash delete mode 100644 env/wm/extras/bar/variables.bash delete mode 100755 env/wm/link.bash delete mode 100755 env/wm/sxhkdrc delete mode 100755 env/wm/wmstart delete mode 100644 env/x/compton.conf delete mode 100644 env/x/gtk2rc delete mode 100644 env/x/gtk3settings.ini delete mode 100755 env/x/link.bash delete mode 100755 env/x/reset_monitors.bash delete mode 100755 env/x/screensaver/lock.sh delete mode 100755 env/x/screensaver/setup.sh delete mode 100644 env/x/udev_rules/90-usb-device-plugin.rules delete mode 100644 env/x/xinitrc delete mode 100644 env/x/xloadresources delete mode 100644 env/x/xprofile delete mode 100755 env/x/xresources delete mode 100755 link_all.bash delete mode 100644 misc/git/gitconfig delete mode 100755 misc/git/link.bash delete mode 100755 misc/irc/link.bash delete mode 100644 misc/irc/weechat.conf delete mode 100755 music/mpd/link.bash delete mode 100644 music/mpd/mpdconf delete mode 120000 music/ncmpcpp/.ncmpcpp delete mode 100644 music/ncmpcpp/bindings delete mode 100755 music/ncmpcpp/link.bash delete mode 100755 os/arch_linux/0-adduser.bash delete mode 100755 os/arch_linux/1-git.bash delete mode 100755 os/arch_linux/2-pacaur.bash delete mode 100755 os/arch_linux/3-utils.bash delete mode 100755 os/arch_linux/bar.bash delete mode 100755 os/arch_linux/email.bash delete mode 100755 os/arch_linux/fonts.bash delete mode 100755 os/arch_linux/gmusic.bash delete mode 100755 os/arch_linux/music.bash delete mode 100755 os/arch_linux/neovim.bash delete mode 100755 os/arch_linux/shell.bash delete mode 100755 os/arch_linux/todo.bash delete mode 100755 os/arch_linux/urxvt.bash delete mode 100755 os/arch_linux/wm.bash delete mode 100755 os/arch_linux/xorg.bash delete mode 100644 readme.md delete mode 100644 scripts/get_color.sh delete mode 100644 scripts/get_x_fonts.sh delete mode 100755 scripts/link.bash delete mode 100755 scripts/load_secrets.sh delete mode 100755 scripts/melee.bash delete mode 100755 scripts/monitors.sh delete mode 100755 scripts/reload_xresources.sh delete mode 100644 scripts/set_sh_font.sh delete mode 100755 scripts/steam.bash delete mode 100644 scripts/sxhkd_helpers.sh delete mode 100755 scripts/syncs/starbound_download.sh delete mode 100755 scripts/syncs/starbound_upload.sh delete mode 100755 variables.bash delete mode 100755 xsession-launch.bash diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 9a4e25a..0000000 --- a/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -colors/gen/vendor -colors/gen/tmp -*.lock -*.log -*.pid -*.tmp -*.secret diff --git a/browser/qutebrowser/.gitignore b/browser/qutebrowser/.gitignore deleted file mode 100644 index 8c84be8..0000000 --- a/browser/qutebrowser/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -bookmarks/* -quickmarks diff --git a/browser/qutebrowser/keys.conf b/browser/qutebrowser/keys.conf deleted file mode 100644 index a3843c7..0000000 --- a/browser/qutebrowser/keys.conf +++ /dev/null @@ -1,685 +0,0 @@ -# vim: ft=conf -# -# In this config file, qutebrowser's key bindings are configured. -# The format looks like this: -# -# [keymode] -# -# command -# keychain -# keychain2 -# ... -# -# All blank lines and lines starting with '#' are ignored. -# Inline-comments are not permitted. -# -# keymode is a comma separated list of modes in which the key binding should be -# active. If keymode starts with !, the key binding is active in all modes -# except the listed modes. -# -# For special keys (can't be part of a keychain), enclose them in `<`...`>`. -# For modifiers, you can use either `-` or `+` as delimiters, and these names: -# -# * Control: `Control`, `Ctrl` -# * Meta: `Meta`, `Windows`, `Mod4` -# * Alt: `Alt`, `Mod1` -# * Shift: `Shift` -# -# For simple keys (no `<>`-signs), a capital letter means the key is pressed -# with Shift. For special keys (with `<>`-signs), you need to explicitly add -# `Shift-` to match a key pressed with shift. -# -# Note that default keybindings are always bound, and need to be explicitly -# unbound if you wish to remove them: -# -# -# keychain -# keychain2 -# ... - -[!normal] - -leave-mode - - - -[normal] -# Keybindings for normal mode. - -clear-keychain ;; search - - -set-cmd-text -s :open - o - -set-cmd-text :open {url:pretty} - go - -set-cmd-text -s :open -t - O - -set-cmd-text :open -t {url:pretty} - gO - -set-cmd-text -s :open -b - xo - -set-cmd-text :open -b {url:pretty} - xO - -set-cmd-text -s :open -w - wo - -set-cmd-text :open -w {url:pretty} - wO - -open -t - ga - - -open -w - - -tab-close - d - - -tab-close -o - D - -tab-only - co - -tab-focus - K - - -tab-move - gm - -tab-move - - gl - -tab-move + - gr - -tab-prev - J - - -tab-clone - gC - -reload - r - - -reload -f - R - - -back - H - -back -t - th - -back -w - wh - -forward - L - -forward -t - tl - -forward -w - wl - -fullscreen - - -hint - f - -hint all tab - F - -hint all window - wf - -hint all tab-bg - ;b - -hint all tab-fg - ;f - -hint all hover - ;h - -hint images - ;i - -hint images tab - ;I - -hint links fill :open {hint-url} - ;o - -hint links fill :open -t {hint-url} - ;O - -hint links yank - ;y - -hint links yank-primary - ;Y - -hint --rapid links tab-bg - ;r - -hint --rapid links window - ;R - -hint links download - ;d - -hint inputs - ;t - -scroll left - h - -scroll down - j - -scroll up - k - -scroll right - l - -undo - u - - -scroll-perc 0 - gg - -scroll-perc - G - -search-next - n - -search-prev - N - -enter-mode insert - i - -enter-mode caret - v - -enter-mode set_mark - ` - -enter-mode jump_mark - ' - -yank - yy - -yank -s - yY - -yank title - yt - -yank title -s - yT - -yank domain - yd - -yank domain -s - yD - -yank pretty-url - yp - -yank pretty-url -s - yP - -open -- {clipboard} - pp - -open -- {primary} - pP - -open -t -- {clipboard} - Pp - -open -t -- {primary} - PP - -open -w -- {clipboard} - wp - -open -w -- {primary} - wP - -quickmark-save - m - -set-cmd-text -s :quickmark-load - b - -set-cmd-text -s :quickmark-load -t - B - -set-cmd-text -s :quickmark-load -w - wb - -bookmark-add - M - -set-cmd-text -s :bookmark-load - gb - -set-cmd-text -s :bookmark-load -t - gB - -set-cmd-text -s :bookmark-load -w - wB - -save - sf - -set-cmd-text -s :set - ss - -set-cmd-text -s :set -t - sl - -set-cmd-text -s :bind - sk - -zoom-out - - - -zoom-in - + - -zoom - = - -navigate prev - [[ - -navigate next - ]] - -navigate prev -t - {{ - -navigate next -t - }} - -navigate up - gu - -navigate up -t - gU - -navigate increment - - -navigate decrement - - -inspector - wi - -download - gd - -download-cancel - ad - -download-clear - cd - -view-source - gf - -set-cmd-text -s :buffer - gt - -tab-focus last - - -enter-mode passthrough - - -quit - - -scroll-page 0 1 - - -scroll-page 0 -1 - - -scroll-page 0 0.5 - - -scroll-page 0 -0.5 - - -tab-focus 1 - - -tab-focus 2 - - -tab-focus 3 - - -tab-focus 4 - - -tab-focus 5 - - -tab-focus 6 - - -tab-focus 7 - - -tab-focus 8 - - -tab-focus 9 - - -home - - -stop - - -print - - -open qute:settings - Ss - -follow-selected - - - - - - - -follow-selected -t - - - -repeat-command - . - -set-cmd-text / - / - -set-cmd-text ? - ? - -set-cmd-text : - : - -record-macro - q - -run-macro - @ - -[insert] -# Keybindings for insert mode. -# Since normal keypresses are passed through, only special keys are -# supported in this mode. -# Useful hidden commands to map in this section: -# * `open-editor`: Open a texteditor with the focused field. -# * `paste-primary`: Paste primary selection at cursor position. - -open-editor - - -insert-text {primary} - - -[hint] -# Keybindings for hint mode. -# Since normal keypresses are passed through, only special keys are -# supported in this mode. -# Useful hidden commands to map in this section: -# * `follow-hint`: Follow the currently selected hint. - -follow-hint - - - - - - - -hint --rapid links tab-bg - - -hint links - - -hint all tab-bg - - -[command] -# Keybindings for command mode. -# Since normal keypresses are passed through, only special keys are -# supported in this mode. -# Useful hidden commands to map in this section: -# * `command-history-prev`: Switch to previous command in history. -# * `command-history-next`: Switch to next command in history. -# * `completion-item-focus`: Select another item in completion. -# * `command-accept`: Execute the command currently in the commandline. - -command-history-prev - - -command-history-next - - -completion-item-focus prev - - - -completion-item-focus next - - - -completion-item-del - - -command-accept - - - - - - - -completion-item-focus next-category - - -completion-item-focus prev-category - - -[prompt] -# Keybindings for prompts in the status line. -# You can bind normal keys in this mode, but they will be only active -# when a yes/no-prompt is asked. For other prompt modes, you can only -# bind special keys. -# Useful hidden commands to map in this section: -# * `prompt-accept`: Confirm the entered value. -# * `prompt-accept yes`: Answer yes to a yes/no question. -# * `prompt-accept no`: Answer no to a yes/no question. - -prompt-accept - - - - - - - -prompt-accept yes - y - -prompt-accept no - n - -prompt-open-download - - -prompt-item-focus prev - - - -prompt-item-focus next - - - -[command,prompt] - -rl-backward-char - - -rl-forward-char - - -rl-backward-word - - -rl-forward-word - - -rl-beginning-of-line - - -rl-end-of-line - - -rl-unix-line-discard - - -rl-kill-line - - -rl-kill-word - - -rl-unix-word-rubout - - - -rl-yank - - -rl-delete-char - - -rl-backward-delete-char - - -[caret] - -toggle-selection - v - - -drop-selection - - -enter-mode normal - c - -move-to-next-line - j - -move-to-prev-line - k - -move-to-next-char - l - -move-to-prev-char - h - -move-to-end-of-word - e - -move-to-next-word - w - -move-to-prev-word - b - -move-to-start-of-next-block - ] - -move-to-start-of-prev-block - [ - -move-to-end-of-next-block - } - -move-to-end-of-prev-block - { - -move-to-start-of-line - 0 - -move-to-end-of-line - $ - -move-to-start-of-document - gg - -move-to-end-of-document - G - -yank selection -s - Y - -yank selection - y - - - - - - - -scroll left - H - -scroll down - J - -scroll up - K - -scroll right - L - diff --git a/browser/qutebrowser/link.bash b/browser/qutebrowser/link.bash deleted file mode 100755 index 2b14ec1..0000000 --- a/browser/qutebrowser/link.bash +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -mkdir -p "$HOME/.config/qutebrowser" - -rm -rf "$HOME/.config/qutebrowser" -ln -s "$DOTFILES_PATH/browser/qutebrowser" "$HOME/.config/qutebrowser" - diff --git a/browser/qutebrowser/qsettings/QtProject.conf b/browser/qutebrowser/qsettings/QtProject.conf deleted file mode 100644 index e089795..0000000 --- a/browser/qutebrowser/qsettings/QtProject.conf +++ /dev/null @@ -1,8 +0,0 @@ -[FileDialog] -history=file:///usr/share/fonts/misc -lastVisited=file:///usr/share/fonts/misc -qtVersion=5.7.1 -shortcuts=file:, file:///home/daniel/usr -sidebarWidth=90 -treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xec\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xff\0\0\0\x1\0\0\0\0\0\0\0?\0\0\0\x1\0\0\0\0\0\0\0@\0\0\0\x1\0\0\0\0\0\0\0n\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff) -viewMode=Detail diff --git a/browser/qutebrowser/qutebrowser.conf b/browser/qutebrowser/qutebrowser.conf deleted file mode 100644 index 69cb5db..0000000 --- a/browser/qutebrowser/qutebrowser.conf +++ /dev/null @@ -1,1568 +0,0 @@ -# vim: ft=dosini - -# Configfile for qutebrowser. -# -# This configfile is parsed by python's configparser in extended -# interpolation mode. The format is very INI-like, so there are -# categories like [general] with "key = value"-pairs. -# -# Note that you shouldn't add your own comments, as this file is -# regenerated every time the config is saved. -# -# Interpolation looks like ${value} or ${section:value} and will be -# replaced by the respective value. -# -# Some settings will expand environment variables. Note that, since -# interpolation is run first, you will need to escape the $ char as -# described below. -# -# This is the default config, so if you want to remove anything from -# here (as opposed to change/add), for example a key binding, set it to -# an empty value. -# -# You will need to escape the following values: -# - # at the start of the line (at the first position of the key) (\#) -# - $ in a value ($$) - -[general] -# General/miscellaneous options. -# -# ignore-case (IgnoreCase): -# Whether to find text on a page case-insensitively. -# true: Search case-insensitively -# false: Search case-sensitively -# smart: Search case-sensitively if there are capital chars -# Default: smart -# -# startpage (List of String): -# The default page(s) to open at the start, separated by commas. -# Default: https://start.duckduckgo.com -# -# yank-ignored-url-parameters (List of String): -# The URL parameters to strip with :yank url, separated by commas. -# Default: -# ref,utm_source,utm_medium,utm_campaign,utm_term,utm_content -# -# default-open-dispatcher (String): -# The default program used to open downloads. Set to an empty string -# to use the default internal handler. -# Any {} in the string will be expanded to the filename, else the -# filename will be appended. -# Default: -# -# default-page (FuzzyUrl): -# The page to open if :open -t/-b/-w is used without URL. Use -# `about:blank` for a blank page. -# Default: ${startpage} -# -# auto-search (AutoSearch): -# Whether to start a search when something else than a URL is -# entered. -# naive: Use simple/naive check. -# dns: Use DNS requests (might be slow!). -# false: Never search automatically. -# Default: naive -# -# auto-save-config (Bool): -# Whether to save the config automatically on quit. -# Valid values: true, false -# Default: true -# -# auto-save-interval (Int): -# How often (in milliseconds) to auto-save config/cookies/etc. -# Default: 15000 -# -# editor (ShellCommand): -# The editor (and arguments) to use for the `open-editor` command. -# The arguments get split like in a shell, so you can use `"` or `'` -# to quote them. -# `{}` gets replaced by the filename of the file to be edited. -# Default: gvim -f "{}" -# -# editor-encoding (Encoding): -# Encoding to use for editor. -# Default: utf-8 -# -# private-browsing (Bool): -# Do not record visited pages in the history or store web page -# icons. -# Valid values: true, false -# Default: false -# -# developer-extras (Bool): -# Enable extra tools for Web developers. -# This needs to be enabled for `:inspector` to work and also adds an -# _Inspect_ entry to the context menu. For QtWebEngine, see -# 'qutebrowser --help' instead. -# Valid values: true, false -# Default: false -# -# print-element-backgrounds (Bool): -# Whether the background color and images are also drawn when the -# page is printed. -# Valid values: true, false -# Default: true -# -# xss-auditing (Bool): -# Whether load requests should be monitored for cross-site scripting -# attempts. -# Suspicious scripts will be blocked and reported in the inspector's -# JavaScript console. Enabling this feature might have an impact on -# performance. -# Valid values: true, false -# Default: false -# -# site-specific-quirks (Bool): -# Enable workarounds for broken sites. -# Valid values: true, false -# Default: true -# -# default-encoding (String): -# Default encoding to use for websites. -# The encoding must be a string describing an encoding such as -# _utf-8_, _iso-8859-1_, etc. If left empty a default value will be -# used. -# Default: -# -# new-instance-open-target (String): -# How to open links in an existing instance if a new one is -# launched. -# tab: Open a new tab in the existing window and activate the -# window. -# tab-bg: Open a new background tab in the existing window and -# activate the window. -# tab-silent: Open a new tab in the existing window without -# activating the window. -# tab-bg-silent: Open a new background tab in the existing -# window without activating the window. -# window: Open in a new window. -# Default: tab -# -# new-instance-open-target.window (String): -# Which window to choose when opening links as new tabs. -# first-opened: Open new tabs in the first (oldest) opened -# window. -# last-opened: Open new tabs in the last (newest) opened window. -# last-focused: Open new tabs in the most recently focused -# window. -# last-visible: Open new tabs in the most recently visible -# window. -# Default: last-focused -# -# log-javascript-console (String): -# How to log javascript console messages. -# none: Don't log messages. -# debug: Log messages with debug level. -# info: Log messages with info level. -# Default: debug -# -# save-session (Bool): -# Whether to always save the open pages. -# Valid values: true, false -# Default: false -# -# session-default-name (SessionName): -# The name of the session to save by default, or empty for the last -# loaded session. -# Default: -# -# url-incdec-segments (FlagList): -# The URL segments where `:navigate increment/decrement` will search -# for a number. -# Valid values: host, path, query, anchor -# Default: path,query -ignore-case = smart -startpage = https://duckduckgo.com -yank-ignored-url-parameters = ref,utm_source,utm_medium,utm_campaign,utm_term,utm_content -default-open-dispatcher = -default-page = ${startpage} -auto-search = naive -auto-save-config = true -auto-save-interval = 15000 -editor = urxvtc -e nvim "{}" -editor-encoding = utf-8 -private-browsing = false -developer-extras = true -print-element-backgrounds = true -xss-auditing = false -site-specific-quirks = true -default-encoding = -new-instance-open-target = tab -new-instance-open-target.window = last-focused -log-javascript-console = debug -save-session = true -session-default-name = -url-incdec-segments = path,query - -[ui] -# General options related to the user interface. -# -# zoom-levels (List of Perc): -# The available zoom levels, separated by commas. -# Default: -# 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -# -# default-zoom (Perc): -# The default zoom level. -# Default: 100% -# -# downloads-position (VerticalPosition): -# Where to show the downloaded files. -# Valid values: top, bottom -# Default: top -# -# status-position (VerticalPosition): -# The position of the status bar. -# Valid values: top, bottom -# Default: bottom -# -# message-timeout (Int): -# Time (in ms) to show messages in the statusbar for. -# Default: 2000 -# -# message-unfocused (Bool): -# Whether to show messages in unfocused windows. -# Valid values: true, false -# Default: false -# -# confirm-quit (ConfirmQuit): -# Whether to confirm quitting the application. -# always: Always show a confirmation. -# multiple-tabs: Show a confirmation if multiple tabs are -# opened. -# downloads: Show a confirmation if downloads are running -# never: Never show a confirmation. -# Default: never -# -# zoom-text-only (Bool): -# Whether the zoom factor on a frame applies only to the text or to -# all content. -# Valid values: true, false -# Default: false -# -# frame-flattening (Bool): -# Whether to expand each subframe to its contents. -# This will flatten all the frames to become one scrollable page. -# Valid values: true, false -# Default: false -# -# user-stylesheet (File): -# User stylesheet to use (absolute filename or filename relative to -# the config directory). Will expand environment variables. -# Default: -# -# hide-scrollbar (Bool): -# Hide the main scrollbar. -# Valid values: true, false -# Default: true -# -# css-media-type (String): -# Set the CSS media type. -# Default: -# -# smooth-scrolling (Bool): -# Whether to enable smooth scrolling for webpages. -# Valid values: true, false -# Default: false -# -# remove-finished-downloads (Int): -# Number of milliseconds to wait before removing finished downloads. -# Will not be removed if value is -1. -# Default: -1 -# -# hide-statusbar (Bool): -# Whether to hide the statusbar unless a message is shown. -# Valid values: true, false -# Default: false -# -# statusbar-padding (Padding): -# Padding for statusbar (top, bottom, left, right). -# Default: 1,1,0,0 -# -# window-title-format (FormatString): -# The format to use for the window title. The following placeholders -# are defined: -# * `{perc}`: The percentage as a string like `[10%]`. -# * `{perc_raw}`: The raw percentage, e.g. `10` -# * `{title}`: The title of the current web page -# * `{title_sep}`: The string ` - ` if a title is set, empty -# otherwise. -# * `{id}`: The internal window ID of this window. -# * `{scroll_pos}`: The page scroll position. -# * `{host}`: The host of the current web page. -# * `{backend}`: Either 'webkit' or 'webengine' -# Default: {perc}{title}{title_sep}qutebrowser -# -# modal-js-dialog (Bool): -# Use standard JavaScript modal dialog for alert() and confirm() -# Valid values: true, false -# Default: false -# -# hide-wayland-decoration (Bool): -# Hide the window decoration when using wayland (requires restart) -# Valid values: true, false -# Default: false -# -# keyhint-blacklist (List of String): -# Keychains that shouldn't be shown in the keyhint dialog -# Globs are supported, so ';*' will blacklist all keychainsstarting -# with ';'. Use '*' to disable keyhints -# Default: -# -# prompt-radius (Int): -# The rounding radius for the edges of prompts. -# Default: 8 -# -# prompt-filebrowser (Bool): -# Show a filebrowser in upload/download prompts. -# Valid values: true, false -# Default: true -zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% -default-zoom = 100% -downloads-position = top -status-position = bottom -message-timeout = 2000 -message-unfocused = false -confirm-quit = always -zoom-text-only = false -frame-flattening = false -user-stylesheet = ./user-styles.css -hide-scrollbar = true -css-media-type = -smooth-scrolling = true -remove-finished-downloads = -1 -hide-statusbar = true -statusbar-padding = 5,5,5,5 -window-title-format = {perc}{title}{title_sep}qutebrowser -modal-js-dialog = false -hide-wayland-decoration = false -keyhint-blacklist = -prompt-radius = 8 -prompt-filebrowser = true - -[network] -# Settings related to the network. -# -# do-not-track (Bool): -# Value to send in the `DNT` header. -# Valid values: true, false -# Default: true -# -# accept-language (String): -# Value to send in the `accept-language` header. -# Default: en-US,en -# -# referer-header (String): -# Send the Referer header -# always: Always send. -# never: Never send; this is not recommended, as some sites may -# break. -# same-domain: Only send for the same domain. This will still -# protect your privacy, but shouldn't break any sites. -# Default: same-domain -# -# user-agent (UserAgent): -# User agent to send. Empty to send the default. -# Default: -# -# proxy (Proxy): -# The proxy to use. -# In addition to the listed values, you can use a `socks://...` or -# `http://...` URL. -# system: Use the system wide proxy. -# none: Don't use any proxy -# Default: system -# -# proxy-dns-requests (Bool): -# Whether to send DNS requests over the configured proxy. -# Valid values: true, false -# Default: true -# -# ssl-strict (BoolAsk): -# Whether to validate SSL handshakes. -# Valid values: true, false, ask -# Default: ask -# -# dns-prefetch (Bool): -# Whether to try to pre-fetch DNS entries to speed up browsing. -# Valid values: true, false -# Default: true -# -# custom-headers (HeaderDict): -# Set custom headers for qutebrowser HTTP requests. -# Default: -# -# netrc-file (File): -# Set location of a netrc-file for HTTP authentication. If empty, -# ~/.netrc is used. -# Default: -do-not-track = true -accept-language = en-US,en -referer-header = same-domain -user-agent = Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36 -proxy = system -proxy-dns-requests = true -ssl-strict = ask -dns-prefetch = true -custom-headers = -netrc-file = - -[completion] -# Options related to completion and command history. -# -# show (String): -# When to show the autocompletion window. -# always: Whenever a completion is available. -# auto: Whenever a completion is requested. -# never: Never. -# Default: always -# -# download-path-suggestion (String): -# What to display in the download filename input. -# path: Show only the download path. -# filename: Show only download filename. -# both: Show download path and filename. -# Default: path -# -# timestamp-format (TimestampTemplate): -# How to format timestamps (e.g. for history) -# Default: %Y-%m-%d -# -# height (PercOrInt): -# The height of the completion, in px or as percentage of the -# window. -# Default: 50% -# -# cmd-history-max-items (Int): -# How many commands to save in the command history. -# 0: no history / -1: unlimited -# Default: 100 -# -# web-history-max-items (Int): -# How many URLs to show in the web history. -# 0: no history / -1: unlimited -# Default: 1000 -# -# quick-complete (Bool): -# Whether to move on to the next part when there's only one possible -# completion left. -# Valid values: true, false -# Default: true -# -# shrink (Bool): -# Whether to shrink the completion to be smaller than the configured -# size if there are no scrollbars. -# Valid values: true, false -# Default: false -# -# scrollbar-width (Int): -# Width of the scrollbar in the completion window (in px). -# Default: 12 -# -# scrollbar-padding (Int): -# Padding of scrollbar handle in completion window (in px). -# Default: 2 -show = always -download-path-suggestion = path -timestamp-format = %Y-%m-%d -height = 50% -cmd-history-max-items = 100 -web-history-max-items = 1000 -quick-complete = true -shrink = false -scrollbar-width = 12 -scrollbar-padding = 2 - -[input] -# Options related to input modes. -# -# timeout (Int): -# Timeout (in milliseconds) for ambiguous key bindings. -# If the current input forms both a complete match and a partial -# match, the complete match will be executed after this time. -# Default: 500 -# -# partial-timeout (Int): -# Timeout (in milliseconds) for partially typed key bindings. -# If the current input forms only partial matches, the keystring -# will be cleared after this time. -# Default: 5000 -# -# insert-mode-on-plugins (Bool): -# Whether to switch to insert mode when clicking flash and other -# plugins. -# Valid values: true, false -# Default: false -# -# auto-leave-insert-mode (Bool): -# Whether to leave insert mode if a non-editable element is clicked. -# Valid values: true, false -# Default: true -# -# auto-insert-mode (Bool): -# Whether to automatically enter insert mode if an editable element -# is focused after page load. -# Valid values: true, false -# Default: false -# -# forward-unbound-keys (String): -# Whether to forward unbound keys to the webview in normal mode. -# all: Forward all unbound keys. -# auto: Forward unbound non-alphanumeric keys. -# none: Don't forward any keys. -# Default: auto -# -# spatial-navigation (Bool): -# Enables or disables the Spatial Navigation feature. -# Spatial navigation consists in the ability to navigate between -# focusable elements in a Web page, such as hyperlinks and form -# controls, by using Left, Right, Up and Down arrow keys. For -# example, if a user presses the Right key, heuristics determine -# whether there is an element he might be trying to reach towards -# the right and which element he probably wants. -# Valid values: true, false -# Default: false -# -# links-included-in-focus-chain (Bool): -# Whether hyperlinks should be included in the keyboard focus chain. -# Valid values: true, false -# Default: true -# -# rocker-gestures (Bool): -# Whether to enable Opera-like mouse rocker gestures. This disables -# the context menu. -# Valid values: true, false -# Default: false -# -# mouse-zoom-divider (Int): -# How much to divide the mouse wheel movements to translate them -# into zoom increments. -# Default: 512 -timeout = 500 -partial-timeout = 5000 -insert-mode-on-plugins = false -auto-leave-insert-mode = true -auto-insert-mode = false -forward-unbound-keys = auto -spatial-navigation = false -links-included-in-focus-chain = true -rocker-gestures = false -mouse-zoom-divider = 512 - -[tabs] -# Configuration of the tab bar. -# -# background-tabs (Bool): -# Whether to open new tabs (middleclick/ctrl+click) in background. -# Valid values: true, false -# Default: false -# -# select-on-remove (SelectOnRemove): -# Which tab to select when the focused tab is removed. -# prev: Select the tab which came before the closed one (left in -# horizontal, above in vertical). -# next: Select the tab which came after the closed one (right in -# horizontal, below in vertical). -# last-used: Select the previously selected tab. -# Default: next -# -# new-tab-position (NewTabPosition): -# How new tabs are positioned. -# prev: Before the current tab. -# next: After the current tab. -# first: At the beginning. -# last: At the end. -# Default: next -# -# new-tab-position-explicit (NewTabPosition): -# How new tabs opened explicitly are positioned. -# prev: Before the current tab. -# next: After the current tab. -# first: At the beginning. -# last: At the end. -# Default: last -# -# last-close (String): -# Behavior when the last tab is closed. -# ignore: Don't do anything. -# blank: Load a blank page. -# startpage: Load the start page. -# default-page: Load the default page. -# close: Close the window. -# Default: ignore -# -# show (String): -# When to show the tab bar -# always: Always show the tab bar. -# never: Always hide the tab bar. -# multiple: Hide the tab bar if only one tab is open. -# switching: Show the tab bar when switching tabs. -# Default: always -# -# show-switching-delay (Int): -# Time to show the tab bar before hiding it when tabs->show is set -# to 'switching'. -# Default: 800 -# -# wrap (Bool): -# Whether to wrap when changing tabs. -# Valid values: true, false -# Default: true -# -# movable (Bool): -# Whether tabs should be movable. -# Valid values: true, false -# Default: true -# -# close-mouse-button (String): -# On which mouse button to close tabs. -# right: Close tabs on right-click. -# middle: Close tabs on middle-click. -# none: Don't close tabs using the mouse. -# Default: middle -# -# position (Position): -# The position of the tab bar. -# Valid values: top, bottom, left, right -# Default: top -# -# show-favicons (Bool): -# Whether to show favicons in the tab bar. -# Valid values: true, false -# Default: true -# -# width (PercOrInt): -# The width of the tab bar if it's vertical, in px or as percentage -# of the window. -# Default: 20% -# -# indicator-width (Int): -# Width of the progress indicator (0 to disable). -# Default: 3 -# -# tabs-are-windows (Bool): -# Whether to open windows instead of tabs. -# Valid values: true, false -# Default: false -# -# title-format (FormatString): -# The format to use for the tab title. The following placeholders -# are defined: -# * `{perc}`: The percentage as a string like `[10%]`. -# * `{perc_raw}`: The raw percentage, e.g. `10` -# * `{title}`: The title of the current web page -# * `{title_sep}`: The string ` - ` if a title is set, empty -# otherwise. -# * `{index}`: The index of this tab. -# * `{id}`: The internal tab ID of this tab. -# * `{scroll_pos}`: The page scroll position. -# * `{host}`: The host of the current web page. -# * `{backend}`: Either 'webkit' or 'webengine' -# Default: {index}: {title} -# -# title-alignment (TextAlignment): -# Alignment of the text inside of tabs -# Valid values: left, right, center -# Default: left -# -# mousewheel-tab-switching (Bool): -# Switch between tabs using the mouse wheel. -# Valid values: true, false -# Default: true -# -# padding (Padding): -# Padding for tabs (top, bottom, left, right). -# Default: 0,0,5,5 -# -# indicator-padding (Padding): -# Padding for indicators (top, bottom, left, right). -# Default: 2,2,0,4 -background-tabs = false -select-on-remove = next -new-tab-position = next -new-tab-position-explicit = last -last-close = close -show = switching -show-switching-delay = 800 -wrap = true -movable = true -close-mouse-button = middle -position = bottom -show-favicons = true -width = 20% -indicator-width = 2 -tabs-are-windows = false -title-format = {title} -title-alignment = center -mousewheel-tab-switching = false -padding = 5,5,5,5 -indicator-padding = 0,0,0,5 - -[storage] -# Settings related to cache and storage. -# -# download-directory (Directory): -# The directory to save downloads to. An empty value selects a -# sensible os-specific default. Will expand environment variables. -# Default: -# -# prompt-download-directory (Bool): -# Whether to prompt the user for the download location. -# If set to false, 'download-directory' will be used. -# Valid values: true, false -# Default: true -# -# remember-download-directory (Bool): -# Whether to remember the last used download directory. -# Valid values: true, false -# Default: true -# -# maximum-pages-in-cache (Int): -# The maximum number of pages to hold in the global memory page -# cache. -# The Page Cache allows for a nicer user experience when navigating -# forth or back to pages in the forward/back history, by pausing and -# resuming up to _n_ pages. -# For more information about the feature, please refer to: -# http://webkit.org/blog/427/webkit-page-cache-i-the-basics/ -# Default: -# -# object-cache-capacities (List of WebKitBytes): -# The capacities for the global memory cache for dead objects such -# as stylesheets or scripts. Syntax: cacheMinDeadCapacity, -# cacheMaxDead, totalCapacity. -# The _cacheMinDeadCapacity_ specifies the minimum number of bytes -# that dead objects should consume when the cache is under pressure. -# _cacheMaxDead_ is the maximum number of bytes that dead objects -# should consume when the cache is *not* under pressure. -# _totalCapacity_ specifies the maximum number of bytes that the -# cache should consume *overall*. -# Default: -# -# offline-storage-default-quota (WebKitBytes): -# Default quota for new offline storage databases. -# Default: -# -# offline-web-application-cache-quota (WebKitBytes): -# Quota for the offline web application cache. -# Default: -# -# offline-storage-database (Bool): -# Whether support for the HTML 5 offline storage feature is enabled. -# Valid values: true, false -# Default: true -# -# offline-web-application-storage (Bool): -# Whether support for the HTML 5 web application cache feature is -# enabled. -# An application cache acts like an HTTP cache in some sense. For -# documents that use the application cache via JavaScript, the -# loader engine will first ask the application cache for the -# contents, before hitting the network. -# The feature is described in details at: -# http://dev.w3.org/html5/spec/Overview.html#appcache -# Valid values: true, false -# Default: true -# -# local-storage (Bool): -# Whether support for the HTML 5 local storage feature is enabled. -# Valid values: true, false -# Default: true -# -# cache-size (Int): -# Size of the HTTP network cache. -# Default: 52428800 -download-directory = ~/../dl -prompt-download-directory = true -remember-download-directory = true -maximum-pages-in-cache = -object-cache-capacities = -offline-storage-default-quota = -offline-web-application-cache-quota = -offline-storage-database = true -offline-web-application-storage = true -local-storage = true -cache-size = 52428800 - -[content] -# Loaded plugins/scripts and allowed actions. -# -# allow-images (Bool): -# Whether images are automatically loaded in web pages. -# Valid values: true, false -# Default: true -# -# allow-javascript (Bool): -# Enables or disables the running of JavaScript programs. -# Valid values: true, false -# Default: true -# -# allow-plugins (Bool): -# Enables or disables plugins in Web pages. -# Qt plugins with a mimetype such as "application/x-qt-plugin" are -# not affected by this setting. -# Valid values: true, false -# Default: false -# -# webgl (Bool): -# Enables or disables WebGL. For QtWebEngine, Qt/PyQt >= 5.7 is -# required for this setting. -# Valid values: true, false -# Default: false -# -# css-regions (Bool): -# Enable or disable support for CSS regions. -# Valid values: true, false -# Default: true -# -# hyperlink-auditing (Bool): -# Enable or disable hyperlink auditing (). -# Valid values: true, false -# Default: false -# -# geolocation (BoolAsk): -# Allow websites to request geolocations. -# Valid values: true, false, ask -# Default: ask -# -# notifications (BoolAsk): -# Allow websites to show notifications. -# Valid values: true, false, ask -# Default: ask -# -# media-capture (BoolAsk): -# Allow websites to record audio/video. -# Valid values: true, false, ask -# Default: ask -# -# javascript-can-open-windows-automatically (Bool): -# Whether JavaScript programs can open new windows without user -# interaction. -# Valid values: true, false -# Default: false -# -# javascript-can-close-windows (Bool): -# Whether JavaScript programs can close windows. -# Valid values: true, false -# Default: false -# -# javascript-can-access-clipboard (Bool): -# Whether JavaScript programs can read or write to the clipboard. -# Valid values: true, false -# Default: false -# -# ignore-javascript-prompt (Bool): -# Whether all javascript prompts should be ignored. -# Valid values: true, false -# Default: false -# -# ignore-javascript-alert (Bool): -# Whether all javascript alerts should be ignored. -# Valid values: true, false -# Default: false -# -# local-content-can-access-remote-urls (Bool): -# Whether locally loaded documents are allowed to access remote -# urls. -# Valid values: true, false -# Default: false -# -# local-content-can-access-file-urls (Bool): -# Whether locally loaded documents are allowed to access other local -# urls. -# Valid values: true, false -# Default: true -# -# cookies-accept (String): -# Control which cookies to accept. -# all: Accept all cookies. -# no-3rdparty: Accept cookies from the same origin only. -# no-unknown-3rdparty: Accept cookies from the same origin only, -# unless a cookie is already set for the domain. -# never: Don't accept cookies at all. -# Default: no-3rdparty -# -# cookies-store (Bool): -# Whether to store cookies. -# Valid values: true, false -# Default: true -# -# host-block-lists (List of Url): -# List of URLs of lists which contain hosts to block. -# The file can be in one of the following formats: -# - An '/etc/hosts'-like file -# - One host per line -# - A zip-file of any of the above, with either only one file, or a -# file named 'hosts' (with any extension). -# Default: -# https://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -# -# host-blocking-enabled (Bool): -# Whether host blocking is enabled. -# Valid values: true, false -# Default: true -# -# host-blocking-whitelist (List of String): -# List of domains that should always be loaded, despite being -# ad-blocked. -# Domains may contain * and ? wildcards and are otherwise required -# to exactly match the requested domain. -# Local domains are always exempt from hostblocking. -# Default: piwik.org -# -# enable-pdfjs (Bool): -# Enable pdf.js to view PDF files in the browser. -# Note that the files can still be downloaded by clicking the -# download button in the pdf.js viewer. -# Valid values: true, false -# Default: false -allow-images = true -allow-javascript = true -allow-plugins = false -webgl = true -css-regions = true -hyperlink-auditing = false -geolocation = ask -notifications = ask -media-capture = ask -javascript-can-open-windows-automatically = true -javascript-can-close-windows = true -javascript-can-access-clipboard = true -ignore-javascript-prompt = false -ignore-javascript-alert = false -local-content-can-access-remote-urls = false -local-content-can-access-file-urls = true -cookies-accept = no-3rdparty -cookies-store = true -host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext -host-blocking-enabled = true -host-blocking-whitelist = piwik.org -enable-pdfjs = true - -[hints] -# Hinting settings. -# -# border (String): -# CSS border value for hints. -# Default: 1px solid #E3BE23 -# -# mode (String): -# Mode to use for hints. -# number: Use numeric hints. -# letter: Use the chars in the hints -> chars setting. -# word: Use hints words based on the html elements and the extra -# words. -# Default: letter -# -# chars (UniqueCharString): -# Chars used for hint strings. -# Default: asdfghjkl -# -# min-chars (Int): -# Minimum number of chars used for hint strings. -# Default: 1 -# -# scatter (Bool): -# Whether to scatter hint key chains (like Vimium) or not (like -# dwb). Ignored for number hints. -# Valid values: true, false -# Default: true -# -# uppercase (Bool): -# Make chars in hint strings uppercase. -# Valid values: true, false -# Default: false -# -# dictionary (File): -# The dictionary file to be used by the word hints. -# Default: /usr/share/dict/words -# -# auto-follow (String): -# Controls when a hint can be automatically followed without the -# user pressing Enter. -# always: Auto-follow whenever there is only a single hint on a -# page. -# unique-match: Auto-follow whenever there is a unique non-empty -# match in either the hint string (word mode) or filter (number -# mode). -# full-match: Follow the hint when the user typed the whole hint -# (letter, word or number mode) or the element's text (only in -# number mode). -# never: The user will always need to press Enter to follow a -# hint. -# Default: unique-match -# -# auto-follow-timeout (Int): -# A timeout (in milliseconds) to inhibit normal-mode key bindings -# after a successful auto-follow. -# Default: 0 -# -# next-regexes (List of Regex): -# A comma-separated list of regexes to use for 'next' links. -# Default: -# \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b -# -# prev-regexes (List of Regex): -# A comma-separated list of regexes to use for 'prev' links. -# Default: \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b -# -# find-implementation (String): -# Which implementation to use to find elements to hint. -# javascript: Better but slower -# python: Slightly worse but faster -# Default: python -# -# hide-unmatched-rapid-hints (Bool): -# Controls hiding unmatched hints in rapid mode. -# Valid values: true, false -# Default: true -border = 1px solid #E3BE23 -mode = letter -chars = asdfghjkl -min-chars = 1 -scatter = true -uppercase = false -dictionary = /usr/share/dict/words -auto-follow = unique-match -auto-follow-timeout = 0 -next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b -prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b -find-implementation = javascript -hide-unmatched-rapid-hints = true - -[searchengines] -# Definitions of search engines which can be used via the address bar. -# The searchengine named `DEFAULT` is used when `general -> auto-search` -# is true and something else than a URL was entered to be opened. Other -# search engines can be used by prepending the search engine name to the -# search term, e.g. `:open google qutebrowser`. The string `{}` will be -# replaced by the search term, use `{{` and `}}` for literal `{`/`}` -# signs. -DEFAULT = ${google} -google = https://www.google.com/search?hl=en&q={} -duckduckgo = https://duckduckgo.com/?q={} -d = ${duckduckgo} -g = ${google} - -[aliases] -# Aliases for commands. -# By default, no aliases are defined. Example which adds a new command -# `:qtb` to open qutebrowsers website: -# `qtb = open https://www.qutebrowser.org/` - -[colors] -# Colors used in the UI. -# A value can be in one of the following format: -# * `#RGB`/`#RRGGBB`/`#RRRGGGBBB`/`#RRRRGGGGBBBB` -# * An SVG color name as specified in http://www.w3.org/TR/SVG/types.html#ColorKeywords[the W3C specification]. -# * transparent (no color) -# * `rgb(r, g, b)` / `rgba(r, g, b, a)` (values 0-255 or percentages) -# * `hsv(h, s, v)` / `hsva(h, s, v, a)` (values 0-255, hue 0-359) -# * A gradient as explained in http://doc.qt.io/qt-5/stylesheet-reference.html#list-of-property-types[the Qt documentation] under ``Gradient''. -# A *.system value determines the color system to use for color -# interpolation between similarly-named *.start and *.stop entries, -# regardless of how they are defined in the options. Valid values are -# 'rgb', 'hsv', and 'hsl'. -# The `hints.*` values are a special case as they're real CSS colors, not Qt-CSS colors. There, for a gradient, you need to use `-webkit-gradient`, see https://www.webkit.org/blog/175/introducing-css-gradients/[the WebKit documentation]. -# -# completion.fg (QtColor): -# Text color of the completion widget. -# Default: white -# -# completion.bg (QssColor): -# Background color of the completion widget. -# Default: #333333 -# -# completion.alternate-bg (QssColor): -# Alternating background color of the completion widget. -# Default: #444444 -# -# completion.category.fg (QtColor): -# Foreground color of completion widget category headers. -# Default: white -# -# completion.category.bg (QssColor): -# Background color of the completion widget category headers. -# Default: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, -# stop:1 #505050) -# -# completion.category.border.top (QssColor): -# Top border color of the completion widget category headers. -# Default: black -# -# completion.category.border.bottom (QssColor): -# Bottom border color of the completion widget category headers. -# Default: ${completion.category.border.top} -# -# completion.item.selected.fg (QtColor): -# Foreground color of the selected completion item. -# Default: black -# -# completion.item.selected.bg (QssColor): -# Background color of the selected completion item. -# Default: #e8c000 -# -# completion.item.selected.border.top (QssColor): -# Top border color of the completion widget category headers. -# Default: #bbbb00 -# -# completion.item.selected.border.bottom (QssColor): -# Bottom border color of the selected completion item. -# Default: ${completion.item.selected.border.top} -# -# completion.match.fg (QssColor): -# Foreground color of the matched text in the completion. -# Default: #ff4444 -# -# completion.scrollbar.fg (QssColor): -# Color of the scrollbar handle in completion view. -# Default: ${completion.fg} -# -# completion.scrollbar.bg (QssColor): -# Color of the scrollbar in completion view -# Default: ${completion.bg} -# -# statusbar.fg (QssColor): -# Foreground color of the statusbar. -# Default: white -# -# statusbar.bg (QssColor): -# Background color of the statusbar. -# Default: black -# -# statusbar.fg.insert (QssColor): -# Foreground color of the statusbar in insert mode. -# Default: ${statusbar.fg} -# -# statusbar.bg.insert (QssColor): -# Background color of the statusbar in insert mode. -# Default: darkgreen -# -# statusbar.fg.command (QssColor): -# Foreground color of the statusbar in command mode. -# Default: ${statusbar.fg} -# -# statusbar.bg.command (QssColor): -# Background color of the statusbar in command mode. -# Default: ${statusbar.bg} -# -# statusbar.fg.caret (QssColor): -# Foreground color of the statusbar in caret mode. -# Default: ${statusbar.fg} -# -# statusbar.bg.caret (QssColor): -# Background color of the statusbar in caret mode. -# Default: purple -# -# statusbar.fg.caret-selection (QssColor): -# Foreground color of the statusbar in caret mode with a selection -# Default: ${statusbar.fg} -# -# statusbar.bg.caret-selection (QssColor): -# Background color of the statusbar in caret mode with a selection -# Default: #a12dff -# -# statusbar.progress.bg (QssColor): -# Background color of the progress bar. -# Default: white -# -# statusbar.url.fg (QssColor): -# Default foreground color of the URL in the statusbar. -# Default: ${statusbar.fg} -# -# statusbar.url.fg.success (QssColor): -# Foreground color of the URL in the statusbar on successful load -# (http). -# Default: white -# -# statusbar.url.fg.success.https (QssColor): -# Foreground color of the URL in the statusbar on successful load -# (https). -# Default: lime -# -# statusbar.url.fg.error (QssColor): -# Foreground color of the URL in the statusbar on error. -# Default: orange -# -# statusbar.url.fg.warn (QssColor): -# Foreground color of the URL in the statusbar when there's a -# warning. -# Default: yellow -# -# statusbar.url.fg.hover (QssColor): -# Foreground color of the URL in the statusbar for hovered links. -# Default: aqua -# -# tabs.fg.odd (QtColor): -# Foreground color of unselected odd tabs. -# Default: white -# -# tabs.bg.odd (QtColor): -# Background color of unselected odd tabs. -# Default: grey -# -# tabs.fg.even (QtColor): -# Foreground color of unselected even tabs. -# Default: white -# -# tabs.bg.even (QtColor): -# Background color of unselected even tabs. -# Default: darkgrey -# -# tabs.fg.selected.odd (QtColor): -# Foreground color of selected odd tabs. -# Default: white -# -# tabs.bg.selected.odd (QtColor): -# Background color of selected odd tabs. -# Default: black -# -# tabs.fg.selected.even (QtColor): -# Foreground color of selected even tabs. -# Default: ${tabs.fg.selected.odd} -# -# tabs.bg.selected.even (QtColor): -# Background color of selected even tabs. -# Default: ${tabs.bg.selected.odd} -# -# tabs.bg.bar (QtColor): -# Background color of the tab bar. -# Default: #555555 -# -# tabs.indicator.start (QtColor): -# Color gradient start for the tab indicator. -# Default: #0000aa -# -# tabs.indicator.stop (QtColor): -# Color gradient end for the tab indicator. -# Default: #00aa00 -# -# tabs.indicator.error (QtColor): -# Color for the tab indicator on errors.. -# Default: #ff0000 -# -# tabs.indicator.system (ColorSystem): -# Color gradient interpolation system for the tab indicator. -# rgb: Interpolate in the RGB color system. -# hsv: Interpolate in the HSV color system. -# hsl: Interpolate in the HSL color system. -# none: Don't show a gradient. -# Default: rgb -# -# hints.fg (QssColor): -# Font color for hints. -# Default: black -# -# hints.bg (QssColor): -# Background color for hints. Note that you can use a `rgba(...)` -# value for transparency. -# Default: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, -# 247, 133, 0.8), stop:1 rgba(255, 197, 66, 0.8)) -# -# hints.fg.match (QssColor): -# Font color for the matched part of hints. -# Default: green -# -# downloads.bg.bar (QssColor): -# Background color for the download bar. -# Default: black -# -# downloads.fg.start (QtColor): -# Color gradient start for download text. -# Default: white -# -# downloads.bg.start (QtColor): -# Color gradient start for download backgrounds. -# Default: #0000aa -# -# downloads.fg.stop (QtColor): -# Color gradient end for download text. -# Default: ${downloads.fg.start} -# -# downloads.bg.stop (QtColor): -# Color gradient stop for download backgrounds. -# Default: #00aa00 -# -# downloads.fg.system (ColorSystem): -# Color gradient interpolation system for download text. -# rgb: Interpolate in the RGB color system. -# hsv: Interpolate in the HSV color system. -# hsl: Interpolate in the HSL color system. -# none: Don't show a gradient. -# Default: rgb -# -# downloads.bg.system (ColorSystem): -# Color gradient interpolation system for download backgrounds. -# rgb: Interpolate in the RGB color system. -# hsv: Interpolate in the HSV color system. -# hsl: Interpolate in the HSL color system. -# none: Don't show a gradient. -# Default: rgb -# -# downloads.fg.error (QtColor): -# Foreground color for downloads with errors. -# Default: white -# -# downloads.bg.error (QtColor): -# Background color for downloads with errors. -# Default: red -# -# webpage.bg (QtColor): -# Background color for webpages if unset (or empty to use the -# theme's color) -# Default: white -# -# keyhint.fg (QssColor): -# Text color for the keyhint widget. -# Default: #FFFFFF -# -# keyhint.fg.suffix (CssColor): -# Highlight color for keys to complete the current keychain -# Default: #FFFF00 -# -# keyhint.bg (QssColor): -# Background color of the keyhint widget. -# Default: rgba(0, 0, 0, 80%) -# -# messages.fg.error (QssColor): -# Foreground color of an error message. -# Default: white -# -# messages.bg.error (QssColor): -# Background color of an error message. -# Default: red -# -# messages.border.error (QssColor): -# Border color of an error message. -# Default: #bb0000 -# -# messages.fg.warning (QssColor): -# Foreground color a warning message. -# Default: white -# -# messages.bg.warning (QssColor): -# Background color of a warning message. -# Default: darkorange -# -# messages.border.warning (QssColor): -# Border color of an error message. -# Default: #d47300 -# -# messages.fg.info (QssColor): -# Foreground color an info message. -# Default: white -# -# messages.bg.info (QssColor): -# Background color of an info message. -# Default: black -# -# messages.border.info (QssColor): -# Border color of an info message. -# Default: #333333 -# -# prompts.fg (QssColor): -# Foreground color for prompts. -# Default: white -# -# prompts.bg (QssColor): -# Background color for prompts. -# Default: darkblue -# -# prompts.selected.bg (QssColor): -# Background color for the selected item in filename prompts. -# Default: #308cc6 -completion.fg = #ffffff -completion.bg = #111111 -completion.alternate-bg = #333333 -completion.category.fg = white -completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) -completion.category.border.top = #111111 -completion.category.border.bottom = ${completion.category.border.top} -completion.item.selected.fg = #111111 -completion.item.selected.bg = #e8c000 -completion.item.selected.border.top = #bbbb00 -completion.item.selected.border.bottom = ${completion.item.selected.border.top} -completion.match.fg = #ff4444 -completion.scrollbar.fg = ${completion.fg} -completion.scrollbar.bg = ${completion.bg} -statusbar.fg = white -statusbar.bg = #111111 -statusbar.fg.insert = ${statusbar.fg} -statusbar.bg.insert = #333333 -statusbar.fg.command = ${statusbar.fg} -statusbar.bg.command = ${statusbar.bg} -statusbar.fg.caret = ${statusbar.fg} -statusbar.bg.caret = #ffffff -statusbar.fg.caret-selection = ${statusbar.fg} -statusbar.bg.caret-selection = #666666 -statusbar.progress.bg = white -statusbar.url.fg = ${statusbar.fg} -statusbar.url.fg.success = white -statusbar.url.fg.success.https = #a6e22e -statusbar.url.fg.error = #fd971f -statusbar.url.fg.warn = #f4bf75 -statusbar.url.fg.hover = #a1efe4 -tabs.fg.odd = #ffffff -tabs.bg.odd = #666666 -tabs.fg.even = white -tabs.bg.even = #888888 -tabs.fg.selected.odd = white -tabs.bg.selected.odd = #111111 -tabs.fg.selected.even = ${tabs.fg.selected.odd} -tabs.bg.selected.even = ${tabs.bg.selected.odd} -tabs.bg.bar = #111111 -tabs.indicator.start = #66d9ef -tabs.indicator.stop = #a6e22e -tabs.indicator.error = #f92672 -tabs.indicator.system = rgb -hints.fg = #111111 -hints.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 247, 133, 0.8), stop:1 rgba(255, 197, 66, 0.8)) -hints.fg.match = #a6e22e -downloads.bg.bar = #111111 -downloads.fg.start = white -downloads.bg.start = #66d9ef -downloads.fg.stop = ${downloads.fg.start} -downloads.bg.stop = #a6e22e -downloads.fg.system = rgb -downloads.bg.system = rgb -downloads.fg.error = white -downloads.bg.error = #f92672 -webpage.bg = white -keyhint.fg = #FFFFFF -keyhint.fg.suffix = #fd971f -keyhint.bg = rgba(0, 0, 0, 80%) -messages.fg.error = ${statusbar.fg} -messages.bg.error = #f92672 -messages.border.error = #bb0000 -messages.fg.warning = ${statusbar.fg} -messages.bg.warning = #f4bf75 -messages.border.warning = #d47300 -messages.fg.info = white -messages.bg.info = black -messages.border.info = #333333 -prompts.fg = ${statusbar.fg} -prompts.bg = #333333 -prompts.selected.bg = #308cc6 - -[fonts] -# Fonts used for the UI, with optional style/weight/size. -# * Style: `normal`/`italic`/`oblique` -# * Weight: `normal`, `bold`, `100`..`900` -# * Size: _number_ `px`/`pt` -# -# _monospace (Font): -# Default monospace fonts. -# Default: Terminus, Monospace, "DejaVu Sans Mono", Monaco, -# "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, -# "Liberation Mono", monospace, Fixed, Consolas, Terminal -# -# completion (Font): -# Font used in the completion widget. -# Default: 8pt ${_monospace} -# -# completion.category (Font): -# Font used in the completion categories. -# Default: bold ${completion} -# -# tabbar (QtFont): -# Font used in the tab bar. -# Default: 8pt ${_monospace} -# -# statusbar (Font): -# Font used in the statusbar. -# Default: 8pt ${_monospace} -# -# downloads (Font): -# Font used for the downloadbar. -# Default: 8pt ${_monospace} -# -# hints (Font): -# Font used for the hints. -# Default: bold 13px ${_monospace} -# -# debug-console (QtFont): -# Font used for the debugging console. -# Default: 8pt ${_monospace} -# -# web-family-standard (FontFamily): -# Font family for standard fonts. -# Default: -# -# web-family-fixed (FontFamily): -# Font family for fixed fonts. -# Default: -# -# web-family-serif (FontFamily): -# Font family for serif fonts. -# Default: -# -# web-family-sans-serif (FontFamily): -# Font family for sans-serif fonts. -# Default: -# -# web-family-cursive (FontFamily): -# Font family for cursive fonts. -# Default: -# -# web-family-fantasy (FontFamily): -# Font family for fantasy fonts. -# Default: -# -# web-size-minimum (Int): -# The hard minimum font size. -# Default: -# -# web-size-minimum-logical (Int): -# The minimum logical font size that is applied when zooming out. -# Default: -# -# web-size-default (Int): -# The default font size for regular text. -# Default: -# -# web-size-default-fixed (Int): -# The default font size for fixed-pitch text. -# Default: -# -# keyhint (Font): -# Font used in the keyhint widget. -# Default: 8pt ${_monospace} -# -# messages.error (Font): -# Font used for error messages. -# Default: 8pt ${_monospace} -# -# messages.warning (Font): -# Font used for warning messages. -# Default: 8pt ${_monospace} -# -# messages.info (Font): -# Font used for info messages. -# Default: 8pt ${_monospace} -# -# prompts (Font): -# Font used for prompts. -# Default: 8pt sans-serif -_monospace = lemon, Terminus, Monaco, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal -completion = 8pt ${_monospace} -completion.category = bold ${completion} -tabbar = 8pt ${_monospace} -statusbar = 8pt ${_monospace} -downloads = 8pt ${_monospace} -hints = bold 13px ${_monospace} -debug-console = 8pt ${_monospace} -web-family-standard = -web-family-fixed = Terminus -web-family-serif = -web-family-sans-serif = -web-family-cursive = -web-family-fantasy = -web-size-minimum = -web-size-minimum-logical = -web-size-default = -web-size-default-fixed = -keyhint = 8pt ${_monospace} -messages.error = 8pt ${_monospace} -messages.warning = 8pt ${_monospace} -messages.info = 8pt ${_monospace} -prompts = 8pt sans-serif diff --git a/browser/qutebrowser/user-styles.css b/browser/qutebrowser/user-styles.css deleted file mode 100644 index eb30a80..0000000 --- a/browser/qutebrowser/user-styles.css +++ /dev/null @@ -1 +0,0 @@ -html::-webkit-scrollbar { display: none !important; } diff --git a/colors/gen/gen.bash b/colors/gen/gen.bash deleted file mode 100755 index b702e07..0000000 --- a/colors/gen/gen.bash +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -v=$(ruby --version) -if [[ $? -eq 0 ]]; then - SCHEME="donokai" - if [[ -n $1 ]]; then - SCHEME=$1 - fi - - DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) - source "$DIR/variables.bash" - - mkdir -p "$DOTFILES_PATH/colors/gen/vendor" - - B16_DIR="$DOTFILES_PATH/colors/gen/vendor/base16-builder" - COLORS_PATH="$B16_DIR/output" - - if [ -d "$B16_DIR" ]; then - echo "Skipping repo pull down..." - rm -rf "$COLORS_PATH" - mkdir -p "$COLORS_PATH" - else - git clone https://github.com/lytedev/base16-builder.git "$DOTFILES_PATH/colors/gen/vendor/base16-builder" - fi - - "$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t vim -s "$DOTFILES_PATH/colors/gen/schemes/$SCHEME.yml" - "$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t xresources -s "$DOTFILES_PATH/colors/gen/schemes/$SCHEME.yml" - "$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t shell -s "$DOTFILES_PATH/colors/gen/schemes/$SCHEME.yml" - - COLORS_PATH=$DOTFILES_PATH/colors/gen/vendor/base16-builder/output - - rm -f "$DOTFILES_PATH/colors/xresources" - rm -f "$DOTFILES_PATH/colors/vim" - rm -f "$DOTFILES_PATH/colors/shell" - cp "$COLORS_PATH/xresources/base16-$SCHEME.dark.xresources" "$DOTFILES_PATH/colors/xresources" - cp "$COLORS_PATH/vim/base16-$SCHEME.vim" "$DOTFILES_PATH/colors/vim" - cp "$COLORS_PATH/shell/base16-$SCHEME.dark.sh" "$DOTFILES_PATH/colors/shell" - chmod +x "$DOTFILES_PATH/colors/shell" - - xrdb -merge "$DOTFILES_PATH/colors/xresources" - source "$DOTFILES_PATH/scripts/reload_xresources.sh" - source "$DOTFILES_PATH/env/wm/bspwm_config" > /dev/null - # kill -SIGUSR1 $(cat "$BAR_PID_FILE") -else - echo "Ruby isn't installed." -fi diff --git a/colors/gen/schemes/bright.yml b/colors/gen/schemes/bright.yml deleted file mode 100644 index bfe73eb..0000000 --- a/colors/gen/schemes/bright.yml +++ /dev/null @@ -1,18 +0,0 @@ -scheme: "Bright" -author: "Chris Kempson (http://chriskempson.com)" -base00: "111111" -base01: "303030" -base02: "505050" -base03: "b0b0b0" -base04: "d0d0d0" -base05: "e0e0e0" -base06: "f5f5f5" -base07: "ffffff" -base08: "fb0120" -base09: "fc6d24" -base0A: "fda331" -base0B: "a1c659" -base0C: "76c7b7" -base0D: "6fb3d2" -base0E: "d381c3" -base0F: "be643c" diff --git a/colors/gen/schemes/donokai.yml b/colors/gen/schemes/donokai.yml deleted file mode 100644 index 7c0c4a8..0000000 --- a/colors/gen/schemes/donokai.yml +++ /dev/null @@ -1,18 +0,0 @@ -scheme: "Donokai" -author: "Wimer Hazenberg (http://www.monokai.nl)" -base00: "111111" # background, dark grey -base01: "383830" # lighter grey -base02: "49483e" # lighter grey -base03: "75715e" # greyish yellow (peuce) -base04: "a59f85" # lighter peuce -base05: "f8f8f2" # foreground white -base06: "f5f4f1" # foreground 2 white -base07: "f9f8f5" # foreground 3 white -base08: "f92672" # magenta -base09: "fd971f" # orange -base0A: "f4bf75" # yellow -base0B: "a6e22e" # green -base0C: "a1efe4" # cyan -base0D: "66d9ef" # blue -base0E: "ae81ff" # purple -base0F: "cc6633" # pale orange diff --git a/colors/link.bash b/colors/link.bash deleted file mode 100755 index a364840..0000000 --- a/colors/link.bash +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/.." && pwd) -source "$DIR/variables.bash" - -mkdir -p "$DOTFILES_PATH/editor/nvim/config/colors" - -rm -f ~/.Xresources.colors -rm -f "$DOTFILES_PATH/editor/nvim/config/colors/current.vim" -ln -s "$DOTFILES_PATH/colors/xresources" "$HOME/.Xresources.colors" -ln -s "$DOTFILES_PATH/colors/vim" "$DOTFILES_PATH/editor/nvim/config/colors/current.vim" - -source "$DOTFILES_PATH/env/x/xloadresources" - diff --git a/colors/shell b/colors/shell deleted file mode 100755 index 42b57c5..0000000 --- a/colors/shell +++ /dev/null @@ -1,125 +0,0 @@ -#!/bin/sh -# Base16 Donokai - Shell color setup script -# Wimer Hazenberg (http://www.monokai.nl) - -if [ "${TERM%%-*}" = 'linux' ]; then - # This script doesn't support linux console (use 'vconsole' template instead) - return 2>/dev/null || exit 0 -fi - -color00="11/11/11" # Base 00 - Black -color01="f9/26/72" # Base 08 - Red -color02="a6/e2/2e" # Base 0B - Green -color03="f4/bf/75" # Base 0A - Yellow -color04="66/d9/ef" # Base 0D - Blue -color05="ae/81/ff" # Base 0E - Magenta -color06="a1/ef/e4" # Base 0C - Cyan -color07="f8/f8/f2" # Base 05 - White -color08="75/71/5e" # Base 03 - Bright Black -color09=$color01 # Base 08 - Bright Red -color10=$color02 # Base 0B - Bright Green -color11=$color03 # Base 0A - Bright Yellow -color12=$color04 # Base 0D - Bright Blue -color13=$color05 # Base 0E - Bright Magenta -color14=$color06 # Base 0C - Bright Cyan -color15="f9/f8/f5" # Base 07 - Bright White -color16="fd/97/1f" # Base 09 -color17="cc/66/33" # Base 0F -color18="38/38/30" # Base 01 -color19="49/48/3e" # Base 02 -color20="a5/9f/85" # Base 04 -color21="f5/f4/f1" # Base 06 -color_foreground="f8/f8/f2" # Base 05 -color_background="11/11/11" # Base 00 -color_cursor="f8/f8/f2" # Base 05 - -if [ -n "$TMUX" ]; then - # tell tmux to pass the escape sequences through - # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - printf_template="\033Ptmux;\033\033]4;%d;rgb:%s\007\033\\" - printf_template_var="\033Ptmux;\033\033]%d;rgb:%s\007\033\\" - printf_template_custom="\033Ptmux;\033\033]%s%s\007\033\\" -elif [ "${TERM%%-*}" = "screen" ]; then - # GNU screen (screen, screen-256color, screen-256color-bce) - printf_template="\033P\033]4;%d;rgb:%s\007\033\\" - printf_template_var="\033P\033]%d;rgb:%s\007\033\\" - printf_template_custom="\033P\033]%s%s\007\033\\" -elif [[ $- != *i* ]]; then - # non-interactive - alias printf=/bin/false -else - printf_template="\033]4;%d;rgb:%s\033\\" - printf_template_var="\033]%d;rgb:%s\033\\" - printf_template_custom="\033]%s%s\033\\" -fi - -# 16 color space -printf $printf_template 0 $color00 -printf $printf_template 1 $color01 -printf $printf_template 2 $color02 -printf $printf_template 3 $color03 -printf $printf_template 4 $color04 -printf $printf_template 5 $color05 -printf $printf_template 6 $color06 -printf $printf_template 7 $color07 -printf $printf_template 8 $color08 -printf $printf_template 9 $color09 -printf $printf_template 10 $color10 -printf $printf_template 11 $color11 -printf $printf_template 12 $color12 -printf $printf_template 13 $color13 -printf $printf_template 14 $color14 -printf $printf_template 15 $color15 - -# 256 color space -printf $printf_template 16 $color16 -printf $printf_template 17 $color17 -printf $printf_template 18 $color18 -printf $printf_template 19 $color19 -printf $printf_template 20 $color20 -printf $printf_template 21 $color21 - -# foreground / background / cursor color -if [ -n "$ITERM_SESSION_ID" ]; then - # iTerm2 proprietary escape codes - printf $printf_template_custom Pg f8f8f2 # forground - printf $printf_template_custom Ph 111111 # background - printf $printf_template_custom Pi f8f8f2 # bold color - printf $printf_template_custom Pj 49483e # selection color - printf $printf_template_custom Pk f8f8f2 # selected text color - printf $printf_template_custom Pl f8f8f2 # cursor - printf $printf_template_custom Pm 111111 # cursor text -else - printf $printf_template_var 10 $color_foreground - printf $printf_template_var 11 $color_background - printf $printf_template_custom 12 ";7" # cursor (reverse video) -fi - -# clean up -unset printf_template -unset printf_template_var -unset color00 -unset color01 -unset color02 -unset color03 -unset color04 -unset color05 -unset color06 -unset color07 -unset color08 -unset color09 -unset color10 -unset color11 -unset color12 -unset color13 -unset color14 -unset color15 -unset color16 -unset color17 -unset color18 -unset color19 -unset color20 -unset color21 -unset color_foreground -unset color_background -unset color_cursor diff --git a/colors/vim b/colors/vim deleted file mode 100644 index a1b330b..0000000 --- a/colors/vim +++ /dev/null @@ -1,316 +0,0 @@ -" Base16 Donokai (https://github.com/chriskempson/base16) -" Scheme: Wimer Hazenberg (http://www.monokai.nl) - -" This enables the coresponding base16-shell script to run so that -" :colorscheme works in terminals supported by base16-shell scripts -" User must set this variable in .vimrc -" let g:base16_shell_path=base16-builder/output/shell/ -if !has('gui_running') - if exists("g:base16_shell_path") - execute "silent !/bin/sh ".g:base16_shell_path."/base16-donokai.".&background.".sh" - endif -endif - -" GUI color definitions -let s:gui00 = "111111" -let s:gui01 = "383830" -let s:gui02 = "49483e" -let s:gui03 = "75715e" -let s:gui04 = "a59f85" -let s:gui05 = "f8f8f2" -let s:gui06 = "f5f4f1" -let s:gui07 = "f9f8f5" -let s:gui08 = "f92672" -let s:gui09 = "fd971f" -let s:gui0A = "f4bf75" -let s:gui0B = "a6e22e" -let s:gui0C = "a1efe4" -let s:gui0D = "66d9ef" -let s:gui0E = "ae81ff" -let s:gui0F = "cc6633" - -" Terminal color definitions -let s:cterm00 = "00" -let s:cterm03 = "08" -let s:cterm05 = "07" -let s:cterm07 = "15" -let s:cterm08 = "01" -let s:cterm0A = "03" -let s:cterm0B = "02" -let s:cterm0C = "06" -let s:cterm0D = "04" -let s:cterm0E = "05" -if exists('base16colorspace') && base16colorspace == "256" - let s:cterm01 = "18" - let s:cterm02 = "19" - let s:cterm04 = "20" - let s:cterm06 = "21" - let s:cterm09 = "16" - let s:cterm0F = "17" -else - let s:cterm01 = "10" - let s:cterm02 = "11" - let s:cterm04 = "12" - let s:cterm06 = "13" - let s:cterm09 = "09" - let s:cterm0F = "14" -endif - -" Theme setup -hi clear -syntax reset -let g:colors_name = "base16-donokai" - -" Highlighting function -fun hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) - if a:guifg != "" - exec "hi " . a:group . " guifg=#" . s:gui(a:guifg) - endif - if a:guibg != "" - exec "hi " . a:group . " guibg=#" . s:gui(a:guibg) - endif - if a:ctermfg != "" - exec "hi " . a:group . " ctermfg=" . s:cterm(a:ctermfg) - endif - if a:ctermbg != "" - exec "hi " . a:group . " ctermbg=" . s:cterm(a:ctermbg) - endif - if a:attr != "" - exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr - endif - if a:guisp != "" - exec "hi " . a:group . " guisp=#" . a:guisp - endif -endfun - -" Return GUI color for light/dark variants -fun s:gui(color) - if &background == "dark" - return a:color - endif - - if a:color == s:gui00 - return s:gui07 - elseif a:color == s:gui01 - return s:gui06 - elseif a:color == s:gui02 - return s:gui05 - elseif a:color == s:gui03 - return s:gui04 - elseif a:color == s:gui04 - return s:gui03 - elseif a:color == s:gui05 - return s:gui02 - elseif a:color == s:gui06 - return s:gui01 - elseif a:color == s:gui07 - return s:gui00 - endif - - return a:color -endfun - -" Return terminal color for light/dark variants -fun s:cterm(color) - if &background == "dark" - return a:color - endif - - if a:color == s:cterm00 - return s:cterm07 - elseif a:color == s:cterm01 - return s:cterm06 - elseif a:color == s:cterm02 - return s:cterm05 - elseif a:color == s:cterm03 - return s:cterm04 - elseif a:color == s:cterm04 - return s:cterm03 - elseif a:color == s:cterm05 - return s:cterm02 - elseif a:color == s:cterm06 - return s:cterm01 - elseif a:color == s:cterm07 - return s:cterm00 - endif - - return a:color -endfun - -" Vim editor colors -call hi("Bold", "", "", "", "", "bold", "") -call hi("Debug", s:gui08, "", s:cterm08, "", "", "") -call hi("Directory", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Error", s:gui00, s:gui08, s:cterm00, s:cterm08, "", "") -call hi("ErrorMsg", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") -call hi("Exception", s:gui08, "", s:cterm08, "", "", "") -call hi("FoldColumn", s:gui0C, s:gui01, s:cterm0C, s:cterm01, "", "") -call hi("Folded", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("IncSearch", s:gui01, s:gui09, s:cterm01, s:cterm09, "none", "") -call hi("Italic", "", "", "", "", "none", "") -call hi("Macro", s:gui08, "", s:cterm08, "", "", "") -call hi("MatchParen", s:gui00, s:gui03, s:cterm00, s:cterm03, "", "") -call hi("ModeMsg", s:gui0B, "", s:cterm0B, "", "", "") -call hi("MoreMsg", s:gui0B, "", s:cterm0B, "", "", "") -call hi("Question", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Search", s:gui03, s:gui0A, s:cterm03, s:cterm0A, "", "") -call hi("SpecialKey", s:gui03, "", s:cterm03, "", "", "") -call hi("TooLong", s:gui08, "", s:cterm08, "", "", "") -call hi("Underlined", s:gui08, "", s:cterm08, "", "", "") -call hi("Visual", "", s:gui02, "", s:cterm02, "", "") -call hi("VisualNOS", s:gui08, "", s:cterm08, "", "", "") -call hi("WarningMsg", s:gui08, "", s:cterm08, "", "", "") -call hi("WildMenu", s:gui08, s:gui0A, s:cterm08, "", "", "") -call hi("Title", s:gui0D, "", s:cterm0D, "", "none", "") -call hi("Conceal", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") -call hi("Cursor", s:gui00, s:gui05, s:cterm00, s:cterm05, "", "") -call hi("NonText", s:gui03, "", s:cterm03, "", "", "") -call hi("Normal", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") -call hi("LineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("SignColumn", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("StatusLine", s:gui04, s:gui02, s:cterm04, s:cterm02, "none", "") -call hi("StatusLineNC", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("VertSplit", s:gui02, s:gui02, s:cterm02, s:cterm02, "none", "") -call hi("ColorColumn", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorColumn", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorLine", "", s:gui01, "", s:cterm01, "none", "") -call hi("CursorLineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("PMenu", s:gui04, s:gui01, s:cterm04, s:cterm01, "none", "") -call hi("PMenuSel", s:gui01, s:gui04, s:cterm01, s:cterm04, "", "") -call hi("TabLine", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("TabLineFill", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "") -call hi("TabLineSel", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "none", "") - -" Standard syntax highlighting -call hi("Boolean", s:gui09, "", s:cterm09, "", "", "") -call hi("Character", s:gui08, "", s:cterm08, "", "", "") -call hi("Comment", s:gui03, "", s:cterm03, "", "", "") -call hi("Conditional", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Constant", s:gui09, "", s:cterm09, "", "", "") -call hi("Define", s:gui0E, "", s:cterm0E, "", "none", "") -call hi("Delimiter", s:gui0F, "", s:cterm0F, "", "", "") -call hi("Float", s:gui09, "", s:cterm09, "", "", "") -call hi("Function", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Identifier", s:gui08, "", s:cterm08, "", "none", "") -call hi("Include", s:gui0D, "", s:cterm0D, "", "", "") -call hi("Keyword", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Label", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Number", s:gui09, "", s:cterm09, "", "", "") -call hi("Operator", s:gui05, "", s:cterm05, "", "none", "") -call hi("PreProc", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Repeat", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Special", s:gui0C, "", s:cterm0C, "", "", "") -call hi("SpecialChar", s:gui0F, "", s:cterm0F, "", "", "") -call hi("Statement", s:gui08, "", s:cterm08, "", "", "") -call hi("StorageClass", s:gui0A, "", s:cterm0A, "", "", "") -call hi("String", s:gui0B, "", s:cterm0B, "", "", "") -call hi("Structure", s:gui0E, "", s:cterm0E, "", "", "") -call hi("Tag", s:gui0A, "", s:cterm0A, "", "", "") -call hi("Todo", s:gui0A, s:gui01, s:cterm0A, s:cterm01, "", "") -call hi("Type", s:gui0A, "", s:cterm0A, "", "none", "") -call hi("Typedef", s:gui0A, "", s:cterm0A, "", "", "") - -" C highlighting -call hi("cOperator", s:gui0C, "", s:cterm0C, "", "", "") -call hi("cPreCondit", s:gui0E, "", s:cterm0E, "", "", "") - -" C# highlighting -call hi("csClass", s:gui0A, "", s:cterm0A, "", "", "") -call hi("csAttribute", s:gui0A, "", s:cterm0A, "", "", "") -call hi("csModifier", s:gui0E, "", s:cterm0E, "", "", "") -call hi("csType", s:gui08, "", s:cterm08, "", "", "") -call hi("csUnspecifiedStatement", s:gui0D, "", s:cterm0D, "", "", "") -call hi("csContextualStatement", s:gui0E, "", s:cterm0E, "", "", "") -call hi("csNewDecleration", s:gui08, "", s:cterm08, "", "", "") - -" CSS highlighting -call hi("cssBraces", s:gui05, "", s:cterm05, "", "", "") -call hi("cssClassName", s:gui0E, "", s:cterm0E, "", "", "") -call hi("cssColor", s:gui0C, "", s:cterm0C, "", "", "") - -" Diff highlighting -call hi("DiffAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("DiffChange", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "") -call hi("DiffDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") -call hi("DiffText", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("DiffAdded", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") -call hi("DiffFile", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") -call hi("DiffNewFile", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "") -call hi("DiffLine", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "") -call hi("DiffRemoved", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "") - -" Git highlighting -call hi("gitCommitOverflow", s:gui08, "", s:cterm08, "", "", "") -call hi("gitCommitSummary", s:gui0B, "", s:cterm0B, "", "", "") - -" GitGutter highlighting -call hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") -call hi("GitGutterChangeDelete", s:gui0E, s:gui01, s:cterm0E, s:cterm01, "", "") - -" HTML highlighting -call hi("htmlBold", s:gui0A, "", s:cterm0A, "", "", "") -call hi("htmlItalic", s:gui0E, "", s:cterm0E, "", "", "") -call hi("htmlEndTag", s:gui05, "", s:cterm05, "", "", "") -call hi("htmlTag", s:gui05, "", s:cterm05, "", "", "") - -" JavaScript highlighting -call hi("javaScript", s:gui05, "", s:cterm05, "", "", "") -call hi("javaScriptBraces", s:gui05, "", s:cterm05, "", "", "") -call hi("javaScriptNumber", s:gui09, "", s:cterm09, "", "", "") - -" Markdown highlighting -call hi("markdownCode", s:gui0B, "", s:cterm0B, "", "", "") -call hi("markdownError", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "") -call hi("markdownCodeBlock", s:gui0B, "", s:cterm0B, "", "", "") -call hi("markdownHeadingDelimiter", s:gui0D, "", s:cterm0D, "", "", "") - -" NERDTree highlighting -call hi("NERDTreeDirSlash", s:gui0D, "", s:cterm0D, "", "", "") -call hi("NERDTreeExecFile", s:gui05, "", s:cterm05, "", "", "") - -" PHP highlighting -call hi("phpMemberSelector", s:gui05, "", s:cterm05, "", "", "") -call hi("phpComparison", s:gui05, "", s:cterm05, "", "", "") -call hi("phpParent", s:gui05, "", s:cterm05, "", "", "") - -" Python highlighting -call hi("pythonOperator", s:gui0E, "", s:cterm0E, "", "", "") -call hi("pythonRepeat", s:gui0E, "", s:cterm0E, "", "", "") - -" Ruby highlighting -call hi("rubyAttribute", s:gui0D, "", s:cterm0D, "", "", "") -call hi("rubyConstant", s:gui0A, "", s:cterm0A, "", "", "") -call hi("rubyInterpolation", s:gui0B, "", s:cterm0B, "", "", "") -call hi("rubyInterpolationDelimiter", s:gui0F, "", s:cterm0F, "", "", "") -call hi("rubyRegexp", s:gui0C, "", s:cterm0C, "", "", "") -call hi("rubySymbol", s:gui0B, "", s:cterm0B, "", "", "") -call hi("rubyStringDelimiter", s:gui0B, "", s:cterm0B, "", "", "") - -" SASS highlighting -call hi("sassidChar", s:gui08, "", s:cterm08, "", "", "") -call hi("sassClassChar", s:gui09, "", s:cterm09, "", "", "") -call hi("sassInclude", s:gui0E, "", s:cterm0E, "", "", "") -call hi("sassMixing", s:gui0E, "", s:cterm0E, "", "", "") -call hi("sassMixinName", s:gui0D, "", s:cterm0D, "", "", "") - -" Signify highlighting -call hi("SignifySignAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "") -call hi("SignifySignChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "") -call hi("SignifySignDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "") - -" Spelling highlighting -call hi("SpellBad", "", s:gui00, "", s:cterm00, "undercurl", s:gui08) -call hi("SpellLocal", "", s:gui00, "", s:cterm00, "undercurl", s:gui0C) -call hi("SpellCap", "", s:gui00, "", s:cterm00, "undercurl", s:gui0D) -call hi("SpellRare", "", s:gui00, "", s:cterm00, "undercurl", s:gui0E) - -" Remove functions -delf hi -delf gui -delf cterm - -" Remove color variables -unlet s:gui00 s:gui01 s:gui02 s:gui03 s:gui04 s:gui05 s:gui06 s:gui07 s:gui08 s:gui09 s:gui0A s:gui0B s:gui0C s:gui0D s:gui0E s:gui0F -unlet s:cterm00 s:cterm01 s:cterm02 s:cterm03 s:cterm04 s:cterm05 s:cterm06 s:cterm07 s:cterm08 s:cterm09 s:cterm0A s:cterm0B s:cterm0C s:cterm0D s:cterm0E s:cterm0F diff --git a/colors/xresources b/colors/xresources deleted file mode 100644 index 2e09987..0000000 --- a/colors/xresources +++ /dev/null @@ -1,41 +0,0 @@ -! Base16 Donokai -! Scheme: Wimer Hazenberg (http://www.monokai.nl) - -#define base00 #111111 -#define base01 #383830 -#define base02 #49483e -#define base03 #75715e -#define base04 #a59f85 -#define base05 #f8f8f2 -#define base06 #f5f4f1 -#define base07 #f9f8f5 -#define base08 #f92672 -#define base09 #fd971f -#define base0A #f4bf75 -#define base0B #a6e22e -#define base0C #a1efe4 -#define base0D #66d9ef -#define base0E #ae81ff -#define base0F #cc6633 - -*foreground: base05 -*background: base00 -*cursorColor: base05 - -*color0: base00 -*color1: base08 -*color2: base0B -*color3: base0A -*color4: base0D -*color5: base0E -*color6: base0C -*color7: base05 - -*color8: base03 -*color9: base09 -*color10: base01 -*color11: base02 -*color12: base04 -*color13: base06 -*color14: base0F -*color15: base07 diff --git a/editor/kakoune/autoload/colorscheme.kak b/editor/kakoune/autoload/colorscheme.kak deleted file mode 100644 index c5762bc..0000000 --- a/editor/kakoune/autoload/colorscheme.kak +++ /dev/null @@ -1 +0,0 @@ -:colorscheme base16 diff --git a/editor/kakoune/kakrc b/editor/kakoune/kakrc deleted file mode 100644 index bc9754e..0000000 --- a/editor/kakoune/kakrc +++ /dev/null @@ -1,7 +0,0 @@ -colorscheme base16 -hook global BufOpen .* %{editorconfig-load} -hook global InsertChar j %{ try %{ - exec -draft hH jj d - exec -}} -hook global WinCreate .* %{addhl number_lines} diff --git a/editor/kakoune/link.bash b/editor/kakoune/link.bash deleted file mode 100755 index c225469..0000000 --- a/editor/kakoune/link.bash +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -rm -rf "$HOME/.config/kak" -ln -s "$DOTFILES_PATH/editor/kakoune" "$HOME/.config/kak" diff --git a/editor/nvim/config/.gitignore b/editor/nvim/config/.gitignore deleted file mode 100644 index 9780597..0000000 --- a/editor/nvim/config/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -* -!init.vim -!./colors/*.vim diff --git a/editor/nvim/config/colors/current.vim b/editor/nvim/config/colors/current.vim deleted file mode 120000 index 06470eb..0000000 --- a/editor/nvim/config/colors/current.vim +++ /dev/null @@ -1 +0,0 @@ -/home/daniel/usr/.dotfiles/colors/vim \ No newline at end of file diff --git a/editor/nvim/config/init.vim b/editor/nvim/config/init.vim deleted file mode 100644 index aea2afc..0000000 --- a/editor/nvim/config/init.vim +++ /dev/null @@ -1,442 +0,0 @@ -" initial plugin manager -if empty(glob('~/.config/nvim/autoload/plug.vim')) - silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim - autocmd VimEnter * PlugInstall -endif - -" tell vim to reload the init.vim file when it saves it -autocmd! BufWritePost init.vim source % - -" plugin build functions -function! BuildComposer(info) - if a:info.status != 'unchanged' || a:info.force - !cargo build --release - UpdateRemotePlugins - endif -endfunction - -function! DoRemote(arg) - UpdateRemotePlugins -endfunction - -" Initialize plugin manager -call plug#begin('~/.config/nvim/bundle') - -" let plugin manager manage itself -Plug 'junegunn/vim-plug' - - -" plugins - -Plug 'tpope/vim-obsession' " session ease-of-use -if exists('asmanviewer') - let g:prosession_dir = '/dev/null' -else - Plug 'dhruvasagar/vim-prosession' " more session ease-of-use - let g:prosession_dir = '~/.config/nvim/session/' -endif -Plug 'vim-airline/vim-airline' " statusline -" let g:airline_powerline_fonts = 0 -let g:airline#extensions#tabline#enabled = 1 " automatically displays all buffers when there's only one tab open -let g:airline#extensions#tabline#fnamemod = ':t' -" set laststatus=2 " always show statusline -" set noshowmode " hides default mode -let g:airline#extensions#tabline#left_sep = '' -let g:airline#extensions#tabline#left_alt_sep = '' -let g:airline_right_alt_sep = '' -let g:airline_right_sep = '' -let g:airline_left_alt_sep= '' -let g:airline_left_sep = '' -Plug 'vim-airline/vim-airline-themes' - -Plug 'scrooloose/nerdtree', {'on': ['NERDTreeToggle', 'NERDTree']} " nice sidebar for files -let g:NERDTreeDirArrowExpandable = ' ' -let g:NERDTreeDirArrowCollapsible = ' ' -autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif " close vim if last buffer is a NERD buffer - -Plug 'nathanaelkane/vim-indent-guides' " indentation guides (NOTE: doesn't seem to work with my colorscheme) -let g:indent_guides_start_level = 0 -let g:indent_guides_auto_color = 1 - -Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } " autocomplete -let g:deoplete#enable_at_startup = 1 - -Plug 'scrooloose/syntastic' " syntax checker -Plug 'freitass/todo.txt-vim' " syntax checker -Plug 'bkad/CamelCaseMotion' " camel case and underscore word movements -Plug 'LargeFile' " gracefully handle very large files -Plug 'tpope/vim-commentary' " toggle comments in code easily -Plug 'tmux-plugins/vim-tmux-focus-events' " allow transitions within tmux -Plug 'christoomey/vim-tmux-navigator' " allow transitions within tmux -Plug 'tasklist.vim' " show tasks with leader,t -Plug 'godlygeek/tabular' " align text lines together -Plug 'dhruvasagar/vim-table-mode' " for creating and editing character tables -Plug 'lytedev/vim-superman' " view man pages with vim -Plug 'tpope/vim-surround' " quickly modify text surrounding objects -Plug 'tpope/vim-speeddating' " vim knows about date-like text objects -Plug 'michaeljsmith/vim-indent-object' " adds an indentation level text object -Plug 'wellle/targets.vim' " adds some more handy text objects -Plug 'ternjs/tern_for_vim', { 'do': 'npm install' } -Plug 'mikewest/vimroom' -Plug 'editorconfig/editorconfig-vim' " loads project-specific editor settings -let g:vimroom_sidebar_height = 0 - -Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} " fuzzy file finding -Plug 'junegunn/fzf.vim' " helpers for using fzf in vim -let g:fzf_layout = { 'window': 'enew' } - -" plugins for specific file types -Plug 'kchmck/vim-coffee-script', {'for': ['coffee', 'coffeescript', 'vue']} -Plug 'posva/vim-vue', {'for': ['vue']} -Plug 'elixir-lang/vim-elixir', {'for': ['elixir']} -Plug 'wavded/vim-stylus', {'for': ['styl', 'stylus', 'vue']} -Plug 'rust-lang/rust.vim', {'for': ['rs', 'rust']} -" Plug 'plasticboy/vim-markdown', {'for': ['md', 'markdown']} -" Plug 'euclio/vim-markdown-composer', { 'do': function('BuildComposer'), 'for': ['md', 'markdown'] } -Plug 'digitaltoad/vim-jade', {'for': ['pug', 'jade', 'vue']} -Plug 'freitass/todo.txt-vim', {'for': ['todo']} -Plug 'leafo/moonscript-vim', {'for': ['moon', 'moonscript']} -Plug 'evidens/vim-twig' -Plug 'leafgarland/typescript-vim', {'for': ['ts', 'typescript']} -Plug 'jwalton512/vim-blade', {'for': ['blade', 'blade.php']} - -call plug#end() - -filetype on -filetype indent on -filetype plugin on - -" language specific configuration - -" C -let c_space_errors = 1 -let c_comment_strings = 0 " dont highlight strings inside C comments - -" Python -let python_space_errors = 1 -" autocmd FileType python setl tabstop=4 expandtab shiftwidth=4 softtabstop=4 -" autocmd FileType js setl tabstop=2 expandtab shiftwidth=2 softtabstop=2 -" autocmd FileType vue setl tabstop=2 expandtab shiftwidth=2 softtabstop=2 -autocmd FileType php setl tabstop=4 expandtab shiftwidth=4 softtabstop=4 - -" Markdown -" autocmd BufNewFile,BufReadPost *.md setl filetype=markdown spell textwidth=0 wrapmargin=0 - -" Text -autocmd BufNewFile,BufReadPost *.txt setl spell textwidth=0 wrapmargin=0 - -" whitespace -set tabstop=2 -set shiftwidth=2 -set softtabstop=2 -set expandtab -set autoindent smartindent -set list -set nostartofline -set listchars=trail:·,tab:\ \ - -" look and feel - -set wrap -set linebreak -set breakindent -set textwidth=80 -set formatoptions=crql1j -" t autowrap to textwidth -" c autowrap comments to textwidth -" r autoinsert comment leader with -" q allow formatting of comments with gq -" l lines longer than 'textwidth' on insert do not get formatted -" 1 don't break a line after a one-letter word - break it before -" j where it makes sense, remove a comment leader when joining lines - -set title " handle window title -set synmaxcol=2048 -if exists('asmanviewer') - set nonumber " no line numbers when viewing a man page -else - set number " line numbers -endif -" set relativenumber -set cursorline " highlight the current line -" set cursorcolumn " highlight the current column -" let &colorcolumn=join(range(81,400),",") " colors columns past 80 -set showcmd -set nowildmenu -set wildmode=longest,list,full -set cpoptions-=$ -set showmatch -set mouse=a -set mousehide -set backspace=indent,eol,start -set ruler -set lazyredraw -set scrolloff=8 -set sidescrolloff=8 -set splitright -set splitbelow -set noerrorbells -set visualbell -set nobackup -set nowritebackup -set noswapfile -set timeout -set ttimeoutlen=200 -set isfname+=32 - -set vb t_vb= -if has('autocmd') - autocmd GUIEnter * set visualbell t_vb= -endif - -let base16colorspace=256 -set background=dark -colorscheme current - -fun! ShowSpaceIndentation() - hi WhiteSpaces ctermfg=black ctermbg=8 - match WhiteSpaces /^ \+/ -endfunction - -let s:distractionFreeMode = 0 -fun! DistractionFreeModeFunc() - AirlineToggle - VimroomToggle - if s:distractionFreeMode == 0 - let s:distractionFreeMode = 1 - set nocursorline - set laststatus=0 - set noshowmode - set noruler - set noshowcmd - set nonumber - hi NonText ctermfg=black guifg=black - else - let s:distractionFreeMode = 0 - set cursorline - set showmode - set ruler - set laststatus=2 - set showcmd - set number - hi NonText ctermfg=gray guifg=gray - endif -endfunction - -nnoremap mz :DistractionFreeMode - -:command! SpaceIndents call ShowSpaceIndentation() -:command! ShowSpaceIndents call ShowSpaceIndentation() -:command! DistractionFreeMode call DistractionFreeModeFunc() - -set hidden " allows buffer switching without saving -set shortmess=I -set history=1000 -set undofile -set undodir=$HOME/.config/nvim/undo -set undolevels=1000 -set undoreload=10000 - -set backupdir=$HOME/.config/nvim/backup -set directory=$HOME/.config/nvim/backup -set spellfile=$HOME/.config/nvim/spell/en.utf-8.add - -set ignorecase -set smartcase -set incsearch -set hlsearch -set wrapscan - -set foldmethod=syntax -set foldlevel=99 -set foldnestmax=10 -set nofoldenable -set foldlevelstart=1 - -if has('vim_starting') - set encoding=utf8 -endif -set autowrite -set autochdir -set autoread -set nomodeline - -" yank to OS clipboard -set clipboard+=unnamed - -" allows for manual and syntax folding... supposedly -augroup vimrc - au BufReadPre * setlocal foldmethod=indent - au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif -augroup END - -" jump to last opened position in file -if has("autocmd") - au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif -endif - -" no empty buffer on startup -autocmd VimEnter * nested if bufname('')=='' && line('$') == 1 && col('$')==1 && !&modified | bd % | endif - -function! TerminalSplit() - let current_file = @% - echo current_file - if match(current_file, "term://*") != -1 - split - terminal - else - vsplit - vertical resize 80 - terminal - endif -endfunction - -" bindings - -" common typo fixes -command! WQ wq -command! Wq wq -command! Wqa wqa -command! W w -command! Q q - -" best leader -let mapleader = "\" - -" terminal mappings -" open a terminal split at 80 columns -nnoremap :call TerminalSplit() -tnoremap :call TerminalSplit() - -" close the terminal -tnoremap :q! - -" moving between terminal splits -tnoremap h -tnoremap j -tnoremap k -tnoremap l - -" enter insert mode when entering a terminal buffer -autocmd BufWinEnter,WinEnter term://* startinsert - -" change buffers with leader,tab -nnoremap :bnext -nnoremap :bprevious - -" don't kill vim -nnoremap K -nnoremap - -" nerdtree -nnoremap :NERDTree - -" run macro across visually selected lines -xnoremap @ :call ExecuteMacroOverVisualRange() -function! ExecuteMacroOverVisualRange() - echo "@".getcmdline() - execute ":'<,'>normal @".nr2char(getchar()) -endfunction - -" quick paragraph formatting -vmap Q gq -nmap Q gqap - -" launch fzf for the current git repo -nnoremap :GitFiles - -" launch fzf for files in the current directory -nnoremap :Files - -" launch fzf for files modified or not in git -nnoremap :GFiles? - -" launch fzf for open buffers (files) -nnoremap l :Buffers - -" switch to previous buffer -nnoremap h :b# - -" use leader j and k to switch buffers as well -nnoremap k :bnext -nnoremap j :bprevious -nnoremap :bnext -nnoremap :bprevious - -" fast word change -nnoremap c ciw -nnoremap C ciW - -" bash-like deletion -inoremap -inoremap - -" clear search higlight -nnoremap / :let @/ = "" - -" remap jk and kj to escape in insert mode -inoremap jj -inoremap Jj -inoremap Jj -inoremap JJ -inoremap jk -inoremap Jk -inoremap jK -inoremap JK - -" use hjkl-movement between rows when soft wrapping: -nnoremap j gj -nnoremap k gk -vnoremap j gj -vnoremap k gk - -" camel case movements -map ,w CamelCaseMotion_w -map ,b CamelCaseMotion_b -map ,e CamelCaseMotion_e -map ,ge CamelCaseMotion_ge - -" inner _ objects -omap ib CamelCaseMotion_ib -xmap ib CamelCaseMotion_ib -omap ie CamelCaseMotion_ie -xmap ie CamelCaseMotion_ie - -" a _ objects -omap aw CamelCaseMotion_aw -xmap aw CamelCaseMotion_aw -omap ab CamelCaseMotion_ab -xmap ab CamelCaseMotion_ab -omap ae CamelCaseMotion_ae -xmap ae CamelCaseMotion_ae - -" remove trailing whitespace: -map mw:%s/\s\+$//:let @/ = ""'w - -" close buffer: -nnoremap w :bd - -" toggle spell checking: -map :setlocal spell! - -" open urls, files, etc. example: http://google.com: -noremap o :!xdg-open - -" keep that dumb window from popping up -map q: :q -noremap qqq: q: - -" sane n/N behavior -nnoremap n 'Nn'[v:searchforward] -nnoremap N 'nN'[v:searchforward] - -" better command history navigation -cnoremap -cnoremap - -" keep selection after indenting visual selection -xnoremap < >gv - -" modify higlight colors -hi Search cterm=NONE ctermbg=blue ctermfg=black diff --git a/editor/nvim/link.bash b/editor/nvim/link.bash deleted file mode 100755 index 3479c2f..0000000 --- a/editor/nvim/link.bash +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -rm -rf "$HOME/.config/nvim" -ln -s "$DOTFILES_PATH/editor/nvim/config" "$HOME/.config/nvim" - -nvim +PlugInstal +qall - diff --git a/email/mutt/config/.gitignore b/email/mutt/config/.gitignore deleted file mode 100644 index 17aa8cb..0000000 --- a/email/mutt/config/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -wraithx2 -certificates diff --git a/email/mutt/config/muttrc b/email/mutt/config/muttrc deleted file mode 100644 index 18cdb53..0000000 --- a/email/mutt/config/muttrc +++ /dev/null @@ -1,121 +0,0 @@ -source "gpg -d ~/.password-store/mutt-passwords.gpg |" - -set editor = "vim" - -set from = "daniel@lytedev.io" -set realname="Daniel Flanagan" -set edit_headers = yes -set signature="$DOTFILES_PATH/email/mutt/config/signature" - -my_hdr X-Homepage: https://lytedev.io -my_hdr X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=get&search=0x5B2020A0F9921EF4 - -set imap_user = "wraithx2@gmail.com" -set imap_keepalive = 30 -set mail_check = 5 -unset imap_passive -unset record -set folder = "imaps://imap.gmail.com" -# set spoolfile = "+[Gmail]/All Mail" -set spoolfile = "+INBOX" -set postponed = "+[Gmail]/Drafts" -set header_cache = ~/.mutt/wraithx2/headers -set message_cachedir = ~/.mutt/wraithx2/bodies -set certificate_file = ~/.mutt/certificates -set smtp_url = "smtp://wraithx2@smtp.gmail.com:587/" -set move = no -set copy = no - -set quit = ask-yes -set wait_key = no -set mbox_type = Maildir -set timeout = 60 -set mail_check = 60 -set delete -unset confirmappend -unset mark_old -set beep_new -set pipe_decode -set thorough_search - -ignore * -unignore from: to: cc: date: subject: -unhdr_order * -hdr_order from: to: cc: date: subject: - -set date_format = "%d-%m-%y" -set index_format = "[%Z] %D %-20.20F %s" -set sort = threads -set sort_aux = reverse-last-date-received -set uncollapse_jump -set sort_re -set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*" -set fast_reply -set include -set forward_format = "Fwd: %s" -set smart_wrap - -auto_view text/html -alternative_order text/plain text/enriched text/html - -set sidebar_delim = ' │' -set sidebar_visible = yes -set sidebar_width = 24 - -set status_chars = " *%A" -set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───" - -mailboxes ='INBOX' ='[Gmail]/All Mail' ='[Gmail]/Drafts' ='[Gmail]/Sent Mail' - -set pager_index_lines = 10 -set pager_context = 5 -set pager_stop = yes -set menu_scroll -set tilde -unset markers - -# Custom keybindings -bind index,pager ! noop # unbind report-spam -bind index,pager \# noop # unbind delete-thread -bind index,pager % noop # unbind toggle-write -bind index,pager & noop # unbind link-threads - -bind index,pager b noop # Unbind bounce -bind index,pager A create-alias # bind alias-creation -bind pager previous-line # scroll inside the message rather than the index -bind pager next-line # scroll inside the message rather than the index - - -# Gmail style keybindings -bind editor noop -bind index,pager c mail # compose -bind generic x tag-entry # Select Conversation -bind index x tag-thread # Select Conversation -bind pager x tag-message # Select Conversation -bind index,pager s flag-message # Star a message - -bind index,pager a group-reply # Reply all -#bind index,pager \# delete-thread # Delete -bind index,pager l copy-message # Label -bind index,pager m save-message # Move to - - -# Gmail macros -macro index,pager I O "Mark as read" -macro index,pager U O "Mark as unread" -macro index,pager ga "=[Gmail]/All Mail" "Go to all mail" -macro index,pager gs =[Gmail]/Starred "Go to 'Starred'" -macro index,pager gd =[Gmail]/Drafts "Go to 'Drafts'" -macro index,pager gl ? "Go to 'Label'" -macro index,pager gi =INBOX "Go to inbox" -macro index,pager gt "=[Gmail]/Sent Mail" "Go to 'Sent Mail'" -macro index,pager d "=[Gmail]/Trash" "Trash" -macro index,pager + =[Gmail]/Important "Mark as important" -#macro index,pager ! =[Gmail]/Spam "Report spam" -macro index,pager y "=[All]/Gmail Mail" "Archive conversation" - -#folder-hook +INBOX 'macro index,pager y "=[Gmail]/All Mail" "Archive conversation"' -folder-hook +[Gmail]/Trash macro index,pager y =INBOX "Move to inbox" -folder-hook +[Gmail]/Starred bind index,pager y flag-message #"Toggle star" - -push diff --git a/email/mutt/config/signature b/email/mutt/config/signature deleted file mode 100644 index fde3c3c..0000000 --- a/email/mutt/config/signature +++ /dev/null @@ -1,2 +0,0 @@ -Daniel Flanagan -lytedev.io diff --git a/email/mutt/link.bash b/email/mutt/link.bash deleted file mode 100755 index d20b44f..0000000 --- a/email/mutt/link.bash +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -rm -rf "$HOME/.mutt" -ln -s "$DOTFILES_PATH/email/mutt/config" "$HOME/.mutt" diff --git a/env/sh/aliases b/env/sh/aliases deleted file mode 100644 index 6ca6c9d..0000000 --- a/env/sh/aliases +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env bash - -# this file must be sourced from bashrc in order to have to required variables - -# filesystem aliases -alias lx='ls -lXB' # order by filetype -alias lk='ls -lSr' # order by filesize reversed -alias lt='ls -ltr' # order by file modified time -alias lc='ls -ltcr' # order by filectime -alias lu='ls -ltur' # order by file access time -alias ls='ls -h --color --group-directories-first' # flat view w/ directories first -alias l='ls -h --color --group-directories-first' # same as above -alias ll='ls -lv --group-directories-first' # non-flat view -alias lm='ll | more' -alias lr='ll -R' # please don't - why is this even here...? -alias la='ll -A' # show all -alias tree='tree -Csuh' - -# navigation aliases -alias c="cd $HOME/.." -alias cd..="cd .." -alias cdd="cd \"$DOTFILES_PATH\"" -alias cdc="cd ~/.config" -alias ..="cd .." -alias ...="cd ../.." -alias ....="cd ../../.." -alias .....="cd ../../../.." -alias ......="cd ../../../../.." -alias .......="cd ../../../../../.." -alias ........="cd ../../../../../../.." -alias .........="cd ../../../../../../../.." - -# trying to get into a terminal-based todo system... -alias todo="todo.sh" -alias td="todo" - -# tmux aliases -# TODO: see if this can be worked around yet? -alias tmux='TERM=screen-256color-bce tmux' # syntax higlighting for vim in tmux -alias tmnew="tmux new -s" -alias tmls="tmux list-sessions" -alias tmatt="tmux attach -t" -alias tu="tmux attach -t utils || tmux new -s utils" -alias tdf="tmux attach -t df || tmux new -s df -c \"$DOTFILES_PATH\"" - -# git aliases -alias gs="git status" -alias gl="git log" -alias gpl="git pull" -alias gp="git push" -alias gac="git add -A && git commit -m" - -# browser aliases -alias qute="qutebrowser --backend webengine" - -# networking aliases -alias p="ping 8.8.8.8" -alias wifi-menu="sudo wifi-menu" -# start netctl using any available profile on the first wireless network -# interface -alias wifi="sudo systemctl start netctl-auto@$(for wli in /sys/class/net/wl*; do echo $(basename $wli); break; done)" - -# emacs aliases -alias emacs="emacs -nw" - -# arch aliases -alias archupdate="pacaur -Syyu --noconfirm --noedit" - -# misc aliases -alias setbg="feh --bg-fill" -alias C="clear" -alias keyrepeat="xset r rate 250 80" - -# games aliases -# alias steam="LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' steam" - -export EDITOR="vim" -if command -v nvim >/dev/null 2>&1; then - alias vim="nvim" - alias ovim="\\vim" - export EDITOR="nvim" -fi diff --git a/env/sh/bash_profile b/env/sh/bash_profile deleted file mode 100644 index f918d82..0000000 --- a/env/sh/bash_profile +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -if [ -f ~/.bashrc ]; then - source ~/.bashrc -fi - diff --git a/env/sh/bashrc b/env/sh/bashrc deleted file mode 100644 index ed5f072..0000000 --- a/env/sh/bashrc +++ /dev/null @@ -1,51 +0,0 @@ -export DOTFILES_PATH="$HOME/.dotfiles" -export XDG_CONFIG_HOME="$HOME/.config" - -# load our terminal colors -BASE16_SHELL="$DOTFILES_PATH/colors/shell" -[[ -s "$BASE16_SHELL" ]] && source "$BASE16_SHELL" - -# if we're a proper terminal? -if [ -t 0 ]; then - # load variables - source "$DOTFILES_PATH/variables.bash" - - # disable ctrl-s terminal freeze - [[ $- == *i* ]] && stty -ixon - - # import our aliases - source "$DOTFILES_PATH/env/sh/aliases" - - # import our global shell functions - source "$DOTFILES_PATH/env/sh/shell_funcs" - - # import our prompt - source "$DOTFILES_PATH/env/sh/prompt" - - # autocompletions - complete -cf sudo - complete -cf man - - # allow a per-device script that is pulled in - if [ -a "$HOME/.bashrc_env" ]; then - source "$HOME/.bashrc_env" - fi - - # this bashrc assumes a home directory like /home/username/usr in order to - # keep dotfiles from cluttering up an "actual" home directory /home/username - # this snippet will redirect new terminals to the "actual" home directory - if [ "$PWD" = "$HOME" ]; then - cd "$HOME/.." - fi - - # prevents binds or commands pulling from history from insta-sending, and - # instead places them in the readline for editing - shopt -s histverify - - # prevents some Java GUI apps from not working or rendering properly due to - # using bspwm - export _JAVA_AWT_WM_NONREPARENTING=1 - - # load our binds if we've got any inputs - bind -f "$HOME/.inputrc" -fi diff --git a/env/sh/inputrc b/env/sh/inputrc deleted file mode 100644 index 2713052..0000000 --- a/env/sh/inputrc +++ /dev/null @@ -1,6 +0,0 @@ -"\eOd": backward-word -"\eOc": forward-word -"\C-p": history-search-backward -"\C-n": history-search-forward -"\C-a": beginning-of-line -"\C-e": end-of-line diff --git a/env/sh/layout_dev.tmux b/env/sh/layout_dev.tmux deleted file mode 100644 index bc44a9e..0000000 --- a/env/sh/layout_dev.tmux +++ /dev/null @@ -1,5 +0,0 @@ -splitw -h -p 50 -splitw -v -p 67 -splitw -v -p 50 -resize-pane -x 100 -selectp -L diff --git a/env/sh/link.bash b/env/sh/link.bash deleted file mode 100755 index 1cf31c5..0000000 --- a/env/sh/link.bash +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source $DIR/variables.bash - -mkdir -p "$HOME/.tmux/layouts" - -MODULE_PATH="$DOTFILES_PATH/env/sh" - -rm -f "$HOME/.bashrc" -rm -f "$HOME/.bash_profile" -rm -f "$HOME/.tmux.conf" -rm -f "$HOME/.tmux/layouts/dev.tmux" -rm -f "$HOME/.inputrc" -ln -s "$MODULE_PATH/bashrc" "$HOME/.bashrc" -ln -s "$MODULE_PATH/bash_profile" "$HOME/.bash_profile" -ln -s "$MODULE_PATH/tmux.conf" "$HOME/.tmux.conf" -ln -s "$MODULE_PATH/layout_dev.tmux" "$HOME/.tmux/layouts/dev.tmux" -ln -s "$MODULE_PATH/inputrc" "$HOME/.inputrc" - -sed -i "/export DOTFILES_PATH/c export DOTFILES_PATH=\"$DIR\"" "$HOME/.bashrc" - -echo "You should re-source ~/.bashrc ;)" diff --git a/env/sh/prompt b/env/sh/prompt deleted file mode 100644 index 9ae0879..0000000 --- a/env/sh/prompt +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -COLOR_RESET='\[\e[0m\]' -PROMPT_SUCCESS_COLOR='\[\e[0;34m\]' -PROMPT_FAILURE_COLOR='\[\e[0;31m\]' -DIR_COLOR='\[\e[0;33m\]' - -# prompt rendering functions -preprocess_pwd() { - name="$PWD" - # if we're in the home directory, replace it with tilde - [[ "$name" =~ ^"$NICE_HOME"(/|$) ]] && name="~${name#$NICE_HOME}" - - # replace all non-basename parts of the PWD with only the first two letters - curdir=$(echo "$PWD" | sed -r 's|.*/(.+)$|\1|g') - name=$(echo "$name" | sed -r 's|/(..)[^/]*|/\1|g' | sed -r 's|(.*/)(.+)$|\1|g') - - # if we're just in the home directory, don't show any path stuff - [[ "$name" == "~" ]] && curdir="" - - # return our transformed PWD - echo "$name$curdir" -} - -prompt_command_func() -{ - RET=$? - # set the color of the user and host based on the result of the previous - # command - if [ $RET -eq 0 ]; then - STATUS_COLOR=$PROMPT_SUCCESS_COLOR - else - STATUS_COLOR=$PROMPT_FAILURE_COLOR - fi; - PS1="$STATUS_COLOR\u@\h$COLOR_RESET $DIR_COLOR$(eval "preprocess_pwd")$COLOR_RESET " -} -export PROMPT_COMMAND="prompt_command_func" - - diff --git a/env/sh/shell_funcs b/env/sh/shell_funcs deleted file mode 100644 index d50b028..0000000 --- a/env/sh/shell_funcs +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env bash - -calc() { - python -c "print($@)" -} -export -f calc - -stopbar() { - if [[ -f "$BAR_PID_FILE" ]]; then - kill -SIGTERM $(cat "$BAR_PID_FILE") - kill -SIGTERM $(cat "$BAR_PID_FILE"*.pid) - kill -SIGTERM $(cat "$BAR_PATH"/modules/*.pid) - rm -f "$BAR_PID_FILE" - rm "$BAR_PID_FILE"*.pid - rm "$BAR_PATH"/modules/*.pid - else - echo "Bar is not running." - fi -} -export -f stopbar - -# wm aliases -startbar() { - if [[ -f "$BAR_PID_FILE" ]]; then - stopbar - fi - "$BAR_PATH/start.bash" & - BAR_PID=$! - echo "$BAR_PID" > "$BAR_PID_FILE" - kill -CONT "$BAR_PID" - # bg - # disown - - # lower the bar's layer so fullscreen windows cover it - wid=$(xdo id -a "$BAR_WID") - tries=20 - while [ -z "$wid" -a "$tries" -gt 0 ]; do - sleep 0.1 - wid=$(xdo id -a "$BAR_WID") - tries=$((tries - 1)) - echo "WID $wid" - done - [ -n "$wid" ] && xdo above -t "$(xdo id -N Bspwm -n root | sort | head -n 1)" "$wid" - - fg -} -export -f startbar - -# save the current directory for later retrieval -scwd() { - addon="" - if [[ -n $1 ]]; then - addon="-$1" - fi - echo "$PWD" > "$DOTFILES_PATH/env/sh/cwd$addon.tmp" -} -export -f scwd -bind '"\C-s"':"\"scwd\C-m\"" - -# go to the saved current directory -gcwd() { - addon="" - if [[ -n $1 ]]; then - addon="-$1" - fi - cd $(cat "$DOTFILES_PATH/env/sh/cwd$addon.tmp") -} -export -f gcwd -bind '"\C-g"':"\"gcwd\C-m\"" - -# man pages with vim -vman() { - if command -v nvim >/dev/null 2>&1; then - nvim -c "SuperMan $*" - else - vim -c "SuperMan $*" - fi - - if [ "$?" != "0" ]; then - echo "No manual entry for $*" - fi -} -alias _man="\\man" -alias man="vman" - -# close a terminal with Ctrl-Shift-D (in theory) -bind '"\C-D"':"\"\C-c\C-d\"" - diff --git a/env/sh/tmux.conf b/env/sh/tmux.conf deleted file mode 100644 index 19de3ca..0000000 --- a/env/sh/tmux.conf +++ /dev/null @@ -1,76 +0,0 @@ -# ^s as prefix -unbind C-b -set -g prefix C-s -bind-key s send-prefix - -# statusbar on bottom -set-option -g status-position bottom - -# honestly not sure -set -g escape-time 10 -setw -g monitor-activity on - -# hide tmux status bar by default (prefix H toggles) -set -g status off - -bind-key W resize-pane -x 100 - -# splitting -bind-key v split-window -h -bind-key b split-window - -# be xterm -set -g default-terminal "xterm" - -# iterating -bind r source-file ~/.tmux.conf - -# toggle status bar -bind-key H set status - -# vim copying -setw -g mode-keys vi -bind-key -t vi-copy 'v' begin-selection -bind-key -t vi-copy 'y' copy-selection - -# 1-based indexing for keystroke simplicity -set -g base-index 1 -set -g pane-base-index 1 - -# custom predefined layouts -bind M-l source-file ~/.tmux/layouts/dev.tmux - -# mimic pane switching in and out of vim -is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"' -bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" -bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" -bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" -bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" -bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" - -# present a menu of urls to open from the visible pane -bind-key u capture-pane \;\ - save-buffer /tmp/tmux-buffer \;\ - split-window -l 10 "urlview /tmp/tmux-buffer" - -# list of plugins -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-sensible' -set -g @plugin 'tmux-plugins/tmux-resurrect' -set -g @plugin 'tmux-plugins/tmux-continuum' -set -g @plugin 'tmux-plugins/tmux-yank' -set -g @plugin 'tmux-plugins/tmux-copycat' -set -g @plugin 'tmux-plugins/tmux-sessionist' - -# plugin options - -# enable continuum -set -g @continuum-restore 'off' - -# let continuum startup on boot -set -g @continuum-boot 'off' - -# initialize tmux plugin manager -run '~/.tmux/plugins/tpm/tpm' - -unbind-key C-p diff --git a/env/wm/bspwm_config b/env/wm/bspwm_config deleted file mode 100755 index 0951aa4..0000000 --- a/env/wm/bspwm_config +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env sh - -source "$DOTFILES_PATH/variables.bash" -source "$DOTFILES_PATH/scripts/get_color.sh" -source "$DOTFILES_PATH/scripts/get_x_fonts.sh" - -# bspc config normal_border_color "#$(get_color 05)" -# bspc config focused_border_color "#$(get_color 0D)" -# bspc config active_border_color "#$(get_color 0D)" -# bspc config presel_feedback_color "#$(get_color 0D)" - -bspc config normal_border_color "#$(get_color 01)" -bspc config focused_border_color "#$(get_color 0D)" -bspc config active_border_color "#$(get_color 09)" -bspc config presel_feedback_color "#$(get_color 04)" -bspc config border_width "$BORDER_WIDTH" -bspc config split_ratio 0.50 -bspc config borderless_monocle true -bspc config gapless_monocle true - -bspc config window_gap "$WINDOW_GAP" - -if [ "$BAR_ON_XINIT" -eq 1 ]; then - if [ -z "$BAR_MONITOR" -o "$BAR_MONITOR" -eq 0 ]; then - source "$DOTFILES_PATH/scripts/monitors.sh" - BAR_MONITOR="$LAST_BSPWM_MONITOR" - fi - - if [ $BAR_TOP -eq 1 ]; then - bspc config -m ${BAR_MONITOR} top_padding "$BAR_HEIGHT" - else - bspc config -m ${BAR_MONITOR} bottom_padding "$BAR_HEIGHT" - fi -fi - -echo "${BSPWM_MONITORS}" -BSPWM_MONITORS=$(bspc query -M | tac) - -MONITOR_COUNT=$(echo "${BSPWM_MONITORS}" | wc -w | awk '{ printf $1 }') -PER_MONITOR=$((10 / MONITOR_COUNT)) -i=1 - -DESKTOPS=(dev web misc env play out main srv daem util) - -for mon in ${BSPWM_MONITORS}; do - echo $mon - echo $i - max=$((i + PER_MONITOR - 1)) - echo $max - screens= - for j in $(seq $i $max); do - ind=${DESKTOPS[$((j - 1))]} - screens="$screens$ind " - done - bspc monitor "$mon" -d $screens - i=$((max + 1)) -done - -if [[ -f "$HOME/.bspwm_env" ]]; then - source "$HOME/.bspwm_env" -fi diff --git a/env/wm/bspwmrc b/env/wm/bspwmrc deleted file mode 100755 index 7792164..0000000 --- a/env/wm/bspwmrc +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env sh - -source "$HOME/.dotfiles/variables.bash" - -if [ -e "$BSPWM_STATE" ] ; then - bspc wm -l "$BSPWM_STATE" - rm "$BSPWM_STATE" -fi - -# start the bar if we want it -if [ "$BAR_ON_XINIT" -eq 1 ]; then - "$BAR_PATH/start.bash" & -fi - -source "$DOTFILES_PATH/env/wm/bspwm_config" -source "$DOTFILES_PATH/scripts/get_color.sh" -source "$DOTFILES_PATH/scripts/get_x_fonts.sh" - -urxvtd & -sxhkd & - -bspc wm -o diff --git a/env/wm/extras/bar/bar_commands.bash b/env/wm/extras/bar/bar_commands.bash deleted file mode 100755 index def6ba2..0000000 --- a/env/wm/extras/bar/bar_commands.bash +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -while read -r line; do - COMMAND=$(echo "$line" | awk '{print $1;}') - ARGS=$(echo "$line" | awk '{for (i=2; i<=NF; i++) print $i}') - case $COMMAND in - switch_desktop) - bspc desktop -f $ARGS - ;; - launcher) - rofi -show run -font "$PRIMARY_FONT_FAMILY $PRIMARY_FONT_SIZE" -lines 16 -width 10 -padding 8 -fuzzy -bw "$BORDER_WIDTH" -color-enabled -color-window "#$(get_color 00)","#$(get_color 0D)","#$(get_color 0D)","#$(get_color 00)" -color-normal "#$(get_color 00)","#$(get_color 06)","#$(get_color 00)","#$(get_color 0D)","#$(get_color 00)" -separator-style none -hide-scrollbar - ;; - launcher2) - rofi -show drun -font "$PRIMARY_FONT_FAMILY $PRIMARY_FONT_SIZE" -lines 16 -width 10 -padding 8 -fuzzy -bw "$BORDER_WIDTH" -color-enabled -color-window "#$(get_color 00)","#$(get_color 0D)","#$(get_color 0D)","#$(get_color 00)" -color-normal "#$(get_color 00)","#$(get_color 06)","#$(get_color 00)","#$(get_color 0D)","#$(get_color 00)" -separator-style none -hide-scrollbar - ;; - close) - bspc node -c - ;; - kill) - bspc node -k - ;; - esac -done diff --git a/env/wm/extras/bar/colors.bash b/env/wm/extras/bar/colors.bash deleted file mode 100644 index 59e347b..0000000 --- a/env/wm/extras/bar/colors.bash +++ /dev/null @@ -1,12 +0,0 @@ -export COLOR_FOREGROUND="#$(get_color 05 | awk '{print toupper($0)}')" -export COLOR_DARK="#$(get_color 02 | awk '{print toupper($0)}')" -export COLOR_BACKGROUND="#$(get_color 00 | awk '{print toupper($0)}')" -export COLOR_HIGHLIGHT="#$(get_color 0E | awk '{print toupper($0)}')" -export COLOR_URGENT="#$(get_color 08 | awk '{print toupper($0)}')" - -export COLOR_S1="#$(get_color 0E | awk '{print toupper($0)}')" -export COLOR_S2="#$(get_color 0F | awk '{print toupper($0)}')" -export COLOR_S3="#$(get_color 0D | awk '{print toupper($0)}')" -export COLOR_S4="#$(get_color 0A | awk '{print toupper($0)}')" -export COLOR_S5="#$(get_color 09 | awk '{print toupper($0)}')" - diff --git a/env/wm/extras/bar/formatter.bash b/env/wm/extras/bar/formatter.bash deleted file mode 100755 index a9407be..0000000 --- a/env/wm/extras/bar/formatter.bash +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/env bash - -source "$DOTFILES_PATH/variables.bash" - -# export BAR_LOG="$PWD/bar.log" -# echo -e "BEGIN BAR LOG\n" > "$BAR_LOG" - -reload_colors() { - source "$BAR_PATH/colors.bash" -} - -# trap reload_colors SIGUSR1 - -LAUNCHER_BUTTONS=" %{F$COLOR_DARK}%{A3:launcher2:}%{A:launcher:}!%{A}%{A} %{A3:close:}%{A:kill:}X%{A}%{A}%{F-} " -if [ "$NO_LAUNCHER_BUTTONS" -eq 1 ]; then - LAUNCHER_BUTTONS="" -fi - -export MODULE_MATCH=() -export MODULE_CALLBACK=() -export MODULE_DATA=() -export MODULE_CONTENT=() -export MODULE_INIT=() -export MODULE_PIDS="" - -register_bar_module() { - MODULE_MATCH[$1]=$2 - MODULE_CALLBACK[$1]=$3 - MODULE_DATA[$1]= - MODULE_CONTENT[$1]= - MODULE_INIT[$1]=$4 - - TYPE_RBM="$(type -t ${MODULE_INIT[$1]})" - TYPE_RBM2="$(type -t ${MODULE_INIT[$3]})" - # echo "-----> - $TYPE_RBM - $TYPE_RBM2 -" >> "$BAR_LOG" - ${MODULE_INIT[$1]} & - PID=$! - echo $PID > "$BAR_PATH/modules/$3.pid" - echo -e "Registered Bar Module: $1 $2 $3 $4 with PID $PID" >> "$BAR_LOG" -} -export -f register_bar_module - -for f in "$BAR_PATH/modules/"*-bm.bash; do - for bl in $BLACKLISTED_BAR_MODULES; do - if [[ "$f" = "$BAR_PATH/modules/""${bl}"-bm.bash ]]; then - f="" - fi - done - if [[ -n $f ]]; then - echo -e "$f" >> "$BAR_LOG" - source "$f" - fi -done - -while read -r line; do - # echo -e "Bar Line: $line" >> "$BAR_LOG" - for i in ${!MODULE_MATCH[@]}; do - # echo ${!MODULE_MATCH[@]} >> $BAR_LOG - if [[ $line == ${MODULE_MATCH[$i]} ]]; then - # echo -e "Bar Module Update: [$i] Matched ${MODULE_MATCH[$i]} with $line" >> "$BAR_LOG" - MODULE_CONTENT[$i]="$("${MODULE_CALLBACK[$i]}" "$line")" - # echo -e "New Module Content: "${MODULE_CONTENT[$i]} >> "$BAR_LOG" - fi - done - - l_content="" - c_content="" - r_content="" - for i in ${!MODULE_CONTENT[@]}; do - if [ $i -ge 30000 ]; then - r_content="$r_content ${MODULE_CONTENT[$i]}" - elif [ $i -ge 20000 ]; then - c_content="$c_content${MODULE_CONTENT[$i]} " - else - l_content="$l_content${MODULE_CONTENT[$i]} " - fi - done - - printf "%s\n" "%{l}$BAR_LEFT_CHARS$l_content$LAUNCHER_BUTTONS%{c}$c_content%{r}$r_content$BAR_RIGHT_CHARS" -done - -# echo -e "\nEND BAR LOG" >> "$BAR_LOG" - diff --git a/env/wm/extras/bar/modules/battery-bm.bash b/env/wm/extras/bar/modules/battery-bm.bash deleted file mode 100644 index 8f1d1ee..0000000 --- a/env/wm/extras/bar/modules/battery-bm.bash +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -source "$DOTFILES_PATH/variables.bash" -source "$BAR_PATH/colors.bash" - -PRIORITY=22000 - -MATCH_PREFIX="BM_BATTERY" -MATCH="$MATCH_PREFIX*" - -bar_module_battery() { - echo -e "%{T-}%{F$COLOR_DARK}bat %{F$COLOR_S2}${1:10}%{F-}" -} -export -f bar_module_battery - -bar_module_battery_updater() { - while true; do - # echo -e "$MATCH_PREFIX""$(cat /sys/class/power_supply/BAT*/capacity)" >> "$BAR_LOG" - echo -e "$MATCH_PREFIX""$(cat /sys/class/power_supply/BAT*/capacity)" > "$BAR_FIFO" - sleep 60 - done -} -export -f bar_module_battery_updater - -register_bar_module "$PRIORITY" "$MATCH" "bar_module_battery" "bar_module_battery_updater" diff --git a/env/wm/extras/bar/modules/bl.bash b/env/wm/extras/bar/modules/bl.bash deleted file mode 100644 index 7ec467c..0000000 --- a/env/wm/extras/bar/modules/bl.bash +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -source "$DOTFILES_PATH/variables.bash" -PRIORITY=30505 -MATCH_PREFIX="BM_BL" -MATCH="$MATCH_PREFIX*" - -bar_module_backlight() { - echo -e "%{T-}%{F$COLOR_DARK}lit %{F$COLOR_S5}${1:5}%{F-}" -} -export -f bar_module_backlight - -bar_module_backlight_updater() { - while [ $BAR_RUNNING -eq 1 ]; do - # echo -e "$MATCH_PREFIX""$(xbacklight | sed 's/\.[0-9]*//')" > "$BAR_FIFO" - sleep 5 - done -} -export -f bar_module_backlight_updater - -# Optional: Initialize that module by immediately writing to the FIFO using your -# prefix to show some default information on the bar when it loads. -echo -e "$MATCH_PREFIX"??? > "$BAR_FIFO" - -# Register our module so that it is started once the bar is ready -register_bar_module "$PRIORITY" "$MATCH" "bar_module_backlight" "bar_module_backlight_updater" - diff --git a/env/wm/extras/bar/modules/bspwm-bm.bash b/env/wm/extras/bar/modules/bspwm-bm.bash deleted file mode 100644 index 1e91fb1..0000000 --- a/env/wm/extras/bar/modules/bspwm-bm.bash +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env bash - -source "$DOTFILES_PATH/variables.bash" -source "$BAR_PATH/colors.bash" - -PRIORITY=15000 - -PID_PREFIX="bspwm" -MATCH_PREFIX="W" -MATCH="$MATCH_PREFIX*" - -DESKTOP_SPACE_BEFORE="" -DESKTOP_SPACE_AFTER="" - -SWITCH_DESKTOP_COMMAND="switch_desktop" - -ul="u" -if [ $BAR_UNDERLINE -eq 1 ]; then - : -else - ul="o" -fi - -bar_module_bspwm() { - content="%{F$COLOR_FOREGROUND}" - line=$1 - IFS=':' - set -- ${line#?} - while [ $# -gt 0 ] ; do - item=$1 - name=${item#?} - cname="$name" - bname=" %{A:$SWITCH_DESKTOP_COMMAND $cname:}${cname}%{A} " - case $item in - O*) # focused occupied desktop - content="$DESKTOP_SPACE_BEFORE${content}%{B$COLOR_HIGHLIGHT}%{F$COLOR_BACKGROUND}%{U$COLOR_HIGHLIGHT}%{+${ul}}${bname}%{-${ul}}%{U-}%{F-}%{B-}$DESKTOP_SPACE_AFTER" - ;; - F*) # focused free desktop - content="$DESKTOP_SPACE_BEFORE${content}%{B$COLOR_DARK}%{F$COLOR_BACKGROUND}%{U$COLOR_HIGHLIGHT}%{+${ul}}${bname}%{-${ul}}%{U-}%{F-}%{B-}$DESKTOP_SPACE_AFTER" - ;; - U*) # urgent focused desktop - content="$DESKTOP_SPACE_BEFORE${content}%{B$COLOR_URGENT}%{F$COLOR_BACKGROUND}%{U$COLOR_HIGHLIGHT}%{+${ul}}${bname}%{-${ul}}%{U-}%{F-}%{B-}$DESKTOP_SPACE_AFTER" - ;; - o*) # occupied unfocused desktop - content="$DESKTOP_SPACE_BEFORE${content}%{F$COLOR_FOREGROUND}${bname}%{F-}$DESKTOP_SPACE_AFTER" - ;; - f*) # free desktop - content="$DESKTOP_SPACE_BEFORE${content}%{F$COLOR_DARK}${bname}%{F-}$DESKTOP_SPACE_AFTER" - ;; - u*) # urgent desktop - content="$DESKTOP_SPACE_BEFORE${content}%{B$COLOR_URGENT}%{F$COLOR_BACKGROUND}%{U$COLOR_HIGHLIGHT}%{+${ul}}${bname}%{-${ul}}%{U-}%{F-}%{B-}$DESKTOP_SPACE_AFTER" - ;; - esac - shift - done - echo -e "$content" -} -export -f bar_module_bspwm - -bar_module_bspwm_updater() -{ - bspc subscribe all > "$BAR_FIFO" -} -export -f bar_module_bspwm_updater - -register_bar_module "$PRIORITY" "$MATCH" "bar_module_bspwm" "bar_module_bspwm_updater" - diff --git a/env/wm/extras/bar/modules/clock-bm.bash b/env/wm/extras/bar/modules/clock-bm.bash deleted file mode 100644 index 77e4b7e..0000000 --- a/env/wm/extras/bar/modules/clock-bm.bash +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -source "$DOTFILES_PATH/variables.bash" -source "$BAR_PATH/colors.bash" - -PRIORITY=38000 - -MATCH_PREFIX="BM_CLOCK" -MATCH="$MATCH_PREFIX*" - -bar_module_clock() { - echo -e "%{T-}%{F$COLOR_S1}${1:8}%{F-}" -} - -export -f bar_module_clock - -bar_module_clock_updater() { - while true; do - echo -e "$MATCH_PREFIX""$(date +%H.%M.%S)" > "$BAR_FIFO" - sleep 1 - done -} -export -f bar_module_clock_updater - -register_bar_module "$PRIORITY" "$MATCH" "bar_module_clock" "bar_module_clock_updater" diff --git a/env/wm/extras/bar/modules/date-bm.bash b/env/wm/extras/bar/modules/date-bm.bash deleted file mode 100644 index 450e0a1..0000000 --- a/env/wm/extras/bar/modules/date-bm.bash +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -source "$DOTFILES_PATH/variables.bash" -source "$BAR_PATH/colors.bash" - -PRIORITY=35000 - -MATCH_PREFIX="BM_DATE" -MATCH="$MATCH_PREFIX*" - -bar_module_date() { - echo -e "%{F$COLOR_DARK}| %{T-}%{F$COLOR_S2}${1:7}%{F-}" -} -export -f bar_module_date - -bar_module_date_updater() { - while true; do - echo -e "$MATCH_PREFIX""$(date +'%a %b %d')" > $BAR_FIFO - sleep 60 - done -} -export -f bar_module_date_updater - -register_bar_module "$PRIORITY" "$MATCH" "bar_module_date" "bar_module_date_updater" diff --git a/env/wm/extras/bar/modules/example.bash b/env/wm/extras/bar/modules/example.bash deleted file mode 100644 index 3dd73ca..0000000 --- a/env/wm/extras/bar/modules/example.bash +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash - -source "$DOTFILES_PATH/variables.bash" - -# This defines this module's priority, determining where it will be rendered on -# the bar relative to other modules. -PRIORITY=2500 - -# This is the trigger that the incoming line from the FIFO must match in order -# to be processed by this module. -MATCH_PREFIX="BM_EXAMPLE" -MATCH="$MATCH_PREFIX*" - -# Define the function that will be called upon the match being triggered. This -# should process the first argument (the line from the FIFO) and echo the -# desired bar output. -bar_module_example() { - # Write the line from the 10th character (cutting off the MATCH_PREFIX) - echo -e "${1:10}" -} - -# Export our function so that the formatter script can call it. -export -f bar_module_example - -# Create a function that will periodically write to the FIFO with the correct -# prefix, thereby updating the module. -bar_module_example_updater() { - while [ $BAR_RUNNING -eq 1 ]; do - echo -e "$MATCH_PREFIX""$(date +%H.%M)" > "$BAR_FIFO" - sleep 30 - done -} -export -f bar_module_example_updater - -# Optional: Initialize that module by immediately writing to the FIFO using your -# prefix to show some default information on the bar when it loads. -echo -e "$MATCH_PREFIX"Loading... > "$BAR_FIFO" - -# Register our module so that it is started once the bar is ready -register_bar_module "$PRIORITY" "$MATCH" "bar_module_example" "bar_module_example_updater" diff --git a/env/wm/extras/bar/modules/pacaur-updates-bm.bash b/env/wm/extras/bar/modules/pacaur-updates-bm.bash deleted file mode 100644 index 52e323e..0000000 --- a/env/wm/extras/bar/modules/pacaur-updates-bm.bash +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -source "$DOTFILES_PATH/variables.bash" -source "$BAR_PATH/colors.bash" - -PRIORITY=32000 - -MATCH_PREFIX="BM_PACAUR" -MATCH="$MATCH_PREFIX*" - -bar_module_pacaur() { - echo -e "%{T-}%{F$COLOR_DARK}pac %{F$COLOR_S4}${1:9}%{F-}" -} -export -f bar_module_pacaur - -bar_module_pacaur_updater() { - while true; do - if [ -e "/var/lib/pacman/db.lck" ]; then - sleep 10 - else - NUM_PACKAGES=$(pacaur -Syq --silent >/dev/null 2>/dev/null && pacaur -Qqu | wc -l) - echo -e "$MATCH_PREFIX""$NUM_PACKAGES" > "$BAR_FIFO" - sleep 300 - fi - done -} -export -f bar_module_pacaur_updater - -register_bar_module "$PRIORITY" "$MATCH" "bar_module_pacaur" "bar_module_pacaur_updater" - -echo -e "$MATCH_PREFIX"?? > "$BAR_FIFO" diff --git a/env/wm/extras/bar/start.bash b/env/wm/extras/bar/start.bash deleted file mode 100755 index dae015e..0000000 --- a/env/wm/extras/bar/start.bash +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env bash - -source "$DOTFILES_PATH/variables.bash" - -if [ -f "$HOME/.bashrc_env" ]; then - source "$HOME/.bashrc_env" -fi - -export BAR_RUNNING=1 -function killbar() { - export BAR_RUNNING=0 - if [ $BAR_TOP -eq 1 ]; then - bspc config -m ${BAR_MONITOR} top_padding "0" - else - bspc config -m ${BAR_MONITOR} bottom_padding "0" - fi - for f in $(ls "$BAR_PATH"/modules/*.pid 2>/dev/null); do - # echo "KILLING MODULE PROCESS $f WITH PID $(cat "$f")" - # kill -SIGTERM $(cat "$f") - rm "$f" - done - kill $! - # kill -SIGTERM $BARPID -} -export -f killbar - -trap killbar INT TERM QUIT EXIT - -rm -f "$BAR_FIFO" -mkfifo "$BAR_FIFO" - -if [ -z "$BAR_MONITOR" -o "$BAR_MONITOR" -eq 0 ]; then - source "$DOTFILES_PATH/scripts/monitors.sh" - BAR_MONITOR="$LAST_BSPWM_MONITOR" -fi - -export POS_Y=0 -EHEIGHT=$((BAR_HEIGHT + BAR_TOP_PADDING + BAR_BOTTOM_PADDING)) -if [ $BAR_TOP -eq 1 ]; then - export POS_Y="$BAR_TOP_PADDING" - bspc config -m ${BAR_MONITOR} top_padding "$EHEIGHT" -else - export POS_Y="$BAR_BOTTOM_PADDING" - bspc config -m ${BAR_MONITOR} bottom_padding "$EHEIGHT" -fi - -# get width of our main monitor -WIDTH=`xrandr -q | egrep '(^| )connected( |$)' | tr 'x' '\n' | head -n 1 | awk '{print $NF}'` -WIDTH=$((WIDTH-BAR_MARGIN-BAR_MARGIN)) -OFFSET=$((BAR_MARGIN+BAR_OFFSET)) -echo "w$WIDTH by o$OFFSET m$BAR_MARGIN e$EHEIGHT bh, tp, bp" - -BAR_B="" -if [ $BAR_TOP -eq 1 ]; then - : -else - BAR_B="-b" -fi - -source "$BAR_PATH/colors.bash" - -cat "$BAR_FIFO" | "$BAR_PATH/formatter.bash" | \ - lemonbar -a 50 $BAR_B -g "$WIDTH"x"$BAR_HEIGHT"+"$OFFSET"+"$POS_Y" -u "$BAR_BORDER_WIDTH" -f "$BAR_FONT_FAMILY" -F "$COLOR_FOREGROUND" -B"$COLOR_BACKGROUND" -n "$BAR_WID" | \ - "$BAR_PATH/bar_commands.bash" - diff --git a/env/wm/extras/bar/variables.bash b/env/wm/extras/bar/variables.bash deleted file mode 100644 index c5af5c7..0000000 --- a/env/wm/extras/bar/variables.bash +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env bash - -# the path to the bar stuff -export BAR_PATH="$DOTFILES_PATH/env/wm/extras/bar" - -# where to put the file that contains the bar's pid -export BAR_PID_FILE="$BAR_PATH/wm_bar.pid" - -# whether or not to start the bar when X starts -export BAR_ON_XINIT=1 - -# the path to the bar's FIFO -export BAR_FIFO="$BAR_PATH/wm_bar_fifo.lock" - -# the monitor on which to display the bar (see BSPWM(1)) -export BAR_MONITOR=0 # detect monitor automatically - -# the bar's log file -export BAR_LOG="$BAR_PATH/wm_bar.log" - -# whether or not the bar is anchored to the top of the monitor (or the bottom if -# not) -export BAR_TOP=0 - -# the pixel height of the bar -export BAR_HEIGHT=24 - -# the bar's underline line width -export BAR_BORDER_WIDTH=0 - -# the bar's font -export BAR_FONT_FAMILY="$PRIMARY_FONT_FAMILY_WITH_SIZE" - -# whether or not the "underline" appears above or below the desktop names on -# lemonbar -export BAR_UNDERLINE=0 - -# the bar's spacing on the left and right sides -export BAR_MARGIN=0 -# export BAR_MARGIN=$WINDOW_GAP - -# how far left the display the bar note that the margin will be used to attempt -# to center the bar on the monitor it is being displayed on -export BAR_OFFSET=0 - -# the window ID to give to bar so that other scripts may raise or lower it in -# bspwm -export BAR_WID="wmpanel" - -# the amount of pixel padding space to place above the bar -export BAR_TOP_PADDING=0 - -# the amount of pixel padding space to place below the bar -export BAR_BOTTOM_PADDING=24 - -# the characters to always print on the left-most side of the bar -export BAR_LEFT_CHARS="" - -# the characters to always print on the right-most side of the bar -export BAR_RIGHT_CHARS=" " diff --git a/env/wm/link.bash b/env/wm/link.bash deleted file mode 100755 index 8a0ec7d..0000000 --- a/env/wm/link.bash +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -MODULE_PATH="$DOTFILES_PATH/env/wm" - -mkdir -p "$HOME/.config/bspwm" -mkdir -p "$HOME/.config/sxhkd" - -rm -f "$HOME/.config/bspwm/bspwmrc" -rm -f "$HOME/.config/sxhkd/sxhkdrc" -ln -s "$MODULE_PATH/bspwmrc" "$HOME/.config/bspwm/bspwmrc" -ln -s "$MODULE_PATH/sxhkdrc" "$HOME/.config/sxhkd/sxhkdrc" - diff --git a/env/wm/sxhkdrc b/env/wm/sxhkdrc deleted file mode 100755 index b824584..0000000 --- a/env/wm/sxhkdrc +++ /dev/null @@ -1,230 +0,0 @@ -# node manager shortcuts - -# focus the node for the given path jump -super + {p,b,comma,period} - bspc node -f @{parent,brother,first,second} - -# set modes to tiled/floating for current node -super + {s,f} - bspc node -t {tiled,floating} - -# set modes to pseudo_tiled/fullscreen for current node -super + shift + {s,f} - bspc node -t {pseudo_tiled,fullscreen -l above} - -# focus the last node/desktop -super + {grave,Tab} - bspc {node,desktop} -f last - -# focus the next floating node -super + ctrl + f - bspc node -f next.floating - -# swap positions with the previous node -super + apostrophe - bspc node -s last - -# swap the current node with the biggest node on the current desktop -super + m - bspc node -s biggest - -# move/swap between nodes using vim-style arrows -super + {_,shift + }{h,j,k,l} - bspc node -{f,s} {west,south,north,east} - -# swap previous/next desktops -super + bracket{left,right} - bspc desktop -f {prev,next} - -# preselect the splitting area for the current node -super + ctrl + {h,j,k,l} - bspc node -p {west,south,north,east} - -# clear the splitting area -super + ctrl + {_,shift + }space - bspc {node -p cancel,desktop -c} - -# expand the current node -super + alt + {h,j,k,l} - bspc node {@west -r -10,@south -r +10,@north -r -10,@east -r +10} - -# shrink the current node -super + alt + shift + {h,j,k,l} - bspc node {@east -r -10,@north -r +10,@south -r -10,@west -r +10} - -# set node split ratio -super + ctrl + {1-9,0} - bspc node -r 0.{1-9,10} - -# move a floating window very slowly -super + shift + {Left,Down,Up,Right} - xdo move {-x -1,-y +1,-y -1,-x +1} - -# move a floating window -super + {Left,Down,Up,Right} - xdo move {-x -20,-y +20,-y -20,-x +20} - -# focus/move node to the selected desktop -super + {_,shift + }{1-9,0} - bspc {desktop -f,node -d} ^{1-9,10} - -# focus clicked node -~button1 - bspc node -f pointed - -# mouse controls for node movement and resizing -super + button{1-3} - bspc pointer -g {move,resize_side,resize_corner} - -# simulate mouse2 -shift + super + button1 - bspc pointer -g resize_corner - -# ??? -super + !button{1-3} - bspc pointer -t %i %i - -# ??? -super + @button{1-3} - bspc pointer -u - -# change node gap and desktop padding -super + plus - bspc config -d focused window_gap $((`bspc config -d focused window_gap` + 5 )) - -super + equal - bspc config -m $(bspc query -M | head -n 1) top_padding $TOP_BAR_PADDING; bspc config -m $(bspc query -M | head -n 1) bottom_padding $BOTTOM_BAR_PADDING; bspc config -d focused window_gap $WINDOW_GAP - -super + minus - bspc config -d focused window_gap $((`bspc config -d focused window_gap` - 5 )) - -super + alt + r - bspc config -m $(bspc query -M | head -n 1) bottom_padding $BOTTOM_BAR_PADDING; bspc config -m $(bspc query -M | head -n 1) top_padding $TOP_BAR_PADDING; bspc config -d focused window_gap $WINDOW_GAP - -super + alt + equal - bspc config -d focused bottom_padding 0; bspc config -d focused top_padding 0; bspc config -d focused left_padding 0; bspc config -d focused right_padding 0 - -super + alt + plus - bspc config -d focused bottom_padding $(expr $(bspc config -d focused bottom_padding) + 5); bspc config -d focused top_padding $(expr $(bspc config -d focused top_padding) + 5); bspc config -d focused left_padding $(expr $(bspc config -d focused left_padding) + 5); bspc config -d focused right_padding $(expr $(bspc config -d focused right_padding) + 5) - -super + ctrl + alt + k - bspc config -d focused bottom_padding $(expr $(bspc config -d focused bottom_padding) - 5); bspc config -d focused top_padding $(expr $(bspc config -d focused top_padding) - 5) - -super + ctrl + alt + j - bspc config -d focused bottom_padding $(expr $(bspc config -d focused bottom_padding) + 5); bspc config -d focused top_padding $(expr $(bspc config -d focused top_padding) + 5) - -super + ctrl + alt + h - bspc config -d focused left_padding $(expr $(bspc config -d focused left_padding) - 5); bspc config -d focused right_padding $(expr $(bspc config -d focused right_padding) - 5) - -super + ctrl + alt + l - bspc config -d focused left_padding $(expr $(bspc config -d focused left_padding) + 5); bspc config -d focused right_padding $(expr $(bspc config -d focused right_padding) + 5) - -super + alt + plus - bspc config -d focused bottom_padding $(expr $(bspc config -d focused bottom_padding) + 5); bspc config -d focused top_padding $(expr $(bspc config -d focused top_padding) + 5); bspc config -d focused left_padding $(expr $(bspc config -d focused left_padding) + 5); bspc config -d focused right_padding $(expr $(bspc config -d focused right_padding) + 5) - -super + ctrl + alt + space - bspc config -d focused bottom_padding 200; bspc config -d focused top_padding 200; bspc config -d focused left_padding 400; bspc config -d focused right_padding 400 - - - -super + alt + minus - bspc config -d focused bottom_padding $(expr $(bspc config -d focused bottom_padding) - 5) - -# wm-independant shortcuts - -# spawn a transparent node -super + alt + t - urxvtc && compton-trans -c -o 0 - -# rotate the current node -super + r - bspc node -R 90 - -# balance the current node -super + shift + b - bspc node -B - -# make current node transparent -super + t - compton-trans -c -o 0 - -# make current node fully opaque -super + shift + t - compton-trans -c -o 100 - -# swap sxhkx config with an alternate file and reload the new one -# super + shift + alt + ctrl + r -# if [ -e ~/.config/sxhkd/altsxhkdrc ]; then mv ~/.config/sxhkd/sxhkdrc ~/.config/sxhkd/origsxhkdrc && mv ~/.config/sxhkd/altsxhkdrc ~/.config/sxhkd/sxhkdrc && pkill -USR1 -x sxhkd; fi - -# spawn a terminal -super + Return - urxvtc - -super + shift + Return - urxvtc -geometry 80x24; \ - bspc node -t floating - -# spawn the app launcher -super + space - rofi -show run -font "$PRIMARY_FONT_FAMILY $PRIMARY_FONT_SIZE" -lines 16 -width 10 -padding 8 -fuzzy -bw "$BORDER_WIDTH" -color-enabled -color-window "#$(get_color 00)","#$(get_color 0D)","#$(get_color 0D)","#$(get_color 00)" -color-normal "#$(get_color 00)","#$(get_color 06)","#$(get_color 00)","#$(get_color 0D)","#$(get_color 00)" -separator-style none -hide-scrollbar - -# lock the desktop -super + ctrl + shift + l - dm-tool lock - # $SHELL -c '$DOTFILES_PATH/env/x/screensaver/lock.sh' - -# spawn gui file explorer -super + e - thunar - -# volumes controls and media navigation for media keys -{_,shift + }XF86AudioLowerVolume - amixer -D pulse sset Master 5%- - - # pulseaudio-ctl lower - # ADJ={10,1} && amixer -c 1 sset Speaker $ADJ%- && amixer -c 1 sset Headphone $ADJ%- && amixer -c 1 sset Master $ADJ%- && update_bar_MasterVolume - -{_,shift + }XF86AudioRaiseVolume - amixer -D pulse sset Master 5%+ - - # pulseaudio-ctl raise - # ADJ={10,1} && amixer -c 1 sset Speaker $ADJ%+ && amixer -c 1 sset Headphone $ADJ%+ && amixer -c 1 sset Master $ADJ%+ && update_bar_MasterVolume - -XF86AudioMute - amixer -D pulse sset Master toggle - - # pulseaudio-ctl mute - # amixer -c 1 sset Master toggle && update_bar_MasterVolume - -XF86AudioPlay - mpc toggle - -XF86AudioNext - mpc next - -XF86AudioPrev - mpc prev - -# monitor brightness controls for monitor birghtness keys -{_,shift + }XF86MonBrightnessUp - add_percent_brightness {0.1,0.01} && update_bar_DisplayBrightness - -{_,shift + }XF86MonBrightnessDown - sub_percent_brightness {0.1,0.01} && update_bar_DisplayBrightness - -# close the current application -super + c - bspc node -c - -# kill the current application -super + shift + c - bspc node -k - -# kill the wm -super + ctrl + {alt +,_} Escape - {bspc wm -d > "$BSPWM_STATE_FILE" && bspc quit, \ - bspc quit 1} - -# make sxhkd reload its configuration files: -super + Escape - pkill -USR1 -x sxhkd diff --git a/env/wm/wmstart b/env/wm/wmstart deleted file mode 100755 index 61b2c60..0000000 --- a/env/wm/wmstart +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -while true; do - bspwm || break -done diff --git a/env/x/compton.conf b/env/x/compton.conf deleted file mode 100644 index b0513f4..0000000 --- a/env/x/compton.conf +++ /dev/null @@ -1,53 +0,0 @@ -shadow = true; -no-dnd-shadow = true; -no-dock-shadow = false; -clearshadow = true; -shadow-radius = 7; -shadow-offset-x = -12; -shadow-offset-y = -7; -shadow-opacity = 1.0; -shadow-red = 0.0; -shadow-green = 0.0; -shadow-blue = 0.0; -shadow-exclude = [ "class_g = ''" ]; -shadow-ignore-shaped = true; -menu-opacity = 1.0; -inactive-opacity = 1.0; -active-opacity = 1.0; -frame-opacity = 1.0; -inactive-opacity-override = false; -alpha-step = 0.1; -inactive-dim = 0.1; -blur-kern = "3x3box"; -blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ]; -fading = true; -fade-in-step = 0.06; -fade-out-step = 0.06; -fade-exclude = [ ]; -backend = "xrender"; -mark-wmwin-focused = true; -mark-ovredir-focused = true; -detect-rounded-corners = true; -detect-client-opacity = true; -refresh-rate = 0; -vsync = "none"; -dbe = false; -paint-on-overlay = true; -focus-exclude = [ "class_g = 'Cairo-clock'" ]; -detect-transient = true; -detect-client-leader = true; -invert-color-include = [ ]; -glx-copy-from-front = false; -glx-swap-method = "undefined"; -wintypes : -{ - tooltip : - { - fade = true; - shadow = false; - opacity = 0.75; - focus = true; - }; -}; -blur-background = true; -blur-background-frame = true; diff --git a/env/x/gtk2rc b/env/x/gtk2rc deleted file mode 100644 index 54dd40d..0000000 --- a/env/x/gtk2rc +++ /dev/null @@ -1,3 +0,0 @@ -gtk-icon-theme-name = "elementary" -gtk-theme-name = "Arc-Dark" -gtk-font-name = "Monaco 9" diff --git a/env/x/gtk3settings.ini b/env/x/gtk3settings.ini deleted file mode 100644 index 79142c0..0000000 --- a/env/x/gtk3settings.ini +++ /dev/null @@ -1,4 +0,0 @@ -[Settings] -gtk-icon-theme-name = elementary -gtk-theme-name = Arc-Dark -gtk-font-name = Monaco 9 diff --git a/env/x/link.bash b/env/x/link.bash deleted file mode 100755 index 24bb55e..0000000 --- a/env/x/link.bash +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -MODULE_PATH="$DOTFILES_PATH/env/x" - -mkdir -p "$HOME/.config/gtk-3.0" -rm -f "$HOME/.xinitrc" -rm -f "$HOME/.Xresources" -rm -f "$HOME/.gtkrc-2.0" -rm -f "$HOME/.config/gtk-3.0/settings.ini" -rm -f "$HOME/.config/compton.conf" -rm -f "$HOME/.xprofile" -ln -s "$MODULE_PATH/xinitrc" "$HOME/.xinitrc" -ln -s "$MODULE_PATH/xresources" "$HOME/.Xresources" -ln -s "$MODULE_PATH/gtk3settings.ini" "$HOME/.config/gtk-3.0/settings.ini" -ln -s "$MODULE_PATH/gtk2rc" "$HOME/.gtkrc-2.0" -ln -s "$MODULE_PATH/compton.conf" "$HOME/.config/compton.conf" -ln -s "$MODULE_PATH/xprofile" "$HOME/.xprofile" - -sudo mkdir -p /root/.gtk-3.0/ -sudo mkdir -p /root/.config/gtk-3.0/ -sudo rm -f "/root/.gtkrc-2.0" -sudo rm -f "/root/.gtk-3.0/settings.ini" -sudo rm -f "/root/.config/gtk-3.0/settings.ini" -sudo ln -s "$MODULE_PATH/gtk2rc" "/root/.gtkrc-2.0" -sudo ln -s "$MODULE_PATH/gtk3settings.ini" "/root/.gtk-3.0/settings.ini" -sudo ln -s "$MODULE_PATH/gtk3settings.ini" "/root/.config/gtk-3.0/settings.ini" - -sudo rm -f "/etc/udev/rules.d/90-usb-device-plugin.rules" -sudo ln -s "$MODULE_PATH/udev_rules/90-usb-device-plugin.rules" "/etc/udev/rules.d/90-usb-device-plugin.rules" - -source "$MODULE_PATH/xloadresources" - diff --git a/env/x/reset_monitors.bash b/env/x/reset_monitors.bash deleted file mode 100755 index 95a5c35..0000000 --- a/env/x/reset_monitors.bash +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -xrandr --output HDMI1 --mode 1920x1080 --right-of eDP1 -"$HOME/.fehbg" - diff --git a/env/x/screensaver/lock.sh b/env/x/screensaver/lock.sh deleted file mode 100755 index a72de64..0000000 --- a/env/x/screensaver/lock.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env sh - -source "$DOTFILES_PATH/variables.bash" - -scrot "$IMG_PATH/.lock/.lock-bg-img.png" -convert "$IMG_PATH/.lock/.lock-bg-img.png" -blur 0x12 "$IMG_PATH/.lock/.lock-bg-img_blurred.png" -rm "$IMG_PATH/.lock/.lock-bg-img.png" -# xscreensaver-command --lock -i3lock -i "$IMG_PATH/.lock/.lock-bg-img_blurred.png" diff --git a/env/x/screensaver/setup.sh b/env/x/screensaver/setup.sh deleted file mode 100755 index 6fb8e9d..0000000 --- a/env/x/screensaver/setup.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env sh - -source "$DOTFILES_PATH/variables.bash" - -mkdir -p "$IMG_PATH/.lock" diff --git a/env/x/udev_rules/90-usb-device-plugin.rules b/env/x/udev_rules/90-usb-device-plugin.rules deleted file mode 100644 index c2873e0..0000000 --- a/env/x/udev_rules/90-usb-device-plugin.rules +++ /dev/null @@ -1 +0,0 @@ -ACTION=="add", SUBSYSTEM=="usb_device", RUN+="xset r rate 300 80" diff --git a/env/x/xinitrc b/env/x/xinitrc deleted file mode 100644 index 262678f..0000000 --- a/env/x/xinitrc +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -echo "xstartup: XINIT" >> "$HOME/.xstartup_log" - -if [ -f "$HOME/.xprofile" ]; then - source "$HOME/.xprofile" -fi - -if [ -f "$HOME/.xinitrc.env" ]; then - source "$HOME/.xinitrc.env" -fi - -# start the bar if we want it -if [ "$BAR_ON_XINIT" -eq 1 ]; then - "$BAR_PATH/start.bash" & -fi - -# fire up wm -unclutter & -compton & - -exec "$DOTFILES_PATH/env/wm/wmstart" - diff --git a/env/x/xloadresources b/env/x/xloadresources deleted file mode 100644 index 08d28ac..0000000 --- a/env/x/xloadresources +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -userresources="$HOME/.Xresources" -usercolors="$HOME/.Xresources.colors" -userenv="$HOME/.Xresources.env" -usermodmap="$HOME/.Xmodmap" -sysresources="/etc/X11/xinit/.Xresources" -sysmodmap="/etc/X11/xinit/.Xmodmap" - -echo "xstartup: resources $userresources $userenv" >> "$HOME/.xstartup_log" - -if [ -f "$sysresources" ]; then - xrdb -merge "$sysresources" >/dev/null 2>&1 -fi - -if [ -f "$sysmodmap" ]; then - xmodmap "$sysmodmap" >/dev/null 2>&1 -fi - -if [ -f "$userresources" ]; then - xrdb -merge "$userresources" >/dev/null 2>&1 -fi - -if [ -f "$usercolors" ]; then - xrdb -merge "$usercolors" >/dev/null 2>&1 -fi - -if [ -f "$userenv" ]; then - xrdb -merge "$userenv" >/dev/null 2>&1 -fi - -if [ -f "$usermodmap" ]; then - xmodmap "$usermodmap" >/dev/null 2>&1 -fi - -if [ -d "/etc/X11/xinit/xinitrc.d" ] ; then - for f in "/etc/X11/xinit/xinitrc.d/?*.sh" ; do - [ -x "$f" ] && . "$f" - done - unset f -fi - diff --git a/env/x/xprofile b/env/x/xprofile deleted file mode 100644 index c5081d5..0000000 --- a/env/x/xprofile +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -source "$HOME/.dotfiles/variables.bash" - -echo '' > "$HOME/.xstartup_log" -echo "xstartup: $DOTFILES_PATH" >> "$HOME/.xstartup_log" - -if [ -f "$HOME/.fehbg" ]; then - "$HOME/.fehbg" & -fi - -if [ -f "$DOTFILES_PATH/env/x/xloadresources" ]; then - source "$DOTFILES_PATH/env/x/xloadresources" -fi - -if [ -f "$DOTFILES_PATH/variables.bash" ]; then - source "$DOTFILES_PATH/variables.bash" -fi - -# keyrepeat settings -xset r rate 250 80 & - -# no screen blanking -# xset -dpms & -# xset s noblank & -# xset s off & - -if [ -d "/usr/lib/nvidia" ]; then - export LD_LIBRARY_PATH=/usr/lib/nvidia -fi - -if [ -f "$HOME/.xprofile.env" ]; then - source "$HOME/.xprofile.env" -fi - -unclutter & -compton & diff --git a/env/x/xresources b/env/x/xresources deleted file mode 100755 index 6705983..0000000 --- a/env/x/xresources +++ /dev/null @@ -1,42 +0,0 @@ -#define primaryfont xft:Terminus-9 -#define secondaryfont xft:Open Sans-9 -#define iconfont xft:stlarch-9 -#define primaryletterspace 0 - -#define emacspfont Monaco 9 - -! I like this font on my desktop (use in `~/.Xresources.env`!) -!#define primaryfont xft:lemon-11 -!#define primaryletterspace 0 - -! I like this font on my desktop for code streaming -!#define primaryfont xft:Monaco-9 -!#define primaryletterspace -2 - -! I like this font on my laptop -!#define primaryfont xft:Monaco-11 -!#define primaryletterspace -1 - -*font: xft:xos4 Terminus-10 -*faceName: xft:xos4 Terminus-10 -*boldFont: xft:xos4 Terminus-10 -*letterSpace: 0 -*scrollBar: false -*cursorUnderline: true -*cursorBlink: true -*termName: rxvt-unicode -*intensityStyles: true -*utf8: 2 -*scaleHeight: 1 - -*depth: 32 - -URxvt.internalBorder: 24 - -Xcursor.theme: human - -URxvt.perl-ext-common: default,matcher,keyboard-select -URxvt.keysym.M-Escape: perl:keyboard-select:activate -URxvt.url-launcher: /usr/bin/xdg-open -URxvt.matcher.button: 1 -URxvt*iso14755: False diff --git a/link_all.bash b/link_all.bash deleted file mode 100755 index 0f6fd33..0000000 --- a/link_all.bash +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/" && pwd) -source "$DIR/variables.bash" - -ALERT_AGREEMENT_FILE="$DIR/scripts/agree_to_bootstrap.lock" - -# Let user know that this script will delete their current configuration and -# that they should read this script before running. We'll use a lock file so -# the user only needs to agree once. -if [ -f "$ALERT_AGREEMENT_FILE" ]; then - # User agreed already - do nothing - echo "Linking..." -else - echo "Running this script may delete existing personal configuration files." - echo "Please view this script's source, fully understand it, and backup any files" - echo "before continuing." - read -r -p "Are you sure you want to continue? [y/N] " response - response=${response,,} # to_lower - if [[ $response =~ ^(yes|y)$ ]]; then - echo "agreed" > "$ALERT_AGREEMENT_FILE" - else - exit 1 - fi -fi - -source "$DOTFILES_PATH/colors/link.bash" -source "$DOTFILES_PATH/browser/qutebrowser/link.bash" -source "$DOTFILES_PATH/misc/irc/link.bash" -source "$DOTFILES_PATH/misc/git/link.bash" -source "$DOTFILES_PATH/editor/nvim/link.bash" -source "$DOTFILES_PATH/env/sh/link.bash" -source "$DOTFILES_PATH/env/x/link.bash" -source "$DOTFILES_PATH/env/wm/link.bash" -source "$DOTFILES_PATH/music/ncmpcpp/link.bash" -source "$DOTFILES_PATH/music/mpd/link.bash" -source "$DOTFILES_PATH/scripts/link.bash" diff --git a/misc/git/gitconfig b/misc/git/gitconfig deleted file mode 100644 index 2ea7d8f..0000000 --- a/misc/git/gitconfig +++ /dev/null @@ -1,9 +0,0 @@ -[push] - default = matching - -[user] - name = Daniel Flanagan - email = daniel@lytedev.io - -[core] - editor = nvim diff --git a/misc/git/link.bash b/misc/git/link.bash deleted file mode 100755 index faf3dc1..0000000 --- a/misc/git/link.bash +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -rm -f "$HOME/.gitconfig" -ln -s "$DOTFILES_PATH/misc/git/gitconfig" "$HOME/.gitconfig" - diff --git a/misc/irc/link.bash b/misc/irc/link.bash deleted file mode 100755 index 34872a1..0000000 --- a/misc/irc/link.bash +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -rm -rf "$HOME/.weechat/weechat.conf" -mkdir -p "$HOME/.weechat/" -ln -s "$DOTFILES_PATH/misc/irc/weechat.conf" "$HOME/.weechat/weechat.conf" - diff --git a/misc/irc/weechat.conf b/misc/irc/weechat.conf deleted file mode 100644 index 9dc165c..0000000 --- a/misc/irc/weechat.conf +++ /dev/null @@ -1,594 +0,0 @@ -# -# weechat -- weechat.conf -# - -[debug] - -[startup] -command_after_plugins = "" -command_before_plugins = "" -display_logo = on -display_version = on -sys_rlimit = "" - -[look] -align_end_of_lines = message -bar_more_down = "++" -bar_more_left = "<<" -bar_more_right = ">>" -bar_more_up = "--" -bare_display_exit_on_input = on -bare_display_time_format = "%H:%M" -buffer_auto_renumber = on -buffer_notify_default = all -buffer_position = end -buffer_search_case_sensitive = off -buffer_search_force_default = off -buffer_search_regex = off -buffer_search_where = prefix_message -buffer_time_format = "" -color_basic_force_bold = off -color_inactive_buffer = on -color_inactive_message = on -color_inactive_prefix = on -color_inactive_prefix_buffer = on -color_inactive_time = off -color_inactive_window = on -color_nick_offline = off -color_pairs_auto_reset = 5 -color_real_white = off -command_chars = "" -command_incomplete = off -confirm_quit = off -confirm_upgrade = off -day_change = on -day_change_message_1date = "-- %a, %d %b %Y --" -day_change_message_2dates = "-- %%a, %%d %%b %%Y (%a, %d %b %Y) --" -eat_newline_glitch = off -emphasized_attributes = "" -highlight = "" -highlight_regex = "" -highlight_tags = "" -hotlist_add_conditions = "${away} || ${buffer.num_displayed} == 0" -hotlist_buffer_separator = ", " -hotlist_count_max = 2 -hotlist_count_min_msg = 2 -hotlist_names_count = 3 -hotlist_names_length = 0 -hotlist_names_level = 12 -hotlist_names_merged_buffers = off -hotlist_prefix = "H: " -hotlist_remove = merged -hotlist_short_names = on -hotlist_sort = group_time_asc -hotlist_suffix = "" -hotlist_unique_numbers = on -input_cursor_scroll = 20 -input_share = none -input_share_overwrite = off -input_undo_max = 32 -item_away_message = on -item_buffer_filter = "*" -item_buffer_zoom = "!" -item_mouse_status = "M" -item_time_format = "%H:%M" -jump_current_to_previous_buffer = on -jump_previous_buffer_when_closing = on -jump_smart_back_to_buffer = on -key_bind_safe = on -key_grab_delay = 800 -mouse = off -mouse_timer_delay = 100 -nick_color_force = "" -nick_color_hash = djb2 -nick_color_stop_chars = "_|[" -nick_prefix = "" -nick_suffix = "" -paste_auto_add_newline = on -paste_bracketed = on -paste_bracketed_timer_delay = 10 -paste_max_lines = 1 -prefix_action = " *" -prefix_align = right -prefix_align_max = 0 -prefix_align_min = 0 -prefix_align_more = "+" -prefix_align_more_after = on -prefix_buffer_align = right -prefix_buffer_align_max = 0 -prefix_buffer_align_more = "+" -prefix_buffer_align_more_after = on -prefix_error = "=!=" -prefix_join = ">" -prefix_network = "--" -prefix_quit = "<" -prefix_same_nick = "" -prefix_suffix = "│" -quote_nick_prefix = "<" -quote_nick_suffix = ">" -quote_time_format = "%H:%M:%S" -read_marker = line -read_marker_always_show = off -read_marker_string = "─" -save_config_on_exit = on -save_layout_on_exit = none -scroll_amount = 3 -scroll_bottom_after_switch = off -scroll_page_percent = 100 -search_text_not_found_alert = on -separator_horizontal = "-" -separator_vertical = "" -tab_width = 1 -time_format = "%a, %d %b %Y %T" -window_auto_zoom = off -window_separator_horizontal = on -window_separator_vertical = on -window_title = "WeeChat ${info:version}" -word_chars_highlight = "!\u00A0,-,_,|,alnum" -word_chars_input = "!\u00A0,-,_,|,alnum" - -[palette] - -[color] -bar_more = lightmagenta -chat = default -chat_bg = default -chat_buffer = white -chat_channel = white -chat_day_change = cyan -chat_delimiters = green -chat_highlight = yellow -chat_highlight_bg = magenta -chat_host = cyan -chat_inactive_buffer = default -chat_inactive_window = default -chat_nick = lightcyan -chat_nick_colors = "cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue" -chat_nick_offline = default -chat_nick_offline_highlight = default -chat_nick_offline_highlight_bg = blue -chat_nick_other = cyan -chat_nick_prefix = green -chat_nick_self = white -chat_nick_suffix = green -chat_prefix_action = white -chat_prefix_buffer = brown -chat_prefix_buffer_inactive_buffer = default -chat_prefix_error = yellow -chat_prefix_join = lightgreen -chat_prefix_more = lightmagenta -chat_prefix_network = magenta -chat_prefix_quit = lightred -chat_prefix_suffix = green -chat_read_marker = magenta -chat_read_marker_bg = default -chat_server = brown -chat_tags = red -chat_text_found = yellow -chat_text_found_bg = lightmagenta -chat_time = default -chat_time_delimiters = brown -chat_value = cyan -chat_value_null = blue -emphasized = yellow -emphasized_bg = magenta -input_actions = lightgreen -input_text_not_found = red -item_away = yellow -nicklist_away = cyan -nicklist_group = green -separator = blue -status_count_highlight = magenta -status_count_msg = brown -status_count_other = default -status_count_private = green -status_data_highlight = lightmagenta -status_data_msg = yellow -status_data_other = default -status_data_private = lightgreen -status_filter = green -status_more = yellow -status_mouse = green -status_name = white -status_name_ssl = lightgreen -status_nicklist_count = default -status_number = yellow -status_time = default - -[completion] -base_word_until_cursor = on -command_inline = on -default_template = "%(nicks)|%(irc_channels)" -nick_add_space = on -nick_completer = ":" -nick_first_only = off -nick_ignore_chars = "[]`_-^" -partial_completion_alert = on -partial_completion_command = off -partial_completion_command_arg = off -partial_completion_count = on -partial_completion_other = off - -[history] -display_default = 5 -max_buffer_lines_minutes = 0 -max_buffer_lines_number = 4096 -max_commands = 100 -max_visited_buffers = 50 - -[proxy] - -[network] -connection_timeout = 60 -gnutls_ca_file = "/etc/ssl/certs/ca-certificates.crt" -gnutls_handshake_timeout = 30 -proxy_curl = "" - -[plugin] -autoload = "*" -debug = off -extension = ".so,.dll" -path = "%h/plugins" -save_config_on_unload = on - -[bar] -input.color_bg = default -input.color_delim = cyan -input.color_fg = default -input.conditions = "" -input.filling_left_right = vertical -input.filling_top_bottom = horizontal -input.hidden = off -input.items = "[input_prompt]+(away),[input_search],[input_paste],input_text" -input.position = bottom -input.priority = 1000 -input.separator = off -input.size = 1 -input.size_max = 0 -input.type = window -nicklist.color_bg = default -nicklist.color_delim = cyan -nicklist.color_fg = default -nicklist.conditions = "${nicklist}" -nicklist.filling_left_right = vertical -nicklist.filling_top_bottom = columns_vertical -nicklist.hidden = on -nicklist.items = "buffer_nicklist" -nicklist.position = right -nicklist.priority = 200 -nicklist.separator = on -nicklist.size = 0 -nicklist.size_max = 0 -nicklist.type = window -status.color_bg = 0 -status.color_delim = cyan -status.color_fg = default -status.conditions = "" -status.filling_left_right = vertical -status.filling_top_bottom = horizontal -status.hidden = off -status.items = "buffer_last_number,buffer_plugin,buffer_number+:+buffer_name+(buffer_modes)+{buffer_nicklist_count}+buffer_zoom+buffer_filter,scroll,[lag],[hotlist],completion" -status.position = bottom -status.priority = 500 -status.separator = off -status.size = 1 -status.size_max = 0 -status.type = window -title.color_bg = blue -title.color_delim = cyan -title.color_fg = default -title.conditions = "" -title.filling_left_right = vertical -title.filling_top_bottom = horizontal -title.hidden = on -title.items = "buffer_title" -title.position = top -title.priority = 500 -title.separator = off -title.size = 1 -title.size_max = 0 -title.type = window - -[layout] - -[notify] - -[filter] - -[key] -ctrl-? = "/input delete_previous_char" -ctrl-A = "/input move_beginning_of_line" -ctrl-B = "/input move_previous_char" -ctrl-C_ = "/input insert \x1F" -ctrl-Cb = "/input insert \x02" -ctrl-Cc = "/input insert \x03" -ctrl-Ci = "/input insert \x1D" -ctrl-Co = "/input insert \x0F" -ctrl-Cv = "/input insert \x16" -ctrl-D = "/input delete_next_char" -ctrl-E = "/input move_end_of_line" -ctrl-F = "/input move_next_char" -ctrl-H = "/input delete_previous_char" -ctrl-I = "/input complete_next" -ctrl-J = "/input return" -ctrl-K = "/input delete_end_of_line" -ctrl-L = "/window refresh" -ctrl-M = "/input return" -ctrl-N = "/buffer +1" -ctrl-P = "/buffer -1" -ctrl-R = "/input search_text" -ctrl-Sctrl-U = "/input set_unread" -ctrl-T = "/input transpose_chars" -ctrl-U = "/input delete_beginning_of_line" -ctrl-W = "/input delete_previous_word" -ctrl-X = "/input switch_active_buffer" -ctrl-Y = "/input clipboard_paste" -meta-meta2-1~ = "/window scroll_top" -meta-meta2-23~ = "/bar scroll nicklist * b" -meta-meta2-24~ = "/bar scroll nicklist * e" -meta-meta2-4~ = "/window scroll_bottom" -meta-meta2-5~ = "/window scroll_up" -meta-meta2-6~ = "/window scroll_down" -meta-meta2-7~ = "/window scroll_top" -meta-meta2-8~ = "/window scroll_bottom" -meta-meta2-A = "/buffer -1" -meta-meta2-B = "/buffer +1" -meta-meta2-C = "/buffer +1" -meta-meta2-D = "/buffer -1" -meta-- = "/filter toggle @" -meta-/ = "/input jump_last_buffer_displayed" -meta-0 = "/buffer *10" -meta-1 = "/buffer *1" -meta-2 = "/buffer *2" -meta-3 = "/buffer *3" -meta-4 = "/buffer *4" -meta-5 = "/buffer *5" -meta-6 = "/buffer *6" -meta-7 = "/buffer *7" -meta-8 = "/buffer *8" -meta-9 = "/buffer *9" -meta-< = "/input jump_previously_visited_buffer" -meta-= = "/filter toggle" -meta-> = "/input jump_next_visited_buffer" -meta-OA = "/input history_global_previous" -meta-OB = "/input history_global_next" -meta-OC = "/input move_next_word" -meta-OD = "/input move_previous_word" -meta-OF = "/input move_end_of_line" -meta-OH = "/input move_beginning_of_line" -meta-Oa = "/input history_global_previous" -meta-Ob = "/input history_global_next" -meta-Oc = "/input move_next_word" -meta-Od = "/input move_previous_word" -meta2-15~ = "/buffer -1" -meta2-17~ = "/buffer +1" -meta2-18~ = "/window -1" -meta2-19~ = "/window +1" -meta2-1;3A = "/buffer -1" -meta2-1;3B = "/buffer +1" -meta2-1;3C = "/buffer +1" -meta2-1;3D = "/buffer -1" -meta2-1;3F = "/window scroll_bottom" -meta2-1;3H = "/window scroll_top" -meta2-1;5A = "/input history_global_previous" -meta2-1;5B = "/input history_global_next" -meta2-1;5C = "/input move_next_word" -meta2-1;5D = "/input move_previous_word" -meta2-1~ = "/input move_beginning_of_line" -meta2-200~ = "/input paste_start" -meta2-201~ = "/input paste_stop" -meta2-20~ = "/bar scroll title * -30%" -meta2-21~ = "/bar scroll title * +30%" -meta2-23;3~ = "/bar scroll nicklist * b" -meta2-23~ = "/bar scroll nicklist * -100%" -meta2-24;3~ = "/bar scroll nicklist * e" -meta2-24~ = "/bar scroll nicklist * +100%" -meta2-3~ = "/input delete_next_char" -meta2-4~ = "/input move_end_of_line" -meta2-5;3~ = "/window scroll_up" -meta2-5~ = "/window page_up" -meta2-6;3~ = "/window scroll_down" -meta2-6~ = "/window page_down" -meta2-7~ = "/input move_beginning_of_line" -meta2-8~ = "/input move_end_of_line" -meta2-A = "/input history_previous" -meta2-B = "/input history_next" -meta2-C = "/input move_next_char" -meta2-D = "/input move_previous_char" -meta2-F = "/input move_end_of_line" -meta2-G = "/window page_down" -meta2-H = "/input move_beginning_of_line" -meta2-I = "/window page_up" -meta2-Z = "/input complete_previous" -meta2-[E = "/buffer -1" -meta-_ = "/input redo" -meta-a = "/input jump_smart" -meta-b = "/input move_previous_word" -meta-d = "/input delete_next_word" -meta-f = "/input move_next_word" -meta-h = "/input hotlist_clear" -meta-jmeta-f = "/buffer -" -meta-jmeta-l = "/buffer +" -meta-jmeta-r = "/server raw" -meta-jmeta-s = "/server jump" -meta-j01 = "/buffer 1" -meta-j02 = "/buffer 2" -meta-j03 = "/buffer 3" -meta-j04 = "/buffer 4" -meta-j05 = "/buffer 5" -meta-j06 = "/buffer 6" -meta-j07 = "/buffer 7" -meta-j08 = "/buffer 8" -meta-j09 = "/buffer 9" -meta-j10 = "/buffer 10" -meta-j11 = "/buffer 11" -meta-j12 = "/buffer 12" -meta-j13 = "/buffer 13" -meta-j14 = "/buffer 14" -meta-j15 = "/buffer 15" -meta-j16 = "/buffer 16" -meta-j17 = "/buffer 17" -meta-j18 = "/buffer 18" -meta-j19 = "/buffer 19" -meta-j20 = "/buffer 20" -meta-j21 = "/buffer 21" -meta-j22 = "/buffer 22" -meta-j23 = "/buffer 23" -meta-j24 = "/buffer 24" -meta-j25 = "/buffer 25" -meta-j26 = "/buffer 26" -meta-j27 = "/buffer 27" -meta-j28 = "/buffer 28" -meta-j29 = "/buffer 29" -meta-j30 = "/buffer 30" -meta-j31 = "/buffer 31" -meta-j32 = "/buffer 32" -meta-j33 = "/buffer 33" -meta-j34 = "/buffer 34" -meta-j35 = "/buffer 35" -meta-j36 = "/buffer 36" -meta-j37 = "/buffer 37" -meta-j38 = "/buffer 38" -meta-j39 = "/buffer 39" -meta-j40 = "/buffer 40" -meta-j41 = "/buffer 41" -meta-j42 = "/buffer 42" -meta-j43 = "/buffer 43" -meta-j44 = "/buffer 44" -meta-j45 = "/buffer 45" -meta-j46 = "/buffer 46" -meta-j47 = "/buffer 47" -meta-j48 = "/buffer 48" -meta-j49 = "/buffer 49" -meta-j50 = "/buffer 50" -meta-j51 = "/buffer 51" -meta-j52 = "/buffer 52" -meta-j53 = "/buffer 53" -meta-j54 = "/buffer 54" -meta-j55 = "/buffer 55" -meta-j56 = "/buffer 56" -meta-j57 = "/buffer 57" -meta-j58 = "/buffer 58" -meta-j59 = "/buffer 59" -meta-j60 = "/buffer 60" -meta-j61 = "/buffer 61" -meta-j62 = "/buffer 62" -meta-j63 = "/buffer 63" -meta-j64 = "/buffer 64" -meta-j65 = "/buffer 65" -meta-j66 = "/buffer 66" -meta-j67 = "/buffer 67" -meta-j68 = "/buffer 68" -meta-j69 = "/buffer 69" -meta-j70 = "/buffer 70" -meta-j71 = "/buffer 71" -meta-j72 = "/buffer 72" -meta-j73 = "/buffer 73" -meta-j74 = "/buffer 74" -meta-j75 = "/buffer 75" -meta-j76 = "/buffer 76" -meta-j77 = "/buffer 77" -meta-j78 = "/buffer 78" -meta-j79 = "/buffer 79" -meta-j80 = "/buffer 80" -meta-j81 = "/buffer 81" -meta-j82 = "/buffer 82" -meta-j83 = "/buffer 83" -meta-j84 = "/buffer 84" -meta-j85 = "/buffer 85" -meta-j86 = "/buffer 86" -meta-j87 = "/buffer 87" -meta-j88 = "/buffer 88" -meta-j89 = "/buffer 89" -meta-j90 = "/buffer 90" -meta-j91 = "/buffer 91" -meta-j92 = "/buffer 92" -meta-j93 = "/buffer 93" -meta-j94 = "/buffer 94" -meta-j95 = "/buffer 95" -meta-j96 = "/buffer 96" -meta-j97 = "/buffer 97" -meta-j98 = "/buffer 98" -meta-j99 = "/buffer 99" -meta-k = "/input grab_key_command" -meta-l = "/window bare" -meta-m = "/mute mouse toggle" -meta-n = "/window scroll_next_highlight" -meta-p = "/window scroll_previous_highlight" -meta-r = "/input delete_line" -meta-s = "/mute aspell toggle" -meta-u = "/window scroll_unread" -meta-wmeta-meta2-A = "/window up" -meta-wmeta-meta2-B = "/window down" -meta-wmeta-meta2-C = "/window right" -meta-wmeta-meta2-D = "/window left" -meta-wmeta2-1;3A = "/window up" -meta-wmeta2-1;3B = "/window down" -meta-wmeta2-1;3C = "/window right" -meta-wmeta2-1;3D = "/window left" -meta-wmeta-b = "/window balance" -meta-wmeta-s = "/window swap" -meta-x = "/input zoom_merged_buffer" -meta-z = "/window zoom" -ctrl-_ = "/input undo" - -[key_search] -ctrl-I = "/input search_switch_where" -ctrl-J = "/input search_stop" -ctrl-M = "/input search_stop" -ctrl-R = "/input search_switch_regex" -meta2-A = "/input search_previous" -meta2-B = "/input search_next" -meta-c = "/input search_switch_case" - -[key_cursor] -ctrl-J = "/cursor stop" -ctrl-M = "/cursor stop" -meta-meta2-A = "/cursor move area_up" -meta-meta2-B = "/cursor move area_down" -meta-meta2-C = "/cursor move area_right" -meta-meta2-D = "/cursor move area_left" -meta2-1;3A = "/cursor move area_up" -meta2-1;3B = "/cursor move area_down" -meta2-1;3C = "/cursor move area_right" -meta2-1;3D = "/cursor move area_left" -meta2-A = "/cursor move up" -meta2-B = "/cursor move down" -meta2-C = "/cursor move right" -meta2-D = "/cursor move left" -@item(buffer_nicklist):K = "/window ${_window_number};/kickban ${nick}" -@item(buffer_nicklist):b = "/window ${_window_number};/ban ${nick}" -@item(buffer_nicklist):k = "/window ${_window_number};/kick ${nick}" -@item(buffer_nicklist):q = "/window ${_window_number};/query ${nick};/cursor stop" -@item(buffer_nicklist):w = "/window ${_window_number};/whois ${nick}" -@chat:Q = "hsignal:chat_quote_time_prefix_message;/cursor stop" -@chat:m = "hsignal:chat_quote_message;/cursor stop" -@chat:q = "hsignal:chat_quote_prefix_message;/cursor stop" - -[key_mouse] -@bar(input):button2 = "/input grab_mouse_area" -@bar(nicklist):button1-gesture-down = "/bar scroll nicklist ${_window_number} +100%" -@bar(nicklist):button1-gesture-down-long = "/bar scroll nicklist ${_window_number} e" -@bar(nicklist):button1-gesture-up = "/bar scroll nicklist ${_window_number} -100%" -@bar(nicklist):button1-gesture-up-long = "/bar scroll nicklist ${_window_number} b" -@chat(script.scripts):button1 = "/window ${_window_number};/script go ${_chat_line_y}" -@chat(script.scripts):button2 = "/window ${_window_number};/script go ${_chat_line_y};/script installremove -q ${script_name_with_extension}" -@chat(script.scripts):wheeldown = "/script down 5" -@chat(script.scripts):wheelup = "/script up 5" -@item(buffer_nicklist):button1 = "/window ${_window_number};/query ${nick}" -@item(buffer_nicklist):button1-gesture-left = "/window ${_window_number};/kick ${nick}" -@item(buffer_nicklist):button1-gesture-left-long = "/window ${_window_number};/kickban ${nick}" -@item(buffer_nicklist):button2 = "/window ${_window_number};/whois ${nick}" -@item(buffer_nicklist):button2-gesture-left = "/window ${_window_number};/ban ${nick}" -@bar:wheeldown = "/bar scroll ${_bar_name} ${_window_number} +20%" -@bar:wheelup = "/bar scroll ${_bar_name} ${_window_number} -20%" -@chat:button1 = "/window ${_window_number}" -@chat:button1-gesture-left = "/window ${_window_number};/buffer -1" -@chat:button1-gesture-left-long = "/window ${_window_number};/buffer 1" -@chat:button1-gesture-right = "/window ${_window_number};/buffer +1" -@chat:button1-gesture-right-long = "/window ${_window_number};/input jump_last_buffer" -@chat:ctrl-wheeldown = "/window scroll_horiz -window ${_window_number} +10%" -@chat:ctrl-wheelup = "/window scroll_horiz -window ${_window_number} -10%" -@chat:wheeldown = "/window scroll_down -window ${_window_number}" -@chat:wheelup = "/window scroll_up -window ${_window_number}" -@*:button3 = "/cursor go ${_x},${_y}" diff --git a/music/mpd/link.bash b/music/mpd/link.bash deleted file mode 100755 index aa4ee89..0000000 --- a/music/mpd/link.bash +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -rm -rf "$HOME/.mpdconf" -ln -s "$DOTFILES_PATH/music/mpdconf" "$HOME/.mpdconf" - diff --git a/music/mpd/mpdconf b/music/mpd/mpdconf deleted file mode 100644 index 3f0187c..0000000 --- a/music/mpd/mpdconf +++ /dev/null @@ -1,413 +0,0 @@ -# An example configuration file for MPD. -# Read the user manual for documentation: http://www.musicpd.org/doc/user/ - - -# Files and directories ####################################################### -# -# This setting controls the top directory which MPD will search to discover the -# available audio files and add them to the daemon's online database. This -# setting defaults to the XDG directory, otherwise the music directory will be -# be disabled and audio files will only be accepted over ipc socket (using -# file:// protocol) or streaming files over an accepted protocol. -# -music_directory "~/../aud/music" -# -# This setting sets the MPD internal playlist directory. The purpose of this -# directory is storage for playlists created by MPD. The server will use -# playlist files not created by the server but only if they are in the MPD -# format. This setting defaults to playlist saving being disabled. -# -playlist_directory "~/.mpd/playlists" -# -# This setting sets the location of the MPD database. This file is used to -# load the database at server start up and store the database while the -# server is not up. This setting defaults to disabled which will allow -# MPD to accept files over ipc socket (using file:// protocol) or streaming -# files over an accepted protocol. -# -db_file "~/.mpd/database" -# -# These settings are the locations for the daemon log files for the daemon. -# These logs are great for troubleshooting, depending on your log_level -# settings. -# -# The special value "syslog" makes MPD use the local syslog daemon. This -# setting defaults to logging to syslog, otherwise logging is disabled. -# -log_file "~/.mpd/log" -# -# This setting sets the location of the file which stores the process ID -# for use of mpd --kill and some init scripts. This setting is disabled by -# default and the pid file will not be stored. -# -pid_file "~/.mpd/pid" -# -# This setting sets the location of the file which contains information about -# most variables to get MPD back into the same general shape it was in before -# it was brought down. This setting is disabled by default and the server -# state will be reset on server start up. -# -state_file "~/.mpd/state" -# -# The location of the sticker database. This is a database which -# manages dynamic information attached to songs. -# -sticker_file "~/.mpd/sticker.sql" -# -############################################################################### - - -# General music daemon options ################################################ -# -# This setting specifies the user that MPD will run as. MPD should never run as -# root and you may use this setting to make MPD change its user ID after -# initialization. This setting is disabled by default and MPD is run as the -# current user. -# -#user "nobody" -# -# This setting specifies the group that MPD will run as. If not specified -# primary group of user specified with "user" setting will be used (if set). -# This is useful if MPD needs to be a member of group such as "audio" to -# have permission to use sound card. -# -#group "nogroup" -# -# This setting sets the address for the daemon to listen on. Careful attention -# should be paid if this is assigned to anything other then the default, any. -# This setting can deny access to control of the daemon. -# -# For network -bind_to_address "any" -# -# And for Unix Socket -#bind_to_address "~/.mpd/socket" -# -# This setting is the TCP port that is desired for the daemon to get assigned -# to. -# -port "6600" -# -# This setting controls the type of information which is logged. Available -# setting arguments are "default", "secure" or "verbose". The "verbose" setting -# argument is recommended for troubleshooting, though can quickly stretch -# available resources on limited hardware storage. -# -#log_level "default" -# -# If you have a problem with your MP3s ending abruptly it is recommended that -# you set this argument to "no" to attempt to fix the problem. If this solves -# the problem, it is highly recommended to fix the MP3 files with vbrfix -# (available from ), at which -# point gapless MP3 playback can be enabled. -# -#gapless_mp3_playback "yes" -# -# Setting "restore_paused" to "yes" puts MPD into pause mode instead -# of starting playback after startup. -# -#restore_paused "no" -# -# This setting enables MPD to create playlists in a format usable by other -# music players. -# -#save_absolute_paths_in_playlists "no" -# -# This setting defines a list of tag types that will be extracted during the -# audio file discovery process. The complete list of possible values can be -# found in the user manual. -#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" -# -# This setting enables automatic update of MPD's database when files in -# music_directory are changed. -# -#auto_update "yes" -# -# Limit the depth of the directories being watched, 0 means only watch -# the music directory itself. There is no limit by default. -# -#auto_update_depth "3" -# -############################################################################### - - -# Symbolic link behavior ###################################################### -# -# If this setting is set to "yes", MPD will discover audio files by following -# symbolic links outside of the configured music_directory. -# -#follow_outside_symlinks "yes" -# -# If this setting is set to "yes", MPD will discover audio files by following -# symbolic links inside of the configured music_directory. -# -#follow_inside_symlinks "yes" -# -############################################################################### - - -# Zeroconf / Avahi Service Discovery ########################################## -# -# If this setting is set to "yes", service information will be published with -# Zeroconf / Avahi. -# -#zeroconf_enabled "yes" -# -# The argument to this setting will be the Zeroconf / Avahi unique name for -# this MPD server on the network. -# -#zeroconf_name "Music Player" -# -############################################################################### - - -# Permissions ################################################################# -# -# If this setting is set, MPD will require password authorization. The password -# can setting can be specified multiple times for different password profiles. -# -#password "password@read,add,control,admin" -# -# This setting specifies the permissions a user has who has not yet logged in. -# -#default_permissions "read,add,control,admin" -# -############################################################################### - - -# Database ####################################################################### -# - -#database { -# plugin "proxy" -# host "other.mpd.host" -# port "6600" -#} - -# Input ####################################################################### -# - -input { - plugin "curl" -# proxy "proxy.isp.com:8080" -# proxy_user "user" -# proxy_password "password" -} - -# -############################################################################### - -# Audio Output ################################################################ -# -# MPD supports various audio output types, as well as playing through multiple -# audio outputs at the same time, through multiple audio_output settings -# blocks. Setting this block is optional, though the server will only attempt -# autodetection for one sound card. -# -# An example of an ALSA output: -# -#audio_output { -# type "alsa" -# name "My ALSA Device" -## device "hw:0,0" # optional -## mixer_type "hardware" # optional -## mixer_device "default" # optional -## mixer_control "PCM" # optional -## mixer_index "0" # optional -#} -# -# An example of an OSS output: -# -#audio_output { -# type "oss" -# name "My OSS Device" -## device "/dev/dsp" # optional -## mixer_type "hardware" # optional -## mixer_device "/dev/mixer" # optional -## mixer_control "PCM" # optional -#} -# -# An example of a shout output (for streaming to Icecast): -# -#audio_output { -# type "shout" -# encoder "vorbis" # optional -# name "My Shout Stream" -# host "localhost" -# port "8000" -# mount "/mpd.ogg" -# password "hackme" -# quality "5.0" -# bitrate "128" -# format "44100:16:1" -## protocol "icecast2" # optional -## user "source" # optional -## description "My Stream Description" # optional -## url "http://example.com" # optional -## genre "jazz" # optional -## public "no" # optional -## timeout "2" # optional -## mixer_type "software" # optional -#} -# -# An example of a recorder output: -# -#audio_output { -# type "recorder" -# name "My recorder" -# encoder "vorbis" # optional, vorbis or lame -# path "/var/lib/mpd/recorder/mpd.ogg" -## quality "5.0" # do not define if bitrate is defined -# bitrate "128" # do not define if quality is defined -# format "44100:16:1" -#} -# -# An example of a httpd output (built-in HTTP streaming server): -# -#audio_output { -# type "httpd" -# name "My HTTP Stream" -# encoder "vorbis" # optional, vorbis or lame -# port "8000" -# bind_to_address "0.0.0.0" # optional, IPv4 or IPv6 -## quality "5.0" # do not define if bitrate is defined -# bitrate "128" # do not define if quality is defined -# format "44100:16:1" -# max_clients "0" # optional 0=no limit -#} -# -# An example of a pulseaudio output (streaming to a remote pulseaudio server) -# - -audio_output { - type "pulse" - name "MPD via Pulseaudio" -} - -# -# An example of a winmm output (Windows multimedia API). -# -#audio_output { -# type "winmm" -# name "My WinMM output" -## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional -# or -## device "0" # optional -## mixer_type "hardware" # optional -#} -# -# An example of an openal output. -# -#audio_output { -# type "openal" -# name "My OpenAL output" -## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional -#} -# -## Example "pipe" output: -# -#audio_output { -# type "pipe" -# name "my pipe" -# command "aplay -f cd 2>/dev/null" -## Or if you're want to use AudioCompress -# command "AudioCompress -m | aplay -f cd 2>/dev/null" -## Or to send raw PCM stream through PCM: -# command "nc example.org 8765" -# format "44100:16:2" -#} -# -## An example of a null output (for no audio output): -# -#audio_output { -# type "null" -# name "My Null Output" -# mixer_type "none" # optional -#} -# -# If MPD has been compiled with libsamplerate support, this setting specifies -# the sample rate converter to use. Possible values can be found in the -# mpd.conf man page or the libsamplerate documentation. By default, this is -# setting is disabled. -# -#samplerate_converter "Fastest Sinc Interpolator" -# -############################################################################### - - -# Normalization automatic volume adjustments ################################## -# -# This setting specifies the type of ReplayGain to use. This setting can have -# the argument "off", "album", "track" or "auto". "auto" is a special mode that -# chooses between "track" and "album" depending on the current state of -# random playback. If random playback is enabled then "track" mode is used. -# See for more details about ReplayGain. -# This setting is off by default. -# -#replaygain "album" -# -# This setting sets the pre-amp used for files that have ReplayGain tags. By -# default this setting is disabled. -# -#replaygain_preamp "0" -# -# This setting sets the pre-amp used for files that do NOT have ReplayGain tags. -# By default this setting is disabled. -# -#replaygain_missing_preamp "0" -# -# This setting enables or disables ReplayGain limiting. -# MPD calculates actual amplification based on the ReplayGain tags -# and replaygain_preamp / replaygain_missing_preamp setting. -# If replaygain_limit is enabled MPD will never amplify audio signal -# above its original level. If replaygain_limit is disabled such amplification -# might occur. By default this setting is enabled. -# -#replaygain_limit "yes" -# -# This setting enables on-the-fly normalization volume adjustment. This will -# result in the volume of all playing audio to be adjusted so the output has -# equal "loudness". This setting is disabled by default. -# -#volume_normalization "no" -# -############################################################################### - -# Character Encoding ########################################################## -# -# If file or directory names do not display correctly for your locale then you -# may need to modify this setting. -# -#filesystem_charset "UTF-8" -# -# This setting controls the encoding that ID3v1 tags should be converted from. -# -#id3v1_encoding "ISO-8859-1" -# -############################################################################### - - -# SIDPlay decoder ############################################################# -# -# songlength_database: -# Location of your songlengths file, as distributed with the HVSC. -# The sidplay plugin checks this for matching MD5 fingerprints. -# See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq -# -# default_songlength: -# This is the default playing time in seconds for songs not in the -# songlength database, or in case you're not using a database. -# A value of 0 means play indefinitely. -# -# filter: -# Turns the SID filter emulation on or off. -# -#decoder { -# plugin "sidplay" -# songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt" -# default_songlength "120" -# filter "true" -#} -# -############################################################################### - diff --git a/music/ncmpcpp/.ncmpcpp b/music/ncmpcpp/.ncmpcpp deleted file mode 120000 index feb3059..0000000 --- a/music/ncmpcpp/.ncmpcpp +++ /dev/null @@ -1 +0,0 @@ -/home/daniel/usr/.ncmpcpp/ \ No newline at end of file diff --git a/music/ncmpcpp/bindings b/music/ncmpcpp/bindings deleted file mode 100644 index aecb316..0000000 --- a/music/ncmpcpp/bindings +++ /dev/null @@ -1,41 +0,0 @@ -# the t key isn't used and it's easier to press than /, so lets use it -def_key "t" - find -def_key "t" - find_item_forward - -def_key "+" - show_clock -def_key "=" - volume_up - -def_key "j" - scroll_down -def_key "k" - scroll_up - -def_key "ctrl-u" - page_up -#push_characters "kkkkkkkkkkkkkkk" -def_key "ctrl-d" - page_down -#push_characters "jjjjjjjjjjjjjjj" - -def_key "h" - previous_column -def_key "l" - next_column - -def_key "." - show_lyrics - -def_key "n" - next_found_item -def_key "N" - previous_found_item - -# not used but bound -def_key "J" - move_sort_order_down -def_key "K" - move_sort_order_up diff --git a/music/ncmpcpp/link.bash b/music/ncmpcpp/link.bash deleted file mode 100755 index d7dbba8..0000000 --- a/music/ncmpcpp/link.bash +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -rm -rf "$HOME/.ncmpcpp" -ln -s "$DOTFILES_PATH/music/ncmpcpp" "$HOME/.ncmpcpp" - diff --git a/os/arch_linux/0-adduser.bash b/os/arch_linux/0-adduser.bash deleted file mode 100755 index 9fc8efa..0000000 --- a/os/arch_linux/0-adduser.bash +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -groupadd admin 2>/dev/null -mkdir -p /home/daniel -useradd -m -d /home/daniel/usr -G admin,users -s /usr/bin/bash daniel -chown -R daniel:daniel /home/daniel -echo "Setting password for user 'daniel'" -passwd daniel diff --git a/os/arch_linux/1-git.bash b/os/arch_linux/1-git.bash deleted file mode 100755 index 042bca7..0000000 --- a/os/arch_linux/1-git.bash +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -sudo pacman -S git --noconfirm - diff --git a/os/arch_linux/2-pacaur.bash b/os/arch_linux/2-pacaur.bash deleted file mode 100755 index b538338..0000000 --- a/os/arch_linux/2-pacaur.bash +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -sudo pacman -S curl openssl perl expac yajl --noconfirm - -# receive cower's gpg key -gpg --recv-keys 1EB2638FF56C0C53 - -mkdir -p "$REPOSITORY_PATH" - -git clone https://aur.archlinux.org/cower.git "$REPOSITORY_PATH/cower" -git clone https://aur.archlinux.org/pacaur.git "$REPOSITORY_PATH/pacaur" - -cd "$REPOSITORY_PATH/cower" -makepkg -i --noconfirm -cd - - -cd "$REPOSITORY_PATH/pacaur" -makepkg -i --noconfirm -cd - - -pacaur -S cower pacaur --noconfirm --noedit - diff --git a/os/arch_linux/3-utils.bash b/os/arch_linux/3-utils.bash deleted file mode 100755 index 429f523..0000000 --- a/os/arch_linux/3-utils.bash +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source $DIR/variables.bash - -sudo pacman -S \ - tree \ - rofi \ - slock \ - the_silver_searcher \ - thunar thunar-volman gvfs \ - audacity \ - luakit \ - gimp \ - alsa-utils \ - wpa_actiond \ - ifplugd \ - htop \ - openssh \ - openssl \ - --noconfirm - -pacaur -S \ - gtk-theme-arc \ - weechat \ - ruby \ - tcl \ - mtpfs \ - libmtp \ - gvfs-mtp \ - pass \ - qutebrowser \ - bash-completion \ - avr-libc avr-gcc dfu-programmer dfu-util \ - reptyr \ - fzf \ - urxvt-perls-git \ - mutt procmail msmtp \ - ncmpcpp mpd \ - rsync \ - samba \ - thunar-shares-plugin \ - gvfs-smb \ - elementary-icon-theme \ - nmap \ - pulseaudio-ctl \ - pavucontrol \ - alsa-plugins \ - nvidia-beta \ - lib32-nvidia-beta \ - qt5-webengine \ - ruby \ - xorg-xbacklight \ - i3lock-blur \ - --noconfirm --noedit - -# sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome - diff --git a/os/arch_linux/bar.bash b/os/arch_linux/bar.bash deleted file mode 100755 index 41823bb..0000000 --- a/os/arch_linux/bar.bash +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -pacaur -S lemonbar-xft-git --noconfirm --noedit - diff --git a/os/arch_linux/email.bash b/os/arch_linux/email.bash deleted file mode 100755 index 621c5b6..0000000 --- a/os/arch_linux/email.bash +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source $DIR/variables.bash - -pacaur -S \ - mutt-patched smtp-forwarder \ - --noconfirm --noedit - -mkdir -p "$DOTFILES_PATH/email/mutt/config/wraithx2/bodies" -mkdir -p "$DOTFILES_PATH/email/mutt/config/wraithx2/headers" -touch "$DOTFILES_PATH/email/mutt/config/certificates" diff --git a/os/arch_linux/fonts.bash b/os/arch_linux/fonts.bash deleted file mode 100755 index d6d6767..0000000 --- a/os/arch_linux/fonts.bash +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source $DIR/variables.bash - -# sign keys for infinality -# sudo pacman-key -r 962DDE58 -# sudo pacman-key -f 962DDE58 -# sudo pacman-key --lsign 962DDE58 -# gpg --recv-keys AE6866C7962DDE58 - -# sudo sh -c 'sed -i -e "/\[infinality-bundle\]/,+6d" /etc/pacman.conf' -# sudo sh -c 'echo -e "[infinality-bundle]\nServer = http://bohoomil.com/repo/\$arch\n\n[infinality-bundle-fonts]\nServer = http://bohoomil.com/repo/fonts\n" >> /etc/pacman.conf' - -# sudo pacman -Syy --noconfirm - -sudo pacman -S terminus-font - -pacaur -S ttf-monaco gohufont artwiz-fonts phallus-fonts-git --noconfirm --noedit -sudo pacman -S ttf-opensans ttf-dejavu --noconfirm - diff --git a/os/arch_linux/gmusic.bash b/os/arch_linux/gmusic.bash deleted file mode 100755 index b2d58df..0000000 --- a/os/arch_linux/gmusic.bash +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source $DIR/variables.bash - -sudo pacman -S mplayer --noconfirm - -git clone https://github.com/malcolmstill/thunner.git "$REPOSITORY_PATH/thunner" - -sudo pip2 install gmusicapi - -sudo ln -s "$REPOSITORY_PATH/thunner/thunner" /usr/bin/thunner - diff --git a/os/arch_linux/music.bash b/os/arch_linux/music.bash deleted file mode 100755 index 41278bd..0000000 --- a/os/arch_linux/music.bash +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source $DIR/variables.bash - -pacaur -S \ - mopidy mopidy-spotify mopidy-gmusic \ - ncmpcpp mpd mpc \ - --noconfirm --noedit diff --git a/os/arch_linux/neovim.bash b/os/arch_linux/neovim.bash deleted file mode 100755 index 4f92989..0000000 --- a/os/arch_linux/neovim.bash +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -sudo pacman -S cmake vim unzip python2 python2-pip python python-pip xsel xclip --noconfirm - -sudo pip3 install neovim -sudo pip2 install neovim - -git clone https://github.com/neovim/neovim "$REPOSITORY_PATH/neovim" - -cd "$REPOSITORY_PATH/neovim" -make -sudo make install -cd - - diff --git a/os/arch_linux/shell.bash b/os/arch_linux/shell.bash deleted file mode 100755 index 9a67162..0000000 --- a/os/arch_linux/shell.bash +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -sudo pacman -S tmux --noconfirm - -mkdir -p "$HOME/.tmux/plugins/" -rm -rf "$HOME/.tmux/plugins/tpm" - -git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm - -tmux source "$DOTFILES_PATH/sh/tmux.conf" - diff --git a/os/arch_linux/todo.bash b/os/arch_linux/todo.bash deleted file mode 100755 index 6da557c..0000000 --- a/os/arch_linux/todo.bash +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source $DIR/variables.bash - -pacaur -S \ - todotxt-git \ - --noconfirm --noedit - -if [ ! -f "$HOME/.todo/config" ]; then - mkdir -p "$HOME/.todo" - cp /usr/share/todotxt/todo.cfg "$HOME/.todo/config" - vim "$HOME/.todo/config" -fi - -mkdir -p "$HOME/.todo.actions.d" - -curl -L http://github.com/fnd/todo.txt-cli/raw/extensions/commit > "$HOME/.todo.actions.d/commit" -curl -L https://raw.github.com/crobinsonut/todo_distributed/master/push > "$HOME/.todo.actions.d/push" -curl -L https://raw.github.com/crobinsonut/todo_distributed/master/pull > "$HOME/.todo.actions.d/pull" -curl -L https://raw.github.com/crobinsonut/todo_distributed/master/sync > "$HOME/.todo.actions.d/sync" -curl -L http://github.com/mbrubeck/todo.txt-cli/raw/master/todo.actions.d/edit > "$HOME/.todo.actions.d/edit" - -chmod +x "$HOME/.todo.actions.d/commit" -chmod +x "$HOME/.todo.actions.d/pull" -chmod +x "$HOME/.todo.actions.d/push" -chmod +x "$HOME/.todo.actions.d/sync" -chmod +x "$HOME/.todo.actions.d/edit" diff --git a/os/arch_linux/urxvt.bash b/os/arch_linux/urxvt.bash deleted file mode 100755 index ac6b49b..0000000 --- a/os/arch_linux/urxvt.bash +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -sudo pacman -S rxvt-unicode --noconfirm - diff --git a/os/arch_linux/wm.bash b/os/arch_linux/wm.bash deleted file mode 100755 index 1c3cb5c..0000000 --- a/os/arch_linux/wm.bash +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd) -source "$DIR/variables.bash" - -sudo pacman -S xcb-util xcb-util-keysyms xcb-util-wm xorg-xrandr xdotool feh --noconfirm -pacaur -S bspwm-git sxhkd-git xdo-git --noconfirm --noedit - diff --git a/os/arch_linux/xorg.bash b/os/arch_linux/xorg.bash deleted file mode 100755 index 64b1681..0000000 --- a/os/arch_linux/xorg.bash +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -sudo pacman -S xorg-xinit xorg-server xorg-xrdb --noconfirm -pacaur -S unclutter-xfixes-git gtk-theme-arc gtk-engine-murrine xorg-server-devel --noconfirm --noedit - diff --git a/readme.md b/readme.md deleted file mode 100644 index 49f307a..0000000 --- a/readme.md +++ /dev/null @@ -1,72 +0,0 @@ -# My Dotfiles - -This repository contains the majority of application or OS configuration files -I use on a daily basis. I keep the here and public in an effort to inform others -who may not know either how to go about organizing such files or to learn how to -achieve certain behavior in their software and to have quick and easy access for -myself when setting up a new machine. - -## Priorities - -I have specific needs and desires (as does any developer) and I will lay those -out in order of priority here: - -* These files are primarily configured for Linux, (specifically, Arch Linux) but - I try to keep the OS-specific stuff in the `os-specific` directory. -* I am also primarily a Web Developer, so my configuration will reflect that. -* I rely heavily on Google's products and services. I know some are eager to - avoid that. -* I also prefer apps in my terminal. If I could, I would do everything that - makes sense to do so in a terminal using only my keyboard. **So if you know - about really cool and usable terminal-based software, let me know!** -* I prefer keeping my dotfiles as portable as possible (within reason). -* These dotfiles should be very quick to setup and get going. -* I aim to keep the dotfiles flexible and extendible, as I usually use them on - multiple machines with specific use-cases. For example, a shared laptop should - allow for other non-technical users ease-of-access, while my workstation - should focus on being quick, powerful, and highly usable for me alone. - -## Applications - -There are several types of applications I use every day, some more than others, -and sometimes different applications that have the same purpose. Here are the -applications I use (the primary one is *italicized*, the one I would like to -become my primary or am very interested in using in more depth is in **bold**) -for various tasks: - -* **Terminal Emulators**: *rxvt-unicode* -* **Text Editors**: **vim/Neovim**, Sublime Text, Kakoune -* **Terminal Multiplexers**: *tmux* -* **Web Browser**: *Google Chrome*, **qutebrowser**, luakit -* **Music**: *Google Play Music* -* **Email**: *Google Inbox*, Gmail, **mutt** -* **Image Editing**: *GIMP*, *Inkscape*, **Krita** -* **Documents**: *Google Drive*, though Dropbox's Paper looks neat and I've - heard too many good things about LaTeX. -* **Gaming**: *Steam*, *various emulators* - -## Workflow - -Here are some bullet points on my workflow as a Web Developer: - -* **Text Editing**: I use `vim`/`Neovim` in my terminal as my primary text - editor. I usually run it in a `tmux` session alongside a few terminals to have - a very flexible IDE-like development environment. More on that in other bullet - points. -* **Version Control**: I use `git` in the terminal (sometimes I pop into - GitKraken if I need to do anything crazy) and commit often. I work in a branch - named "dev" until it's time to go live, then I merge into master. Other - branches beyond "dev" are used for trying crazy things or during large - refactors so I can very quickly jump back if needed. -* **Compiler/Debugging**: I rely heavily on auto-reloading and - watch-and-test-and-compile features during development to iterate quickly. - Tools such as `webpack` and `webpack-dev-server` are amazing. If you try to do - anything to weird or crazy, though, configuring webpack properly can be - hazardous to the mind. Or I'm just doing things very wrong. Chrome's dev tools - are also killer in this department. -* **Testing**: I don't do much testing. This is bad and I'm working on it! - -## To Do and Improvements - -* Add more content to the other sections? -* Start refactoring old dotfiles and scripts. diff --git a/scripts/get_color.sh b/scripts/get_color.sh deleted file mode 100644 index 4d9ef70..0000000 --- a/scripts/get_color.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env sh - -get_color() -{ - XR_COLOR_DEF=$(grep "#define base$1 #" ~/.Xresources.colors) - echo ${XR_COLOR_DEF:16} -} -export -f get_color - diff --git a/scripts/get_x_fonts.sh b/scripts/get_x_fonts.sh deleted file mode 100644 index daabe42..0000000 --- a/scripts/get_x_fonts.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env sh - -XRES_FILE="$HOME/.Xresources" -if [ -a "$HOME/.Xresources.env" ]; then - XRES_FILE="$HOME/.Xresources.env" -fi - -PRIMARY_FONT_XRESOURCES=$(grep "^\*font: xft:" "$XRES_FILE" | grep -v "/\*" | head -n 1) -export PRIMARY_FONT_FAMILY_WITH_SIZE=${PRIMARY_FONT_XRESOURCES:11} -export PRIMARY_FONT_FAMILY=$(echo $PRIMARY_FONT_FAMILY_WITH_SIZE | sed 's/\-.*//') -export PRIMARY_FONT_SIZE=$(echo $PRIMARY_FONT_FAMILY_WITH_SIZE | sed 's/.*\-//') - -SECONDARY_FONT_XRESOURCES=$(grep "^#define secondaryfont xft:" "$XRES_FILE" | grep -v "/\*" | head -n 1) -export SECONDARY_FONT_FAMILY_WITH_SIZE=${SECONDARY_FONT_XRESOURCES:26} -export SECONDARY_FONT_FAMILY=$(echo $SECONDARY_FONT_FAMILY_WITH_SIZE | sed 's/\-.*//') -export SECONDARY_FONT_SIZE=$(echo $SECONDARY_FONT_FAMILY_WITH_SIZE | sed 's/.*\-//') - -ICON_FONT_XRESOURCES=$(grep "^#define iconfont xft:" "$XRES_FILE" | grep -v "/\*" | head -n 1) -export ICON_FONT_FAMILY_WITH_SIZE=${ICON_FONT_XRESOURCES:21} -export ICON_FONT_FAMILY=$(echo $ICON_FONT_FAMILY_WITH_SIZE | sed 's/\-.*//') -export ICON_FONT_SIZE=$(echo $ICON_FONT_FAMILY_WITH_SIZE | sed 's/.*\-//') - diff --git a/scripts/link.bash b/scripts/link.bash deleted file mode 100755 index 5f821e2..0000000 --- a/scripts/link.bash +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/.." && pwd) -source "$DIR/variables.bash" - -sudo rm -f "/usr/local/bin/melee" -sudo ln -s "$DOTFILES_PATH/scripts/melee.bash" "/usr/local/bin/melee" - diff --git a/scripts/load_secrets.sh b/scripts/load_secrets.sh deleted file mode 100755 index f1f641a..0000000 --- a/scripts/load_secrets.sh +++ /dev/null @@ -1 +0,0 @@ -#!/usr/bin/env bash diff --git a/scripts/melee.bash b/scripts/melee.bash deleted file mode 100755 index f8cdc38..0000000 --- a/scripts/melee.bash +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -sudo modprobe uinput -sudo killall wii-u-gc-adapter -sudo "$HOME/../code/wii-u-gc-adapter/wii-u-gc-adapter" --raw & -dolphin-emu -b -c=False -e "$HOME/../game/emulation/GC/20XX 4.05.iso" diff --git a/scripts/monitors.sh b/scripts/monitors.sh deleted file mode 100755 index cd14ac7..0000000 --- a/scripts/monitors.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh - -export LAST_BSPWM_MONITOR=$(bspc query -M | tail -n 1) -export FIRST_BSPWM_MONITOR=$(bspc query -M | head -n 1) diff --git a/scripts/reload_xresources.sh b/scripts/reload_xresources.sh deleted file mode 100755 index 3a85b50..0000000 --- a/scripts/reload_xresources.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -source "$DOTFILES_PATH/variables.bash" -source "$DOTFILES_PATH/scripts/get_color.sh" -source "$DOTFILES_PATH/scripts/get_x_fonts.sh" - -# cat ../colors/xresources | \ -# sed -n 's/.*base\([0-9A-F]*\)\s\(.*\)$/\1 \2/p' | \ -# (while read line; do printf '\033]4;%s;%s' $line; done;) - -printf '\33]50;%s\007' "xft:$PRIMARY_FONT_FAMILY_WITH_SIZE" -printf '\33]11;%s\007' "#$(get_color 00)" -printf '\33]10;%s\007' "#$(get_color 05)" - -XRES_FILE="$HOME/.Xresources.colors" - -read -d '' map << EOF -$(cat "$XRES_FILE" | \ - sed -n 's/.*\(base[0-9A-F]*\)\s*\(#.*\)$/\1 \2/p') -EOF - -read -d '' values << EOF -$(cat "$XRES_FILE" | \ - sed -n 's/.*color\([0-9]*\):\s*\(base.*\)$/\1 \2/p') -EOF - -declare -A maparr -while read -r line; do - read -a a <<< $line - maparr[${a[0]}]=${a[1]} -done <<< "$map" - -declare -A previous_colors -while read -r line; do - read -a a <<< $line - col=${maparr[${a[1]}]} - if [ ${a[0]} -gt "8" ]; then - col=${maparr[${previous_colors["color$(expr ${a[0]} - 8)"]}]} - fi - printf '\33]4;%s;%s\007' ${a[0]} $col - previous_colors["color${a[0]}"]="${a[1]}" -done <<< "$values" - -xrdb -merge "$HOME/.Xresources" -xrdb -merge "$HOME/.Xresources.colors" -xrdb -merge "$HOME/.Xresources.env" diff --git a/scripts/set_sh_font.sh b/scripts/set_sh_font.sh deleted file mode 100644 index 0413745..0000000 --- a/scripts/set_sh_font.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env sh - -set_sh_font() -{ - echo "NOT IMPLEMENTED" -} -export -f set_sh_font - diff --git a/scripts/steam.bash b/scripts/steam.bash deleted file mode 100755 index 8c0fc99..0000000 --- a/scripts/steam.bash +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' /usr/bin/steam diff --git a/scripts/sxhkd_helpers.sh b/scripts/sxhkd_helpers.sh deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/syncs/starbound_download.sh b/scripts/syncs/starbound_download.sh deleted file mode 100755 index 600c5dc..0000000 --- a/scripts/syncs/starbound_download.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env sh - -LOCAL_STORAGE_DIR="$HOME/.local/share/Steam/steamapps/common/Starbound/storage" -REMOTE_STORAGE_HOST_DIR="lytedev.io:~/games/sync/starbound" - -mkdir -p "$LOCAL_STORAGE_DIR" - -rsync -tr "$REMOTE_STORAGE_HOST_DIR/player" "$LOCAL_STORAGE_DIR" -rsync -tr "$REMOTE_STORAGE_HOST_DIR/universe" "$LOCAL_STORAGE_DIR" diff --git a/scripts/syncs/starbound_upload.sh b/scripts/syncs/starbound_upload.sh deleted file mode 100755 index 4869cb4..0000000 --- a/scripts/syncs/starbound_upload.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env sh - -LOCAL_STORAGE_DIR="$HOME/.local/share/Steam/steamapps/common/Starbound/storage" -REMOTE_STORAGE_HOST_DIR="lytedev.io:~/games/sync/starbound/$(date +%Y.%m.%d_%H.%M.%S)" - -rsync -tr "$LOCAL_STORAGE_DIR/player" "$REMOTE_STORAGE_HOST_DIR" -rsync -tr "$LOCAL_STORAGE_DIR/universe" "$REMOTE_STORAGE_HOST_DIR" diff --git a/variables.bash b/variables.bash deleted file mode 100755 index b36196d..0000000 --- a/variables.bash +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -# This script will seriously nuke your home directory. You should really read -# each of the scripts that will be executed in those process. - -# the path to the dotfiles directory/repository -export DOTFILES_PATH="$HOME/.dotfiles" - -# this variable controls whether or not we have a separate dir we like to -# actually use as home instead of $HOME in order to avoid dotfiles clutter -# for all user-facing purposes, we try to use this as the home directory while -# programs will still use $HOME (which in my case is usually /home/username/usr) -export NICE_HOME=$(realpath "$HOME/..") - -# this prevents different bar modules from being loaded you should probably -# avoid setting them here and set them in "$HOME/.bashrc_env" -export BLACKLISTED_BAR_MODULES="" - -# in some cases (mainly OS provisioning) we clone repositories or download code -# for later use -# as I'm writing this, I realize I should almost certainly be using /tmp and am more -# than a little bit ashamed -# TODO: use /tmp ? -export REPOSITORY_PATH="$NICE_HOME/code/open-source" -export IMG_PATH="$NICE_HOME/img" - -# the width of the border around the bspwm windows -export BORDER_WIDTH=0 - -# the gap between bspwm windows -export WINDOW_GAP=24 - -# load our font variables -source "$DOTFILES_PATH/scripts/get_x_fonts.sh" - -# load our color info -source "$DOTFILES_PATH/scripts/get_color.sh" - -# load our bar variables -source "$DOTFILES_PATH/env/wm/extras/bar/variables.bash" - -# when we kill bspwm we can export the state to this file -export BSPWM_STATE_FILE="$DOTFILES_PATH/bspwm_state.json.tmp" - -# disables the clickable launcher buttons for touch or keyboardless devices if 1 -export NO_LAUNCHER_BUTTONS=0 - -# this lets our window gap account for the border width -# if this is enabled, it is usually so that I can reduce border width on my -# desktops with a single chrome window on them so that I can click that tabs at -# the top quickly -# I really need to migrate browsers -# export WINDOW_GAP=$(expr $WINDOW_GAP - $BORDER_WIDTH) - -# load per-device bashrc_env if it exists -if [ -a "$HOME/.bashrc_env" ]; then - . "$HOME/.bashrc_env" -fi diff --git a/xsession-launch.bash b/xsession-launch.bash deleted file mode 100755 index 7f80dd2..0000000 --- a/xsession-launch.bash +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd) -source "$DIR/variables.bash" - -export DOTFILES_PATH="$DOTFILES_PATH" - -# source "$DOTFILES_PATH/env/x/xloadresources" - -bspwm -