various updates
This commit is contained in:
parent
e7a4d6c855
commit
6f11901655
|
@ -30,6 +30,7 @@ pacaur -S \
|
||||||
pass \
|
pass \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
avr-libc avr-gcc dfu-programmer dfu-util \
|
avr-libc avr-gcc dfu-programmer dfu-util \
|
||||||
|
reptyr \
|
||||||
--noconfirm --noedit
|
--noconfirm --noedit
|
||||||
|
|
||||||
sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome
|
sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
sudo pacman -S xorg-xinit xorg-server xorg-xrdb --noconfirm
|
sudo pacman -S xorg-xinit xorg-server xorg-xrdb --noconfirm
|
||||||
|
pacaur -S gtk-theme-arc gtk-engine-murrine --noconfirm
|
||||||
|
|
||||||
|
|
|
@ -6,22 +6,27 @@ source "$DIR/variables.bash"
|
||||||
mkdir -p "$DOTFILES_PATH/colors/gen/vendor"
|
mkdir -p "$DOTFILES_PATH/colors/gen/vendor"
|
||||||
|
|
||||||
B16_DIR="$DOTFILES_PATH/colors/gen/vendor/base16-builder"
|
B16_DIR="$DOTFILES_PATH/colors/gen/vendor/base16-builder"
|
||||||
|
COLORS_PATH="$B16_DIR/output"
|
||||||
|
|
||||||
if [ -d "$B16_DIR" ]; then
|
if [ -d "$B16_DIR" ]; then
|
||||||
echo "Skipping repo pull down..."
|
echo "Skipping repo pull down..."
|
||||||
|
rm -rf "$COLORS_PATH"
|
||||||
|
mkdir -p "$COLORS_PATH"
|
||||||
else
|
else
|
||||||
git clone https://github.com/lytedev/base16-builder.git "$DOTFILES_PATH/colors/gen/vendor/base16-builder"
|
git clone https://github.com/lytedev/base16-builder.git "$DOTFILES_PATH/colors/gen/vendor/base16-builder"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$DOTFILES_PATH/colors/gen/schemes"
|
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t vim -s "$DOTFILES_PATH/colors/gen/schemes/donokai.yml"
|
||||||
cp * "$DOTFILES_PATH/colors/gen/vendor/base16-builder/schemes"
|
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t xresources -s "$DOTFILES_PATH/colors/gen/schemes/donokai.yml"
|
||||||
cd -
|
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t shell -s "$DOTFILES_PATH/colors/gen/schemes/donokai.yml"
|
||||||
|
|
||||||
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t vim
|
|
||||||
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t xresources
|
|
||||||
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t shell
|
|
||||||
|
|
||||||
COLORS_PATH=$DOTFILES_PATH/colors/gen/vendor/base16-builder/output
|
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-donokai.dark.xresources" "$DOTFILES_PATH/colors/xresources"
|
cp "$COLORS_PATH/xresources/base16-donokai.dark.xresources" "$DOTFILES_PATH/colors/xresources"
|
||||||
cp "$COLORS_PATH/vim/base16-donokai.vim" "$DOTFILES_PATH/colors/vim"
|
cp "$COLORS_PATH/vim/base16-donokai.vim" "$DOTFILES_PATH/colors/vim"
|
||||||
cp "$COLORS_PATH/shell/base16-donokai.dark.sh" "$DOTFILES_PATH/colors/shell"
|
cp "$COLORS_PATH/shell/base16-donokai.dark.sh" "$DOTFILES_PATH/colors/shell"
|
||||||
|
chmod +x "$DOTFILES_PATH/colors/shell"
|
||||||
|
|
||||||
|
|
19
colors/gen/schemes/exp-donokai.yml
Normal file
19
colors/gen/schemes/exp-donokai.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
scheme: "Donokai"
|
||||||
|
author: "Wimer Hazenberg (http://www.monokai.nl)"
|
||||||
|
base00: "111111"
|
||||||
|
base01: "383830"
|
||||||
|
base02: "49483e"
|
||||||
|
base03: "75715e"
|
||||||
|
base04: "a59f85"
|
||||||
|
base05: "f8f8f2"
|
||||||
|
base06: "f5f4f1"
|
||||||
|
base07: "f9f8f5"
|
||||||
|
base08: "00aaff"
|
||||||
|
base09: "00aaff"
|
||||||
|
base0A: "00aaff"
|
||||||
|
base0B: "00aaff"
|
||||||
|
base0C: "00aaff"
|
||||||
|
base0D: "00aaff"
|
||||||
|
base0E: "00aaff"
|
||||||
|
base0F: "00aaff"
|
||||||
|
|
0
colors/shell
Normal file → Executable file
0
colors/shell
Normal file → Executable file
44
scripts/reload_xresources.sh
Executable file
44
scripts/reload_xresources.sh
Executable file
|
@ -0,0 +1,44 @@
|
||||||
|
#!/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"
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ export DOTFILES_PATH=$HOME/.dotfiles
|
||||||
BASE16_SHELL="$DOTFILES_PATH/colors/shell"
|
BASE16_SHELL="$DOTFILES_PATH/colors/shell"
|
||||||
[[ -s "$BASE16_SHELL" ]] && source "$BASE16_SHELL"
|
[[ -s "$BASE16_SHELL" ]] && source "$BASE16_SHELL"
|
||||||
|
|
||||||
|
if [ -t 0 ]; then
|
||||||
# disable ctrl-s terminal freeze
|
# disable ctrl-s terminal freeze
|
||||||
[[ $- == *i* ]] && stty -ixon
|
[[ $- == *i* ]] && stty -ixon
|
||||||
|
|
||||||
|
@ -103,4 +104,4 @@ complete -cf man
|
||||||
if [ -a "$HOME/.bashrc_env" ]; then
|
if [ -a "$HOME/.bashrc_env" ]; then
|
||||||
. "$HOME/.bashrc_env"
|
. "$HOME/.bashrc_env"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
export DOTFILES_PATH="$HOME/.dotfiles"
|
export DOTFILES_PATH="$HOME/.dotfiles"
|
||||||
export REPOSITORY_PATH="$HOME/Documents/open-source"
|
export REPOSITORY_PATH="$HOME/Documents/open-source"
|
||||||
export WINDOW_GAP=0
|
export WINDOW_GAP=5
|
||||||
export BORDER_WIDTH=0
|
export BORDER_WIDTH=1
|
||||||
|
|
||||||
source "$DOTFILES_PATH/scripts/get_x_fonts.sh"
|
source "$DOTFILES_PATH/scripts/get_x_fonts.sh"
|
||||||
source "$DOTFILES_PATH/scripts/get_color.sh"
|
source "$DOTFILES_PATH/scripts/get_color.sh"
|
||||||
|
|
|
@ -64,7 +64,7 @@ Plug 'elixir-lang/vim-elixir', {'for': ['elixir']}
|
||||||
Plug 'wavded/vim-stylus', {'for': ['styl', 'stylus', 'vue']}
|
Plug 'wavded/vim-stylus', {'for': ['styl', 'stylus', 'vue']}
|
||||||
Plug 'rust-lang/rust.vim', {'for': ['rs', 'rust']}
|
Plug 'rust-lang/rust.vim', {'for': ['rs', 'rust']}
|
||||||
Plug 'plasticboy/vim-markdown', {'for': ['md', 'markdown']}
|
Plug 'plasticboy/vim-markdown', {'for': ['md', 'markdown']}
|
||||||
Plug 'digitaltoad/vim-jade', {'for': ['jade', 'vue']}
|
Plug 'digitaltoad/vim-jade', {'for': ['pug', 'jade', 'vue']}
|
||||||
Plug 'freitass/todo.txt-vim', {'for': ['todo']}
|
Plug 'freitass/todo.txt-vim', {'for': ['todo']}
|
||||||
Plug 'leafo/moonscript-vim', {'for': ['moon', 'moonscript']}
|
Plug 'leafo/moonscript-vim', {'for': ['moon', 'moonscript']}
|
||||||
Plug 'evidens/vim-twig'
|
Plug 'evidens/vim-twig'
|
||||||
|
|
|
@ -9,10 +9,10 @@ source "$DOTFILES_PATH/scripts/get_x_fonts.sh"
|
||||||
# bspc config active_border_color "#$(get_color 0D)"
|
# bspc config active_border_color "#$(get_color 0D)"
|
||||||
# bspc config presel_feedback_color "#$(get_color 0D)"
|
# bspc config presel_feedback_color "#$(get_color 0D)"
|
||||||
|
|
||||||
bspc config normal_border_color "#$(get_color 00)"
|
bspc config normal_border_color "#$(get_color 01)"
|
||||||
bspc config focused_border_color "#$(get_color 00)"
|
bspc config focused_border_color "#$(get_color 0D)"
|
||||||
bspc config active_border_color "#$(get_color 00)"
|
bspc config active_border_color "#$(get_color 0C)"
|
||||||
bspc config presel_feedback_color "#$(get_color 00)"
|
bspc config presel_feedback_color "#$(get_color 04)"
|
||||||
bspc config border_width "$BORDER_WIDTH"
|
bspc config border_width "$BORDER_WIDTH"
|
||||||
bspc config split_ratio 0.50
|
bspc config split_ratio 0.50
|
||||||
bspc config borderless_monocle true
|
bspc config borderless_monocle true
|
||||||
|
|
6
x/gtk2rc
6
x/gtk2rc
|
@ -1,3 +1,3 @@
|
||||||
gtk-icon-theme-name = "Adwaita"
|
gtk-icon-theme-name = "elementary"
|
||||||
gtk-theme-name = "Raleigh"
|
gtk-theme-name = "Arc-Dark"
|
||||||
gtk-font-name = "Monaco 9"
|
gtk-font-name = "Terminus 9"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-icon-theme-name = Adwaita
|
gtk-icon-theme-name = Adwaita
|
||||||
gtk-theme-name = Adwaita
|
gtk-theme-name = Arc-Dark
|
||||||
gtk-font-name = Monaco 9
|
gtk-font-name = Monaco 9
|
||||||
|
|
|
@ -6,12 +6,12 @@ source "$DIR/variables.bash"
|
||||||
mkdir -p "$HOME/.config/gtk-3.0"
|
mkdir -p "$HOME/.config/gtk-3.0"
|
||||||
rm -f "$HOME/.xinitrc"
|
rm -f "$HOME/.xinitrc"
|
||||||
rm -f "$HOME/.Xresources"
|
rm -f "$HOME/.Xresources"
|
||||||
rm -f "$HOME/.config/gtkrc-2.0"
|
rm -f "$HOME/.gtkrc-2.0"
|
||||||
rm -f "$HOME/.config/gtk-3.0/settings.ini"
|
rm -f "$HOME/.config/gtk-3.0/settings.ini"
|
||||||
ln -s "$DOTFILES_PATH/x/xinitrc" "$HOME/.xinitrc"
|
ln -s "$DOTFILES_PATH/x/xinitrc" "$HOME/.xinitrc"
|
||||||
ln -s "$DOTFILES_PATH/x/xresources" "$HOME/.Xresources"
|
ln -s "$DOTFILES_PATH/x/xresources" "$HOME/.Xresources"
|
||||||
ln -s "$DOTFILES_PATH/x/gtk3settings.ini" "$HOME/.config/gtk-3.0/settings.ini"
|
ln -s "$DOTFILES_PATH/x/gtk3settings.ini" "$HOME/.config/gtk-3.0/settings.ini"
|
||||||
ln -s "$DOTFILES_PATH/x/gtk2rc" "$HOME/.config/gtkrc-2.0"
|
ln -s "$DOTFILES_PATH/x/gtk2rc" "$HOME/.gtkrc-2.0"
|
||||||
|
|
||||||
sudo mkdir -p /root/.gtk-3.0/
|
sudo mkdir -p /root/.gtk-3.0/
|
||||||
sudo mkdir -p /root/.config/gtk-3.0/
|
sudo mkdir -p /root/.config/gtk-3.0/
|
||||||
|
@ -22,5 +22,8 @@ sudo ln -s "$DOTFILES_PATH/x/gtk2rc" "/root/.gtkrc-2.0"
|
||||||
sudo ln -s "$DOTFILES_PATH/x/gtk3settings.ini" "/root/.gtk-3.0/settings.ini"
|
sudo ln -s "$DOTFILES_PATH/x/gtk3settings.ini" "/root/.gtk-3.0/settings.ini"
|
||||||
sudo ln -s "$DOTFILES_PATH/x/gtk3settings.ini" "/root/.config/gtk-3.0/settings.ini"
|
sudo ln -s "$DOTFILES_PATH/x/gtk3settings.ini" "/root/.config/gtk-3.0/settings.ini"
|
||||||
|
|
||||||
|
sudo rm -f "/etc/udev/rules.d/90-usb-device-plugin.rules"
|
||||||
|
sudo ln -s "$DOTFILES_PATH/x/udev_rules/90-usb-device-plugin.rules" "/etc/udev/rules.d/90-usb-device-plugin.rules"
|
||||||
|
|
||||||
source "$DOTFILES_PATH/x/xloadresources"
|
source "$DOTFILES_PATH/x/xloadresources"
|
||||||
|
|
||||||
|
|
1
x/udev_rules/90-usb-device-plugin.rules
Normal file
1
x/udev_rules/90-usb-device-plugin.rules
Normal file
|
@ -0,0 +1 @@
|
||||||
|
TTRS{idVendor}=="152d", ATTRS{idProduct}=="2329", RUN+="xset r rate 300 80"
|
|
@ -24,3 +24,6 @@ URxvt.internalBorder: 5
|
||||||
|
|
||||||
Xcursor.theme: human
|
Xcursor.theme: human
|
||||||
|
|
||||||
|
URxvt.perl-ext-common: default,matcher
|
||||||
|
URxvt.url-launcher: /usr/bin/xdg-open
|
||||||
|
URxvt.matcher.button: 1
|
||||||
|
|
Reference in a new issue