From 772edd9c3a629f3630f0a5a061910388b9addbe8 Mon Sep 17 00:00:00 2001 From: rydesun Date: Sat, 29 Feb 2020 17:03:03 +0800 Subject: [PATCH] Init --- .config/X11/Xresources | 1 - .config/X11/xinitrc | 39 --- .config/X11/xserverrc | 2 - .config/alacritty/alacritty.yml | 35 --- .config/aria2/aria2.conf | 13 - .config/efm-langserver/config.yaml | 10 - .../conf.d/09-autohint-if-no-hinting.conf | 1 - .../fontconfig/conf.d/10-sub-pixel-rgb.conf | 1 - .../conf.d/11-lcdfilter-default.conf | 1 - .config/fontconfig/conf.d/70-no-bitmaps.conf | 1 - .config/fontconfig/fonts.conf | 257 ------------------ .config/pikaur.conf | 41 --- .config/user-dirs.conf | 1 - .config/user-dirs.dirs | 15 - .config/user-dirs.locale | 1 - .config/zsh/.zprofile | 3 - .../firefox/profile/chrome/userChrome.css | 57 ---- .pam_environment | 73 ----- .zshenv | 69 +++++ 19 files changed, 69 insertions(+), 552 deletions(-) delete mode 100644 .config/X11/Xresources delete mode 100644 .config/X11/xinitrc delete mode 100644 .config/X11/xserverrc delete mode 100644 .config/alacritty/alacritty.yml delete mode 100644 .config/aria2/aria2.conf delete mode 100644 .config/efm-langserver/config.yaml delete mode 120000 .config/fontconfig/conf.d/09-autohint-if-no-hinting.conf delete mode 120000 .config/fontconfig/conf.d/10-sub-pixel-rgb.conf delete mode 120000 .config/fontconfig/conf.d/11-lcdfilter-default.conf delete mode 120000 .config/fontconfig/conf.d/70-no-bitmaps.conf delete mode 100644 .config/fontconfig/fonts.conf delete mode 100644 .config/pikaur.conf delete mode 100644 .config/user-dirs.conf delete mode 100644 .config/user-dirs.dirs delete mode 100644 .config/user-dirs.locale delete mode 100644 .config/zsh/.zprofile delete mode 100644 .mozilla/firefox/profile/chrome/userChrome.css delete mode 100644 .pam_environment create mode 100644 .zshenv diff --git a/.config/X11/Xresources b/.config/X11/Xresources deleted file mode 100644 index eb657b5..0000000 --- a/.config/X11/Xresources +++ /dev/null @@ -1 +0,0 @@ -Xft.dpi: 115 diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc deleted file mode 100644 index 9ea4f53..0000000 --- a/.config/X11/xinitrc +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -# ==== DO NOT edit this section ==== -userresources=${XDG_CONFIG_HOME}/X11/Xresources -usermodmap=${XDG_CONFIG_HOME}/X11/Xmodmap -sysresources=/etc/X11/xinit/.Xresources -sysmodmap=/etc/X11/xinit/.Xmodmap -if [ -f $sysresources ]; then xrdb -merge $sysresources; fi -if [ -f $sysmodmap ]; then xmodmap $sysmodmap; fi -if [ -f "$userresources" ]; then xrdb -merge "$userresources"; fi -if [ -f "$usermodmap" ]; then xmodmap "$usermodmap"; 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 -# ================================== - -export LANG=zh_CN.UTF-8 -export GTK_IM_MODULE=fcitx -export QT_IM_MODULE=fcitx -export XMODIFIERS=@im=fcitx -export QT_QPA_PLATFORMTHEME=qt5ct - -export BROWSER=firefox - -# swap Caps_Lock and Escape -setxkbmap -option caps:swapescape -# swap Ctrl_R and Alt_R -setxkbmap -option ctrl:rctrl_ralt -setxkbmap -option ctrl:ralt_rctrl - -# Use NVIDIA graphics only -# https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Use_NVIDIA_graphics_only -xrandr --setprovideroutputsource modesetting NVIDIA-0 -xrandr --auto -export VDPAU_DRIVER=nvidia - -exec qtile diff --git a/.config/X11/xserverrc b/.config/X11/xserverrc deleted file mode 100644 index b4de252..0000000 --- a/.config/X11/xserverrc +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec /usr/bin/X -nolisten tcp "$@" diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml deleted file mode 100644 index 086a26e..0000000 --- a/.config/alacritty/alacritty.yml +++ /dev/null @@ -1,35 +0,0 @@ -env: - LANG: en_US.UTF-8 -window: - class: - instance: Terminal Emulator -font: - size: 12 -# colorscheme: Material -colors: - # Default colors - primary: - background: '0x263238' - foreground: '0xeceff1' - # Normal colors - normal: - black: '0x263238' - red: '0xff9800' - green: '0x8bc34a' - yellow: '0xffc107' - blue: '0x03a9f4' - magenta: '0xe91e63' - cyan: '0x009688' - white: '0xcfd8dc' - # Bright colors - bright: - black: '0x37474f' - red: '0xffa74d' - green: '0x9ccc65' - yellow: '0xffa000' - blue: '0x81d4fa' - magenta: '0xad1457' - cyan: '0x26a69a' - white: '0xeceff1' -selection: - save_to_clipboard: false diff --git a/.config/aria2/aria2.conf b/.config/aria2/aria2.conf deleted file mode 100644 index 860d659..0000000 --- a/.config/aria2/aria2.conf +++ /dev/null @@ -1,13 +0,0 @@ -continue -dir=/home/rydesun/Userdata/Downloads -file-allocation=falloc -log-level=warn -enable-http-pipelining=true -max-connection-per-server=5 -min-split-size=5M -summary-interval=0 - -# BT -max-overall-upload-limit=512K -max-upload-limit=128K -bt-seed-unverified=true diff --git a/.config/efm-langserver/config.yaml b/.config/efm-langserver/config.yaml deleted file mode 100644 index 5166167..0000000 --- a/.config/efm-langserver/config.yaml +++ /dev/null @@ -1,10 +0,0 @@ -languages: - vim: - lint-command: 'vint -' - lint-stdin: true - - markdown: - lint-command: 'markdownlint -s' - lint-stdin: true - lint-formats: - - '%f: %l: %m' diff --git a/.config/fontconfig/conf.d/09-autohint-if-no-hinting.conf b/.config/fontconfig/conf.d/09-autohint-if-no-hinting.conf deleted file mode 120000 index e9a60a4..0000000 --- a/.config/fontconfig/conf.d/09-autohint-if-no-hinting.conf +++ /dev/null @@ -1 +0,0 @@ -/etc/fonts/conf.avail/09-autohint-if-no-hinting.conf \ No newline at end of file diff --git a/.config/fontconfig/conf.d/10-sub-pixel-rgb.conf b/.config/fontconfig/conf.d/10-sub-pixel-rgb.conf deleted file mode 120000 index c90d3b7..0000000 --- a/.config/fontconfig/conf.d/10-sub-pixel-rgb.conf +++ /dev/null @@ -1 +0,0 @@ -/etc/fonts/conf.avail/10-sub-pixel-rgb.conf \ No newline at end of file diff --git a/.config/fontconfig/conf.d/11-lcdfilter-default.conf b/.config/fontconfig/conf.d/11-lcdfilter-default.conf deleted file mode 120000 index 07413bc..0000000 --- a/.config/fontconfig/conf.d/11-lcdfilter-default.conf +++ /dev/null @@ -1 +0,0 @@ -/etc/fonts/conf.avail/11-lcdfilter-default.conf \ No newline at end of file diff --git a/.config/fontconfig/conf.d/70-no-bitmaps.conf b/.config/fontconfig/conf.d/70-no-bitmaps.conf deleted file mode 120000 index d6c7fc1..0000000 --- a/.config/fontconfig/conf.d/70-no-bitmaps.conf +++ /dev/null @@ -1 +0,0 @@ -/etc/fonts/conf.avail/70-no-bitmaps.conf \ No newline at end of file diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf deleted file mode 100644 index 1e0365a..0000000 --- a/.config/fontconfig/fonts.conf +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - - - false - - - - - - - - DejaVu Sans - - - DejaVu Serif - - - DejaVu Sans Mono - - - - - - - /usr/share/fonts/adobe-source-code-pro/* - - - - - - /usr/share/fonts/wps-office/* - - - - - - Microsoft Yahei - - Noto Sans CJK SC - - - - SimSun - - Noto Serif CJK SC - - - - SimSun-18030 - - Noto Serif CJK SC - - - - Source Code Pro - - Iosevka Term SS04 - - - - - - - zh - sans-serif - - Noto Sans CJK SC - - - - zh - serif - - Noto Serif CJK SC - - - - zh - monospace - - Iosevka Term SS04 - Noto Sans Mono CJK SC - - - - - zh-HK - sans-serif - - Noto Sans CJK HK - - - - zh-HK - serif - - Noto Serif CJK HK - - - - zh-HK - monospace - - Iosevka Term SS04 - Noto Sans Mono CJK HK - - - - - zh-TW - sans-serif - - Noto Sans CJK TC - - - - zh-TW - serif - - Noto Serif CJK TC - - - - zh-TW - monospace - - Iosevka Term SS04 - Noto Sans Mono CJK TC - - - - - ja - sans-serif - - Noto Sans CJK JP - - - - ja - serif - - Noto Serif CJK JP - - - - ja - monospace - - Iosevka Term SS04 - Noto Sans Mono CJK JP - - - - - ko - sans-serif - - Noto Sans CJK KR - - - - ko - serif - - Noto Serif CJK KR - - - - ko - monospace - - Iosevka Term SS04 - Noto Sans Mono CJK KR - - - - - - - sans-serif - - - Noto Sans CJK SC - Noto Sans - Emoji - - - - - - serif - - - Noto Serif CJK SC - Noto Serif - Emoji - - - - - - monospace - - - Iosevka Term SS04 - Noto Sans Mono CJK SC - Emoji - - - - - - - Emoji - - - Noto Sans - Font Awesome 5 Brands - Font Awesome 5 Free - Twitter Color Emoji - Symbols Nerd Font - - - - - - Symbola - - - Emoji - - - - - EmojiSymbols - - - Emoji - - - - - - regular - medium - - - Firefox - 400 - - - diff --git a/.config/pikaur.conf b/.config/pikaur.conf deleted file mode 100644 index e65aebf..0000000 --- a/.config/pikaur.conf +++ /dev/null @@ -1,41 +0,0 @@ -[sync] -develpkgsexpiration = 10 -alwaysshowpkgorigin = yes -upgradesorting = versiondiff -showdownloadsize = yes -ignoreoutofdateaurupgrades = no - -[build] -keepbuilddir = yes -keepdevbuilddir = yes -keepbuilddeps = no -skipfailedbuild = no -alwaysusedynamicusers = no - -[colors] -version = 10 -versiondiffold = 11 -versiondiffnew = 9 - -[ui] -requireenterconfirm = yes -printcommands = no -reversesearchsorting = yes - -[misc] -sudoloopinterval = 59 -pacmanpath = pacman -privilegeescalationtool = sudo - -[network] -aururl = https://aur.tuna.tsinghua.edu.cn -newsurl = https://www.archlinux.org/feeds/news/ -socks5proxy = - -[review] -donteditbydefault = no -noedit = no -nodiff = no -gitdiffargs = --ignore-space-change,--ignore-all-space -diffpager = auto - diff --git a/.config/user-dirs.conf b/.config/user-dirs.conf deleted file mode 100644 index f184210..0000000 --- a/.config/user-dirs.conf +++ /dev/null @@ -1 +0,0 @@ -enabled=False diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs deleted file mode 100644 index eacd7d8..0000000 --- a/.config/user-dirs.dirs +++ /dev/null @@ -1,15 +0,0 @@ -# This file is written by xdg-user-dirs-update -# If you want to change or add directories, just edit the line you're -# interested in. All local changes will be retained on the next run. -# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped -# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an -# absolute path. No other format is supported. -# -XDG_DESKTOP_DIR="$HOME/Userdata/Desktop" -XDG_DOWNLOAD_DIR="$HOME/Userdata/Downloads" -XDG_TEMPLATES_DIR="$HOME/Userdata/Templates" -XDG_PUBLICSHARE_DIR="$HOME/Userdata/Public" -XDG_DOCUMENTS_DIR="$HOME/Userdata/Documents" -XDG_MUSIC_DIR="$HOME/Userdata/Music" -XDG_PICTURES_DIR="$HOME/Userdata/Pictures" -XDG_VIDEOS_DIR="$HOME/Userdata/Videos" diff --git a/.config/user-dirs.locale b/.config/user-dirs.locale deleted file mode 100644 index 96d80cd..0000000 --- a/.config/user-dirs.locale +++ /dev/null @@ -1 +0,0 @@ -C \ No newline at end of file diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile deleted file mode 100644 index 670e587..0000000 --- a/.config/zsh/.zprofile +++ /dev/null @@ -1,3 +0,0 @@ -if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then - xinit -- vt$XDG_VTNR -fi diff --git a/.mozilla/firefox/profile/chrome/userChrome.css b/.mozilla/firefox/profile/chrome/userChrome.css deleted file mode 100644 index f958525..0000000 --- a/.mozilla/firefox/profile/chrome/userChrome.css +++ /dev/null @@ -1,57 +0,0 @@ -:root { - --frame-background-color: #445; -} - -*|*:root:-moz-lwtheme { - --toolbar-bgcolor: #e4e5e7 !important; - --tab-line-color: #f0b0ff !important; - --lwt-toolbar-field-background-color: #e4e5e7 !important; - --lwt-toolbar-field-border-color: #e4e5e7 !important; -} - -/* 隐藏标签栏 */ -#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items { - opacity: 0; - pointer-events: none; -} -#main-window:not([tabsintitlebar="true"]) #TabsToolbar { - visibility: collapse !important; -} - -/* 暗色侧边栏 */ -#sidebar-header { - -moz-appearance: none !important; - background-color: var(--frame-background-color) !important; - color: #fff !important; - border-bottom: 1px solid #223 !important -} -#sidebar-search-container, #sidebar, .sidebar-placesTree { - -moz-appearance: none !important; - background-color: var(--frame-background-color) !important; - color: #ddd !important; -} -treechildren::-moz-tree-separator { - border-color: #333 !important -} -#sidebar-splitter { - border: 0px !important; - background-color: var(--frame-background-color) !important; -} - -/* 全屏时自动隐藏侧边栏 */ -#main-window[inFullscreen] #sidebar-box, -#main-window[inFullscreen] #sidebar-splitter { - display: none !important; - width: 0px !important; -} - -/**** 树状标签栏 ****/ -/* 隐藏头部 */ -#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { - display: none; -} - -/* 弹出的工具栏去除半透明阴影, 防止与picom阴影效果重复 */ -box.panel-arrowcontent { - margin: 0px !important; -} diff --git a/.pam_environment b/.pam_environment deleted file mode 100644 index 865caeb..0000000 --- a/.pam_environment +++ /dev/null @@ -1,73 +0,0 @@ -# default -EDITOR DEFAULT=nvim -BROWSER DEFAULT=firefox -MANPAGER DEFAULT="nvim -c 'set ft=man' -" - -# xdg base directory -XDG_CONFIG_HOME DEFAULT=@{HOME}.config -XDG_CACHE_HOME DEFAULT=@{HOME}.cache -XDG_DATA_HOME DEFAULT=@{HOME}.data - -# gtk2 -GTK2_RC_FILES DEFAULT=${XDG_CONFIG_HOME}/gtk-2.0/gtkrc - -# readline -INPUTRC DEFAULT=${XDG_CONFIG_HOME}/readline/inputrc - -# xorg-xauth -XAUTHORITY DEFAULT=${XDG_RUNTIME_DIR}/Xauthority - -# xinit -XINITRC DEFAULT=${XDG_CONFIG_HOME}/X11/xinitrc -XSERVERRC DEFAULT=${XDG_CONFIG_HOME}/X11/xserverrc - -# less -LESSKEY DEFAULT=${XDG_CONFIG_HOME}/less/lesskey -LESSHISTFILE DEFAULT=${XDG_DATA_HOME}/less/history - -# wget -WGETRC DEFAULT=${XDG_CONFIG_HOME}/wget/wgetrc - -# zsh -ZDOTDIR DEFAULT=${XDG_CONFIG_HOME}/zsh -HISTFILE DEFAULT=${XDG_DATA_HOME}/zsh/history - -# openssl -RANDFILE DEFAULT=${XDG_DATA_HOME}/openssl/randfile - -# wine -WINEPREFIX DEFAULT=${XDG_DATA_HOME}/wine - -# golang -GO111MODULE DEFAULT=on -GOPROXY DEFAULT=https://goproxy.cn,direct -GOCACHE DEFAULT=${XDG_CACHE_HOME}/go -GOPATH DEFAULT=${GOCACHE} -GOBIN DEFAULT=@{HOME}bin/go - -# python -PYTHONSTARTUP DEFAULT=${XDG_CONFIG_HOME}/python/repl_startup.py -PYTHONPYCACHEPREFIX DEFAULT=@{HOME}.cache/python -PYTHONUSERBASE DEFAULT=@{HOME}.packages/python -# ipython -IPYTHONDIR DEFAULT=${XDG_CONFIG_HOME}/jupyter -JUPYTER_CONFIG_DIR DEFAULT=${XDG_CONFIG_HOME}/jupyter -# pylint -PYLINTHOME DEFAULT=${XDG_CACHE_HOME}/pylint -# mypy -MYPY_CACHE_DIR DEFAULT=${XDG_CACHE_HOME}/mypy - -# npm -NPM_CONFIG_USERCONFIG DEFAULT=${XDG_CONFIG_HOME}/npm/npmrc - -# ruby bundler -BUNDLE_USER_CONFIG DEFAULT=${XDG_CONFIG_HOME}/bundle -BUNDLE_USER_CACHE DEFAULT=${XDG_CACHE_HOME}/bundle -BUNDLE_USER_PLUGIN DEFAULT=${XDG_DATA_HOME}/bundle - -# docker -DOCKER_CONFIG DEFAULT=${XDG_CONFIG_HOME}/docker - -# PATH -PATH DEFAULT=@{HOME}bin:${GOBIN}:${PYTHONUSERBASE}/bin:@{HOME}.packages/node_modules/.bin\ -:/usr/bin:/usr/local/bin diff --git a/.zshenv b/.zshenv new file mode 100644 index 0000000..614874b --- /dev/null +++ b/.zshenv @@ -0,0 +1,69 @@ +# default +export EDITOR=nvim +export BROWSER=firefox +export MANPAGER="nvim -c 'set ft=man' -" + +# xdg base directory +export XDG_CONFIG_HOME=${HOME}/.config +export XDG_CACHE_HOME=${HOME}/.cache +export XDG_DATA_HOME=${HOME}/.data + +# readline +export INPUTRC=${XDG_CONFIG_HOME}/readline/inputrc + +# xorg-xauth +export XAUTHORITY=${XDG_RUNTIME_DIR}/Xauthority + +# xinit +export XINITRC=${XDG_CONFIG_HOME}/X11/xinitrc +export XSERVERRC=${XDG_CONFIG_HOME}/X11/xserverrc + +# less +export LESSKEY=${XDG_CONFIG_HOME}/less/lesskey +export LESSHISTFILE=${XDG_DATA_HOME}/less/history + +# wget +export WGETRC=${XDG_CONFIG_HOME}/wget/wgetrc + +# zsh +export ZDOTDIR=${XDG_CONFIG_HOME}/zsh +export HISTFILE=${XDG_DATA_HOME}/zsh/history + +# openssl +export RANDFILE=${XDG_DATA_HOME}/openssl/randfile + +# wine +export WINEPREFIX=${XDG_DATA_HOME}/wine + +# golang +export GO111MODULE=on +export GOPROXY=https://goproxy.cn,direct +export GOCACHE=${XDG_CACHE_HOME}/go +export GOPATH=${GOCACHE} +export GOBIN=${HOME}/bin/go + +# python +export PYTHONSTARTUP=${XDG_CONFIG_HOME}/python/repl_startup.py +export PYTHONPYCACHEPREFIX=${HOME}/.cache/python +export PYTHONUSERBASE=${HOME}/.packages/python +# ipython +export IPYTHONDIR=${XDG_CONFIG_HOME}/jupyter +export JUPYTER_CONFIG_DIR=${XDG_CONFIG_HOME}/jupyter +# pylint +export PYLINTHOME=${XDG_CACHE_HOME}/pylint +# mypy +export MYPY_CACHE_DIR=${XDG_CACHE_HOME}/mypy + +# npm +export NPM_CONFIG_USERCONFIG=${XDG_CONFIG_HOME}/npm/npmrc + +# ruby bundler +export BUNDLE_USER_CONFIG=${XDG_CONFIG_HOME}/bundle +export BUNDLE_USER_CACHE=${XDG_CACHE_HOME}/bundle +export BUNDLE_USER_PLUGIN=${XDG_DATA_HOME}/bundle + +# docker +export DOCKER_CONFIG=${XDG_CONFIG_HOME}/docker + +# PATH +export PATH=${HOME}/bin:${GOBIN}:${PYTHONUSERBASE}/bin:${HOME}/.packages/node_modules/.bin:${PATH}