From cd64877d15106e819b56db19fd78f0e85f70222d Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sun, 7 Jul 2019 12:48:10 +0700 Subject: Update 2019-07-07 --- README.md | 11 +- awesome/.config/awesome/rc.lua | 5 +- awesome/.config/awesome/themes/srcery/theme.lua | 2 +- debian-screenshot.png | Bin 0 -> 626274 bytes debian/.Xresources | 1 + debian/.Xresources-dark | 26 +++++ debian/.Xresources-light | 25 +++++ debian/.bashrc | 130 ++++++++++++++++++++++++ debian/.config/gtk-3.0/gtkcss | 4 + debian/.config/gtk-3.0/settings.ini | 4 + debian/.fonts/DancingScript-Bold.ttf | Bin 0 -> 122748 bytes debian/.fonts/DancingScript-Regular.ttf | Bin 0 -> 123760 bytes debian/.fonts/Inconsolata-Bold.ttf | Bin 0 -> 109948 bytes debian/.fonts/Inconsolata-Regular.ttf | Bin 0 -> 96964 bytes debian/.fonts/Pacifico-Regular.ttf | Bin 0 -> 196324 bytes debian/.fonts/SansForgetica-Regular.otf | Bin 0 -> 102192 bytes debian/.fonts/SpaceMono-Bold.ttf | Bin 0 -> 89020 bytes debian/.fonts/SpaceMono-BoldItalic.ttf | Bin 0 -> 97732 bytes debian/.fonts/SpaceMono-Italic.ttf | Bin 0 -> 105932 bytes debian/.fonts/SpaceMono-Regular.ttf | Bin 0 -> 93252 bytes debian/.fonts/VT323-Regular.ttf | Bin 0 -> 153116 bytes debian/.gtkrc-2.0 | 3 + debian/.mailcap | 69 +++++++++++++ debian/.profile | 27 +++++ debian/.screenlayout/dual.sh | 2 + debian/.screenlayout/single.sh | 2 + debian/.xinitrc | 11 ++ dev/.drirc | 5 + emacs/.swank.lisp | 2 + fedora-screenshot.png | Bin 0 -> 770004 bytes fedora/.bash_profile | 10 ++ fedora/.bashrc | 17 ++++ meta/.Xresources | 1 - meta/.Xresources-dark | 26 ----- meta/.Xresources-light | 25 ----- meta/.bashrc | 123 ---------------------- meta/.config/gtk-3.0/gtkcss | 4 - meta/.config/gtk-3.0/settings.ini | 4 - meta/.drirc | 5 - meta/.fonts/DancingScript-Bold.ttf | Bin 122748 -> 0 bytes meta/.fonts/DancingScript-Regular.ttf | Bin 123760 -> 0 bytes meta/.fonts/Inconsolata-Bold.ttf | Bin 109948 -> 0 bytes meta/.fonts/Inconsolata-Regular.ttf | Bin 96964 -> 0 bytes meta/.fonts/Pacifico-Regular.ttf | Bin 196324 -> 0 bytes meta/.fonts/SansForgetica-Regular.otf | Bin 102192 -> 0 bytes meta/.fonts/SpaceMono-Bold.ttf | Bin 89020 -> 0 bytes meta/.fonts/SpaceMono-BoldItalic.ttf | Bin 97732 -> 0 bytes meta/.fonts/SpaceMono-Italic.ttf | Bin 105932 -> 0 bytes meta/.fonts/SpaceMono-Regular.ttf | Bin 93252 -> 0 bytes meta/.fonts/VT323-Regular.ttf | Bin 153116 -> 0 bytes meta/.gtkrc-2.0 | 3 - meta/.mailcap | 69 ------------- meta/.profile | 27 ----- meta/.screenlayout/dual.sh | 2 - meta/.screenlayout/single.sh | 2 - meta/.xinitrc | 11 -- screenshot.png | Bin 626274 -> 0 bytes vim/.vim/vimrc | 2 +- 58 files changed, 351 insertions(+), 309 deletions(-) create mode 100644 debian-screenshot.png create mode 120000 debian/.Xresources create mode 100644 debian/.Xresources-dark create mode 100644 debian/.Xresources-light create mode 100644 debian/.bashrc create mode 100644 debian/.config/gtk-3.0/gtkcss create mode 100644 debian/.config/gtk-3.0/settings.ini create mode 100644 debian/.fonts/DancingScript-Bold.ttf create mode 100644 debian/.fonts/DancingScript-Regular.ttf create mode 100644 debian/.fonts/Inconsolata-Bold.ttf create mode 100644 debian/.fonts/Inconsolata-Regular.ttf create mode 100644 debian/.fonts/Pacifico-Regular.ttf create mode 100644 debian/.fonts/SansForgetica-Regular.otf create mode 100644 debian/.fonts/SpaceMono-Bold.ttf create mode 100644 debian/.fonts/SpaceMono-BoldItalic.ttf create mode 100644 debian/.fonts/SpaceMono-Italic.ttf create mode 100644 debian/.fonts/SpaceMono-Regular.ttf create mode 100644 debian/.fonts/VT323-Regular.ttf create mode 100644 debian/.gtkrc-2.0 create mode 100644 debian/.mailcap create mode 100644 debian/.profile create mode 100755 debian/.screenlayout/dual.sh create mode 100755 debian/.screenlayout/single.sh create mode 100644 debian/.xinitrc create mode 100644 dev/.drirc create mode 100644 emacs/.swank.lisp create mode 100644 fedora-screenshot.png create mode 100644 fedora/.bash_profile create mode 100644 fedora/.bashrc delete mode 120000 meta/.Xresources delete mode 100644 meta/.Xresources-dark delete mode 100644 meta/.Xresources-light delete mode 100644 meta/.bashrc delete mode 100644 meta/.config/gtk-3.0/gtkcss delete mode 100644 meta/.config/gtk-3.0/settings.ini delete mode 100644 meta/.drirc delete mode 100644 meta/.fonts/DancingScript-Bold.ttf delete mode 100644 meta/.fonts/DancingScript-Regular.ttf delete mode 100644 meta/.fonts/Inconsolata-Bold.ttf delete mode 100644 meta/.fonts/Inconsolata-Regular.ttf delete mode 100644 meta/.fonts/Pacifico-Regular.ttf delete mode 100644 meta/.fonts/SansForgetica-Regular.otf delete mode 100644 meta/.fonts/SpaceMono-Bold.ttf delete mode 100644 meta/.fonts/SpaceMono-BoldItalic.ttf delete mode 100644 meta/.fonts/SpaceMono-Italic.ttf delete mode 100644 meta/.fonts/SpaceMono-Regular.ttf delete mode 100644 meta/.fonts/VT323-Regular.ttf delete mode 100644 meta/.gtkrc-2.0 delete mode 100644 meta/.mailcap delete mode 100644 meta/.profile delete mode 100755 meta/.screenlayout/dual.sh delete mode 100755 meta/.screenlayout/single.sh delete mode 100644 meta/.xinitrc delete mode 100644 screenshot.png diff --git a/README.md b/README.md index f4d03f5..544a3b6 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,14 @@ # dotfiles -Dotfiles of my Debian testing, managed by GNU Stow. +Dotfiles of my Debian testing and Fedora workstation, managed by GNU Stow. -![](screenshot.png) +![Debian testing](debian-screenshot.png) -The Debian desktop uses awesome, bash, Git, Luakit, ranger, Vim, XTerm +The Debian desktop uses awesome, bash, Git, Firefox, ranger, Vim, URxvt and Zathura. Most of these applications are themed with the [srcery](https://github.com/srcery-colors/srcery-vim) colorscheme. + +![Fedora workstation](fedora-screenshot.png) + +The Fedora desktop is vanilla GNOME with Emacs. Yes you can run for systems +in parallel: GNU/Linux, systemd, GNOME JS VM and Emacs. diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 485e4d2..c43b97d 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -302,6 +302,7 @@ end screen.connect_signal("property::geometry", set_wallpaper) awful.screen.connect_for_each_screen(function (s) + set_wallpaper(s) -- Each screen has its own tag table. awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, s, awful.layout.layouts[1]) @@ -453,8 +454,8 @@ local globalkeys = awful.util.table.join( {description = "open GVim", group = "launcher"}), awful.key({modkey}, "e", spawner"emacsclient -c", {description = "open Emacs", group = "launcher"}), - awful.key({modkey}, "b", spawner"luakit", - {description = "open Luakit", group = "launcher"}), + awful.key({modkey}, "b", spawner"qutebrowser", + {description = "open qutebrowser", group = "launcher"}), awful.key({modkey, "Shift"}, "b", spawner"torify luakit --nounique", {description = "open torified Luakit", group = "launcher"}), awful.key({modkey}, "f", spawner"firefox", diff --git a/awesome/.config/awesome/themes/srcery/theme.lua b/awesome/.config/awesome/themes/srcery/theme.lua index d0c3e26..0c0578c 100644 --- a/awesome/.config/awesome/themes/srcery/theme.lua +++ b/awesome/.config/awesome/themes/srcery/theme.lua @@ -53,7 +53,7 @@ theme.hotkeys_fg = theme.fg_normal theme.useless_gap = 0 theme.border_width = 2 -theme.border_normal = theme.bg_focus +theme.border_normal = '#353535' theme.border_focus = theme.orange theme.border_marked = theme.red diff --git a/debian-screenshot.png b/debian-screenshot.png new file mode 100644 index 0000000..4e5cd16 Binary files /dev/null and b/debian-screenshot.png differ diff --git a/debian/.Xresources b/debian/.Xresources new file mode 120000 index 0000000..c4d7dd6 --- /dev/null +++ b/debian/.Xresources @@ -0,0 +1 @@ +.Xresources-dark \ No newline at end of file diff --git a/debian/.Xresources-dark b/debian/.Xresources-dark new file mode 100644 index 0000000..760770b --- /dev/null +++ b/debian/.Xresources-dark @@ -0,0 +1,26 @@ +*.foreground: #fce8c3 +*.background: #1c1b19 +*.cursorColor: #fce8c3 +*.color0: #1c1b19 +*.color1: #ef2f27 +*.color2: #519f50 +*.color3: #fbb829 +*.color4: #2c78bf +*.color5: #e02c6d +*.color6: #0aaeb3 +*.color7: #918175 +*.color8: #2D2C29 +*.color9: #f75341 +*.color10: #98bc37 +*.color11: #fed06e +*.color12: #68A8E4 +*.color13: #ff5c8f +*.color14: #53fde9 +*.color15: #fce8c3 +*loginShell: true +*scrollBar: false +*saveLines: 65535 +*cursorBlink: false +*jumpScroll: true +URxvt.font: xft:Latin Modern Mono:size=12 +URxvt.termName: rxvt-unicode-256color diff --git a/debian/.Xresources-light b/debian/.Xresources-light new file mode 100644 index 0000000..3123694 --- /dev/null +++ b/debian/.Xresources-light @@ -0,0 +1,25 @@ +*background: #fbf1c7 +*foreground: #3c3836 +*color0: #fbf1c7 +*color1: #cc241d +*color2: #98971a +*color3: #d79921 +*color4: #458588 +*color5: #b16286 +*color6: #689d6a +*color7: #7c6f64 +*color8: #928374 +*color9: #9d0006 +*color10: #79740e +*color11: #b57614 +*color12: #076678 +*color13: #8f3f71 +*color14: #427b58 +*color15: #3c3836 +*loginShell: true +*scrollBar: false +*saveLines: 65535 +*cursorBlink: false +*jumpScroll: true +URxvt.font: xft:Latin Modern Mono:size=12 +URxvt.termName: rxvt diff --git a/debian/.bashrc b/debian/.bashrc new file mode 100644 index 0000000..4f9c6a5 --- /dev/null +++ b/debian/.bashrc @@ -0,0 +1,130 @@ +# ~/.bashrc: executed by bash(1) for non-login shells. +# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) +# for examples + +# If not running interactively, don't do anything +case $- in + *i*) ;; + *) return;; +esac + +# don't put duplicate lines or lines starting with space in the history. +# See bash(1) for more options +HISTCONTROL=ignoreboth + +# append to the history file, don't overwrite it +shopt -s histappend + +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +HISTSIZE=32767 +HISTFILESIZE=65536 + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# If set, the pattern "**" used in a pathname expansion context will +# match all files and zero or more directories and subdirectories. +#shopt -s globstar + +# make less more friendly for non-text input files, see lesspipe(1) +#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +# set variable identifying the chroot you work in (used in the prompt below) +if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then + debian_chroot=$(cat /etc/debian_chroot) +fi + +# set a fancy prompt (non-color, unless we know we "want" color) +case "$TERM" in + xterm-color|*-256color) color_prompt=yes;; +esac + +# uncomment for a colored prompt, if the terminal has the capability; turned +# off by default to not distract the user: the focus in a terminal window +# should be on the output of commands, not on the prompt +force_color_prompt=yes + +if [ -n "$force_color_prompt" ]; then + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + # We have color support; assume it's compliant with Ecma-48 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such + # a case would tend to support setf rather than setaf.) + color_prompt=yes + else + color_prompt= + fi +fi + +if [ "$color_prompt" = yes ]; then + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' +else + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' +fi +unset color_prompt force_color_prompt + +# If this is an xterm set the title to user@host:dir +case "$TERM" in +xterm*|rxvt*) + PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" + ;; +*) + ;; +esac + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + alias dir='dir --color=auto' + alias vdir='vdir --color=auto' + + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +# colored GCC warnings and errors +export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' + +# some more ls aliases +alias ll='ls -l' +alias la='ls -A' +#alias l='ls -CF' + +# Alias definitions. +# You may want to put all your additions into a separate file like +# ~/.bash_aliases, instead of adding them here directly. +# See /usr/share/doc/bash-doc/examples in the bash-doc package. +alias r=ranger +alias gcc='gcc -O2 -lm' +alias g++='g++ -O2 -lm' +alias fpc='fpc -O1 -XS -gl' +alias mpa='mpv --no-video --loop=inf' +alias raku=perl6 +alias x='cd $HOME && startx && cd -' +alias backup='rsync -avh --delete /home/ /data/Home/' +eval $(thefuck --alias) + +function ipfs-cors { + ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://0.0.0.0:5001", "http://127.0.0.1:5001", "https://webui.ipfs.io"]' + ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]' + systemctl restart --user ipfs +} + +# enable programmable completion features (you don't need to enable +# this, if it's already enabled in /etc/bash.bashrc and /etc/profile +# sources /etc/bash.bashrc). +if ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi + +# emacs mode input +set -o emacs + +export EDITOR=vim +export PAGER=less diff --git a/debian/.config/gtk-3.0/gtkcss b/debian/.config/gtk-3.0/gtkcss new file mode 100644 index 0000000..e7ff883 --- /dev/null +++ b/debian/.config/gtk-3.0/gtkcss @@ -0,0 +1,4 @@ +.window-frame { + box-shadow: none; + margin: 0; +} diff --git a/debian/.config/gtk-3.0/settings.ini b/debian/.config/gtk-3.0/settings.ini new file mode 100644 index 0000000..4635233 --- /dev/null +++ b/debian/.config/gtk-3.0/settings.ini @@ -0,0 +1,4 @@ +[Settings] +gtk-font-name = Latin Modern Sans 11 +gtk-application-prefer-dark-theme = true +gtk-key-theme-name = Emacs diff --git a/debian/.fonts/DancingScript-Bold.ttf b/debian/.fonts/DancingScript-Bold.ttf new file mode 100644 index 0000000..f1e0d65 Binary files /dev/null and b/debian/.fonts/DancingScript-Bold.ttf differ diff --git a/debian/.fonts/DancingScript-Regular.ttf b/debian/.fonts/DancingScript-Regular.ttf new file mode 100644 index 0000000..72db835 Binary files /dev/null and b/debian/.fonts/DancingScript-Regular.ttf differ diff --git a/debian/.fonts/Inconsolata-Bold.ttf b/debian/.fonts/Inconsolata-Bold.ttf new file mode 100644 index 0000000..809c1f5 Binary files /dev/null and b/debian/.fonts/Inconsolata-Bold.ttf differ diff --git a/debian/.fonts/Inconsolata-Regular.ttf b/debian/.fonts/Inconsolata-Regular.ttf new file mode 100644 index 0000000..fc981ce Binary files /dev/null and b/debian/.fonts/Inconsolata-Regular.ttf differ diff --git a/debian/.fonts/Pacifico-Regular.ttf b/debian/.fonts/Pacifico-Regular.ttf new file mode 100644 index 0000000..ccbe0f3 Binary files /dev/null and b/debian/.fonts/Pacifico-Regular.ttf differ diff --git a/debian/.fonts/SansForgetica-Regular.otf b/debian/.fonts/SansForgetica-Regular.otf new file mode 100644 index 0000000..27deedb Binary files /dev/null and b/debian/.fonts/SansForgetica-Regular.otf differ diff --git a/debian/.fonts/SpaceMono-Bold.ttf b/debian/.fonts/SpaceMono-Bold.ttf new file mode 100644 index 0000000..4acd36a Binary files /dev/null and b/debian/.fonts/SpaceMono-Bold.ttf differ diff --git a/debian/.fonts/SpaceMono-BoldItalic.ttf b/debian/.fonts/SpaceMono-BoldItalic.ttf new file mode 100644 index 0000000..0702475 Binary files /dev/null and b/debian/.fonts/SpaceMono-BoldItalic.ttf differ diff --git a/debian/.fonts/SpaceMono-Italic.ttf b/debian/.fonts/SpaceMono-Italic.ttf new file mode 100644 index 0000000..8799738 Binary files /dev/null and b/debian/.fonts/SpaceMono-Italic.ttf differ diff --git a/debian/.fonts/SpaceMono-Regular.ttf b/debian/.fonts/SpaceMono-Regular.ttf new file mode 100644 index 0000000..28d7ff7 Binary files /dev/null and b/debian/.fonts/SpaceMono-Regular.ttf differ diff --git a/debian/.fonts/VT323-Regular.ttf b/debian/.fonts/VT323-Regular.ttf new file mode 100644 index 0000000..afa6909 Binary files /dev/null and b/debian/.fonts/VT323-Regular.ttf differ diff --git a/debian/.gtkrc-2.0 b/debian/.gtkrc-2.0 new file mode 100644 index 0000000..01f826b --- /dev/null +++ b/debian/.gtkrc-2.0 @@ -0,0 +1,3 @@ +gtk-font-name = "Latin Modern Sans 11" +gtk-theme-name = "CleanIce-Marble" +gtk-key-theme-name = "Emacs" diff --git a/debian/.mailcap b/debian/.mailcap new file mode 100644 index 0000000..6cca665 --- /dev/null +++ b/debian/.mailcap @@ -0,0 +1,69 @@ +# Example mailcap file for Reddit Terminal Viewer +# https://github.com/michael-lazar/rtv/ +# +# Copy the contents of this file to {HOME}/.mailcap, or point to using $MAILCAPS +# Then launch RTV using the --enable-media flag. All shell commands defined in +# this file depend on external programs that must be installed on your system. +# +# HELP REQUESTED! If you come up with your own commands (especially for OS X) +# and would like to share, please post an issue on the GitHub tracker and we +# can get them added to this file as references. +# +# +# Mailcap 101 +# - The first entry with a matching MIME type will be executed, * is a wildcard +# - %s will be replaced with the image or video url +# - Add ``test=test -n "$DISPLAY"`` if your command opens a new window +# - Add ``needsterminal`` for commands that use the terminal +# - Add ``copiousoutput`` for commands that dump text to stdout + +############################################################################### +# Commands below this point will open media in a separate window without +# pausing execution of RTV. +############################################################################### + +# Feh is a simple and effective image viewer +# Note that rtv returns a list of urls for imgur albums, so we don't put quotes +# around the `%s` +image/x-imgur-album; feh %s; test=test -n "$DISPLAY" +image/gif; mpv '%s' --loop=inf; test=test -n "$DISPLAY" +image/*; feh '%s'; test=test -n "$DISPLAY" + +# Youtube videos are assigned a custom mime-type, which can be streamed with +# vlc or youtube-dl. +video/x-youtube; mpv '%s'; test=test -n "$DISPLAY" + +# Mpv is a simple and effective video streamer +video/*; mpv '%s' --loop=inf; test=test -n "$DISPLAY" + +############################################################################### +# Commands below this point will attempt to display media directly in the +# terminal when X is not available. +############################################################################### + +# View images directly in your terminal with iTerm2 +# curl -L https://iterm2.com/misc/install_shell_integration_and_utilities.sh | bash +# image/*; curl -s %s | ~/.iterm2/imgcat && read -n 1; needsterminal + +# View true images in the terminal, supported by rxvt-unicode, xterm and st +# Requires the w3m-img package +image/*; w3m -o 'ext_image_viewer=off' '%s'; needsterminal + +# Don't have a solution for albums yet +image/x-imgur-album; echo + +# 256 color images using half-width unicode characters +# Much higher quality that img2txt, but must be built from source +# https://github.com/rossy/img2xterm +#image/*; curl -s '%s' | convert -resize 80x80 - jpg:/tmp/rtv.jpg && img2xterm /tmp/rtv.jpg; needsterminal; copiousoutput + +# Display images in classic ascii using img2txt and lib-caca +image/*; curl -s '%s' | convert - jpg:/tmp/rtv.jpg && img2txt -f utf8 /tmp/rtv.jpg; needsterminal; copiousoutput + +# Full motion videos - requires a framebuffer to view +video/x-youtube; mpv -vo drm -quiet '%s'; needsterminal +video/*; mpv -vo drm -quiet '%s'; needsterminal + +# Ascii videos +# video/x-youtube; youtube-dl -q -o - '%s' | mplayer -cache 8192 -vo caca -quiet -; needsterminal +# video/*; wget '%s' -O - | mplayer -cache 8192 -vo caca -quiet -; needsterminal diff --git a/debian/.profile b/debian/.profile new file mode 100644 index 0000000..6c8b86e --- /dev/null +++ b/debian/.profile @@ -0,0 +1,27 @@ +# ~/.profile: executed by the command interpreter for login shells. +# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login +# exists. +# see /usr/share/doc/bash/examples/startup-files for examples. +# the files are located in the bash-doc package. + +# the default umask is set in /etc/profile; for setting the umask +# for ssh logins, install and configure the libpam-umask package. +#umask 022 + +export GOPATH="$HOME/.local/share/go" +export PATH="$HOME/.local/bin:$GOPATH/bin:$HOME/.cargo/bin:$HOME/.luarocks/bin:$PATH" +export MANPATH="$HOME/.local/share/man:$MANPATH" +export XMODIFIERS=@im=ibus +#export WEBKIT_DISABLE_COMPOSITING_MODE=1 +export NLTK_DATA="$HOME/Sources/nlp/nltk_data" + +# if running bash +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi + +# OPAM configuration +. /home/cnx/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true diff --git a/debian/.screenlayout/dual.sh b/debian/.screenlayout/dual.sh new file mode 100755 index 0000000..e141199 --- /dev/null +++ b/debian/.screenlayout/dual.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output HDMI2 --off --output HDMI1 --off --output DP1 --primary --mode 1600x900 --pos 1920x0 --rotate normal --output eDP1 --mode 1920x1080 --pos 0x0 --rotate normal --output VIRTUAL1 --off diff --git a/debian/.screenlayout/single.sh b/debian/.screenlayout/single.sh new file mode 100755 index 0000000..aede90f --- /dev/null +++ b/debian/.screenlayout/single.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DP1 --off --output HDMI1 --off --output eDP1 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI2 --off diff --git a/debian/.xinitrc b/debian/.xinitrc new file mode 100644 index 0000000..598bd05 --- /dev/null +++ b/debian/.xinitrc @@ -0,0 +1,11 @@ +#!/bin/sh +xrdb -merge ~/.Xresources +xrandr --output DP1 --mode 1600x900 --primary --right-of eDP1 +redshift-gtk -l 21.028333:105.854167 & +mate-power-manager & +ibus-daemon -drx +blueman-applet & +nm-applet & +keynav & +diodon & +exec awesome diff --git a/dev/.drirc b/dev/.drirc new file mode 100644 index 0000000..7cf47a1 --- /dev/null +++ b/dev/.drirc @@ -0,0 +1,5 @@ + + + + diff --git a/emacs/.swank.lisp b/emacs/.swank.lisp new file mode 100644 index 0000000..8ce502f --- /dev/null +++ b/emacs/.swank.lisp @@ -0,0 +1,2 @@ +(setf swank:*globally-redirect-io* t) +(setf swank:*communication-style* :fd-handler) diff --git a/fedora-screenshot.png b/fedora-screenshot.png new file mode 100644 index 0000000..488e231 Binary files /dev/null and b/fedora-screenshot.png differ diff --git a/fedora/.bash_profile b/fedora/.bash_profile new file mode 100644 index 0000000..eadc104 --- /dev/null +++ b/fedora/.bash_profile @@ -0,0 +1,10 @@ +# .bash_profile + +# Get the aliases and functions +if [ -f ~/.bashrc ]; then + . ~/.bashrc +fi + +# User specific environment and startup programs +export GOPATH=$HOME/.local/share/go +export PATH=$PATH:$HOME/.local/bin:$GOPATH/bin:$HOME/.cargo/bin diff --git a/fedora/.bashrc b/fedora/.bashrc new file mode 100644 index 0000000..6f6bbc4 --- /dev/null +++ b/fedora/.bashrc @@ -0,0 +1,17 @@ +# .bashrc + +# Source global definitions +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi + +# Uncomment the following line if you don't like systemctl's auto-paging feature: +# export SYSTEMD_PAGER= + +# User specific aliases and functions +alias stow='stow -t /home/436e58' +alias gcc='gcc -O2 -lm' +alias g++='g++ -O2 -lm' +alias fpc='fpc -O1 -XS -gl' +alias raku='rlwrap perl6' +alias backup='rsync -avh --delete /home/ /data/Home/' diff --git a/meta/.Xresources b/meta/.Xresources deleted file mode 120000 index c4d7dd6..0000000 --- a/meta/.Xresources +++ /dev/null @@ -1 +0,0 @@ -.Xresources-dark \ No newline at end of file diff --git a/meta/.Xresources-dark b/meta/.Xresources-dark deleted file mode 100644 index 4bb55d2..0000000 --- a/meta/.Xresources-dark +++ /dev/null @@ -1,26 +0,0 @@ -*foreground: #fce8c3 -*background: #1c1b19 -*cursorColor: #fce8c3 -*.color0: #1c1b19 -*.color1: #ef2f27 -*.color2: #519f50 -*.color3: #fbb829 -*.color4: #2c78bf -*.color5: #e02c6d -*.color6: #0aaeb3 -*.color7: #918175 -*.color8: #2D2C29 -*.color9: #f75341 -*.color10: #98bc37 -*.color11: #fed06e -*.color12: #68A8E4 -*.color13: #ff5c8f -*.color14: #53fde9 -*.color15: #fce8c3 -*loginShell: true -*scrollBar: false -*saveLines: 65535 -*cursorBlink: false -*jumpScroll: true -URxvt.font: xft:Latin Modern Mono:size=12 -URxvt.termName: rxvt-unicode-256color diff --git a/meta/.Xresources-light b/meta/.Xresources-light deleted file mode 100644 index 3123694..0000000 --- a/meta/.Xresources-light +++ /dev/null @@ -1,25 +0,0 @@ -*background: #fbf1c7 -*foreground: #3c3836 -*color0: #fbf1c7 -*color1: #cc241d -*color2: #98971a -*color3: #d79921 -*color4: #458588 -*color5: #b16286 -*color6: #689d6a -*color7: #7c6f64 -*color8: #928374 -*color9: #9d0006 -*color10: #79740e -*color11: #b57614 -*color12: #076678 -*color13: #8f3f71 -*color14: #427b58 -*color15: #3c3836 -*loginShell: true -*scrollBar: false -*saveLines: 65535 -*cursorBlink: false -*jumpScroll: true -URxvt.font: xft:Latin Modern Mono:size=12 -URxvt.termName: rxvt diff --git a/meta/.bashrc b/meta/.bashrc deleted file mode 100644 index f4a52ce..0000000 --- a/meta/.bashrc +++ /dev/null @@ -1,123 +0,0 @@ -# ~/.bashrc: executed by bash(1) for non-login shells. -# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) -# for examples - -# If not running interactively, don't do anything -case $- in - *i*) ;; - *) return;; -esac - -# don't put duplicate lines or lines starting with space in the history. -# See bash(1) for more options -HISTCONTROL=ignoreboth - -# append to the history file, don't overwrite it -shopt -s histappend - -# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) -HISTSIZE=32767 -HISTFILESIZE=65536 - -# check the window size after each command and, if necessary, -# update the values of LINES and COLUMNS. -shopt -s checkwinsize - -# If set, the pattern "**" used in a pathname expansion context will -# match all files and zero or more directories and subdirectories. -#shopt -s globstar - -# make less more friendly for non-text input files, see lesspipe(1) -#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" - -# set variable identifying the chroot you work in (used in the prompt below) -if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then - debian_chroot=$(cat /etc/debian_chroot) -fi - -# set a fancy prompt (non-color, unless we know we "want" color) -case "$TERM" in - xterm-color|*-256color) color_prompt=yes;; -esac - -# uncomment for a colored prompt, if the terminal has the capability; turned -# off by default to not distract the user: the focus in a terminal window -# should be on the output of commands, not on the prompt -force_color_prompt=yes - -if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then - # We have color support; assume it's compliant with Ecma-48 - # (ISO/IEC-6429). (Lack of such support is extremely rare, and such - # a case would tend to support setf rather than setaf.) - color_prompt=yes - else - color_prompt= - fi -fi - -if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' -else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' -fi -unset color_prompt force_color_prompt - -# If this is an xterm set the title to user@host:dir -case "$TERM" in -xterm*|rxvt*) - PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" - ;; -*) - ;; -esac - -# enable color support of ls and also add handy aliases -if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' - alias dir='dir --color=auto' - alias vdir='vdir --color=auto' - - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias egrep='egrep --color=auto' -fi - -# colored GCC warnings and errors -export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' - -# some more ls aliases -alias ll='ls -l' -alias la='ls -A' -#alias l='ls -CF' - -# Alias definitions. -# You may want to put all your additions into a separate file like -# ~/.bash_aliases, instead of adding them here directly. -# See /usr/share/doc/bash-doc/examples in the bash-doc package. -alias r=ranger -alias gcc='gcc -O2 -lm' -alias g++='g++ -O2 -lm' -alias fpc='fpc -O1 -XS -gl' -alias mpa='mpv --no-video --loop=inf' -alias raku=perl6 -alias x='cd $HOME && startx && cd -' -eval $(thefuck --alias) - -# enable programmable completion features (you don't need to enable -# this, if it's already enabled in /etc/bash.bashrc and /etc/profile -# sources /etc/bash.bashrc). -if ! shopt -oq posix; then - if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion - elif [ -f /etc/bash_completion ]; then - . /etc/bash_completion - fi -fi - -# emacs mode input -set -o emacs - -export EDITOR=vim -export PAGER=less diff --git a/meta/.config/gtk-3.0/gtkcss b/meta/.config/gtk-3.0/gtkcss deleted file mode 100644 index e7ff883..0000000 --- a/meta/.config/gtk-3.0/gtkcss +++ /dev/null @@ -1,4 +0,0 @@ -.window-frame { - box-shadow: none; - margin: 0; -} diff --git a/meta/.config/gtk-3.0/settings.ini b/meta/.config/gtk-3.0/settings.ini deleted file mode 100644 index 4635233..0000000 --- a/meta/.config/gtk-3.0/settings.ini +++ /dev/null @@ -1,4 +0,0 @@ -[Settings] -gtk-font-name = Latin Modern Sans 11 -gtk-application-prefer-dark-theme = true -gtk-key-theme-name = Emacs diff --git a/meta/.drirc b/meta/.drirc deleted file mode 100644 index 7cf47a1..0000000 --- a/meta/.drirc +++ /dev/null @@ -1,5 +0,0 @@ - - - - diff --git a/meta/.fonts/DancingScript-Bold.ttf b/meta/.fonts/DancingScript-Bold.ttf deleted file mode 100644 index f1e0d65..0000000 Binary files a/meta/.fonts/DancingScript-Bold.ttf and /dev/null differ diff --git a/meta/.fonts/DancingScript-Regular.ttf b/meta/.fonts/DancingScript-Regular.ttf deleted file mode 100644 index 72db835..0000000 Binary files a/meta/.fonts/DancingScript-Regular.ttf and /dev/null differ diff --git a/meta/.fonts/Inconsolata-Bold.ttf b/meta/.fonts/Inconsolata-Bold.ttf deleted file mode 100644 index 809c1f5..0000000 Binary files a/meta/.fonts/Inconsolata-Bold.ttf and /dev/null differ diff --git a/meta/.fonts/Inconsolata-Regular.ttf b/meta/.fonts/Inconsolata-Regular.ttf deleted file mode 100644 index fc981ce..0000000 Binary files a/meta/.fonts/Inconsolata-Regular.ttf and /dev/null differ diff --git a/meta/.fonts/Pacifico-Regular.ttf b/meta/.fonts/Pacifico-Regular.ttf deleted file mode 100644 index ccbe0f3..0000000 Binary files a/meta/.fonts/Pacifico-Regular.ttf and /dev/null differ diff --git a/meta/.fonts/SansForgetica-Regular.otf b/meta/.fonts/SansForgetica-Regular.otf deleted file mode 100644 index 27deedb..0000000 Binary files a/meta/.fonts/SansForgetica-Regular.otf and /dev/null differ diff --git a/meta/.fonts/SpaceMono-Bold.ttf b/meta/.fonts/SpaceMono-Bold.ttf deleted file mode 100644 index 4acd36a..0000000 Binary files a/meta/.fonts/SpaceMono-Bold.ttf and /dev/null differ diff --git a/meta/.fonts/SpaceMono-BoldItalic.ttf b/meta/.fonts/SpaceMono-BoldItalic.ttf deleted file mode 100644 index 0702475..0000000 Binary files a/meta/.fonts/SpaceMono-BoldItalic.ttf and /dev/null differ diff --git a/meta/.fonts/SpaceMono-Italic.ttf b/meta/.fonts/SpaceMono-Italic.ttf deleted file mode 100644 index 8799738..0000000 Binary files a/meta/.fonts/SpaceMono-Italic.ttf and /dev/null differ diff --git a/meta/.fonts/SpaceMono-Regular.ttf b/meta/.fonts/SpaceMono-Regular.ttf deleted file mode 100644 index 28d7ff7..0000000 Binary files a/meta/.fonts/SpaceMono-Regular.ttf and /dev/null differ diff --git a/meta/.fonts/VT323-Regular.ttf b/meta/.fonts/VT323-Regular.ttf deleted file mode 100644 index afa6909..0000000 Binary files a/meta/.fonts/VT323-Regular.ttf and /dev/null differ diff --git a/meta/.gtkrc-2.0 b/meta/.gtkrc-2.0 deleted file mode 100644 index 01f826b..0000000 --- a/meta/.gtkrc-2.0 +++ /dev/null @@ -1,3 +0,0 @@ -gtk-font-name = "Latin Modern Sans 11" -gtk-theme-name = "CleanIce-Marble" -gtk-key-theme-name = "Emacs" diff --git a/meta/.mailcap b/meta/.mailcap deleted file mode 100644 index 6cca665..0000000 --- a/meta/.mailcap +++ /dev/null @@ -1,69 +0,0 @@ -# Example mailcap file for Reddit Terminal Viewer -# https://github.com/michael-lazar/rtv/ -# -# Copy the contents of this file to {HOME}/.mailcap, or point to using $MAILCAPS -# Then launch RTV using the --enable-media flag. All shell commands defined in -# this file depend on external programs that must be installed on your system. -# -# HELP REQUESTED! If you come up with your own commands (especially for OS X) -# and would like to share, please post an issue on the GitHub tracker and we -# can get them added to this file as references. -# -# -# Mailcap 101 -# - The first entry with a matching MIME type will be executed, * is a wildcard -# - %s will be replaced with the image or video url -# - Add ``test=test -n "$DISPLAY"`` if your command opens a new window -# - Add ``needsterminal`` for commands that use the terminal -# - Add ``copiousoutput`` for commands that dump text to stdout - -############################################################################### -# Commands below this point will open media in a separate window without -# pausing execution of RTV. -############################################################################### - -# Feh is a simple and effective image viewer -# Note that rtv returns a list of urls for imgur albums, so we don't put quotes -# around the `%s` -image/x-imgur-album; feh %s; test=test -n "$DISPLAY" -image/gif; mpv '%s' --loop=inf; test=test -n "$DISPLAY" -image/*; feh '%s'; test=test -n "$DISPLAY" - -# Youtube videos are assigned a custom mime-type, which can be streamed with -# vlc or youtube-dl. -video/x-youtube; mpv '%s'; test=test -n "$DISPLAY" - -# Mpv is a simple and effective video streamer -video/*; mpv '%s' --loop=inf; test=test -n "$DISPLAY" - -############################################################################### -# Commands below this point will attempt to display media directly in the -# terminal when X is not available. -############################################################################### - -# View images directly in your terminal with iTerm2 -# curl -L https://iterm2.com/misc/install_shell_integration_and_utilities.sh | bash -# image/*; curl -s %s | ~/.iterm2/imgcat && read -n 1; needsterminal - -# View true images in the terminal, supported by rxvt-unicode, xterm and st -# Requires the w3m-img package -image/*; w3m -o 'ext_image_viewer=off' '%s'; needsterminal - -# Don't have a solution for albums yet -image/x-imgur-album; echo - -# 256 color images using half-width unicode characters -# Much higher quality that img2txt, but must be built from source -# https://github.com/rossy/img2xterm -#image/*; curl -s '%s' | convert -resize 80x80 - jpg:/tmp/rtv.jpg && img2xterm /tmp/rtv.jpg; needsterminal; copiousoutput - -# Display images in classic ascii using img2txt and lib-caca -image/*; curl -s '%s' | convert - jpg:/tmp/rtv.jpg && img2txt -f utf8 /tmp/rtv.jpg; needsterminal; copiousoutput - -# Full motion videos - requires a framebuffer to view -video/x-youtube; mpv -vo drm -quiet '%s'; needsterminal -video/*; mpv -vo drm -quiet '%s'; needsterminal - -# Ascii videos -# video/x-youtube; youtube-dl -q -o - '%s' | mplayer -cache 8192 -vo caca -quiet -; needsterminal -# video/*; wget '%s' -O - | mplayer -cache 8192 -vo caca -quiet -; needsterminal diff --git a/meta/.profile b/meta/.profile deleted file mode 100644 index 6c8b86e..0000000 --- a/meta/.profile +++ /dev/null @@ -1,27 +0,0 @@ -# ~/.profile: executed by the command interpreter for login shells. -# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login -# exists. -# see /usr/share/doc/bash/examples/startup-files for examples. -# the files are located in the bash-doc package. - -# the default umask is set in /etc/profile; for setting the umask -# for ssh logins, install and configure the libpam-umask package. -#umask 022 - -export GOPATH="$HOME/.local/share/go" -export PATH="$HOME/.local/bin:$GOPATH/bin:$HOME/.cargo/bin:$HOME/.luarocks/bin:$PATH" -export MANPATH="$HOME/.local/share/man:$MANPATH" -export XMODIFIERS=@im=ibus -#export WEBKIT_DISABLE_COMPOSITING_MODE=1 -export NLTK_DATA="$HOME/Sources/nlp/nltk_data" - -# if running bash -if [ -n "$BASH_VERSION" ]; then - # include .bashrc if it exists - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" - fi -fi - -# OPAM configuration -. /home/cnx/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true diff --git a/meta/.screenlayout/dual.sh b/meta/.screenlayout/dual.sh deleted file mode 100755 index e141199..0000000 --- a/meta/.screenlayout/dual.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -xrandr --output HDMI2 --off --output HDMI1 --off --output DP1 --primary --mode 1600x900 --pos 1920x0 --rotate normal --output eDP1 --mode 1920x1080 --pos 0x0 --rotate normal --output VIRTUAL1 --off diff --git a/meta/.screenlayout/single.sh b/meta/.screenlayout/single.sh deleted file mode 100755 index aede90f..0000000 --- a/meta/.screenlayout/single.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -xrandr --output DP1 --off --output HDMI1 --off --output eDP1 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI2 --off diff --git a/meta/.xinitrc b/meta/.xinitrc deleted file mode 100644 index 598bd05..0000000 --- a/meta/.xinitrc +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -xrdb -merge ~/.Xresources -xrandr --output DP1 --mode 1600x900 --primary --right-of eDP1 -redshift-gtk -l 21.028333:105.854167 & -mate-power-manager & -ibus-daemon -drx -blueman-applet & -nm-applet & -keynav & -diodon & -exec awesome diff --git a/screenshot.png b/screenshot.png deleted file mode 100644 index 4e5cd16..0000000 Binary files a/screenshot.png and /dev/null differ diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index fc2b0ef..e93cb2b 100755 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc @@ -10,7 +10,7 @@ if has("patch-7.4.710") set list listchars+=space:·,tab:\ \ endif set tabstop=8 expandtab shiftwidth=2 softtabstop=-1 smarttab -set dictionary=/usr/share/dict/words +set ignorecase infercase dictionary=/usr/share/dict/words set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1 set omnifunc=syntaxcomplete#Complete set diffopt+=algorithm:patience -- cgit 1.4.1