aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2019-10-06 22:10:36 +0500
committerAnton Bobov <abobov@gmail.com>2019-10-06 22:11:43 +0500
commit4962e6c7fc445ee94e0669c7df595579a60518fc (patch)
tree24f8d1c408b78c6196f77113432de0cc4104595c
parent20f920203a4334b6e88b988932d79d5fb6a4e476 (diff)
Updates
-rw-r--r--files/.config/devilspie2/devilspie2.lua17
-rw-r--r--files/.mpv/input.conf8
-rw-r--r--files/.mpv/mpv.conf1
-rw-r--r--files/.vim/templates/=template=.tex6
-rw-r--r--files/.vimrc6
-rw-r--r--files/.zsh/rc/S50_aliases2
m---------files/bin0
-rwxr-xr-xinstall.sh8
8 files changed, 35 insertions, 13 deletions
diff --git a/files/.config/devilspie2/devilspie2.lua b/files/.config/devilspie2/devilspie2.lua
index 2a88a16..611c39b 100644
--- a/files/.config/devilspie2/devilspie2.lua
+++ b/files/.config/devilspie2/devilspie2.lua
@@ -1,16 +1,23 @@
debug_print("Application: " .. get_application_name() ..
", window: " .. get_window_name() ..
- ", window type: " .. get_window_type());
+ ", window type: " .. get_window_type() ..
+ ", window class: " .. get_window_class());
if (get_window_type() == 'WINDOW_TYPE_NORMAL') then
- if (string.find(get_application_name(), 'IntelliJ IDEA')) then
- set_window_workspace(2);
- maximize();
- elseif (get_application_name() == 'Document Viewer') then
+ if (get_application_name() == 'Document Viewer') then
maximize();
elseif (get_application_name() == 'mpv') then
center();
elseif (get_window_name() == 'gitk') then
maximize();
+ elseif (get_window_name() == 'win0') then
+ -- IntelliJ IDEA starting window
+ set_window_workspace(2);
+ elseif (get_window_class() == 'jetbrains-idea') then
+ set_window_workspace(2);
+ maximize();
+ elseif (get_window_class() == 'jetbrains-datagrip') then
+ set_window_workspace(2);
+ maximize();
end
end
diff --git a/files/.mpv/input.conf b/files/.mpv/input.conf
index b11162d..ce4f3e7 100644
--- a/files/.mpv/input.conf
+++ b/files/.mpv/input.conf
@@ -1,4 +1,4 @@
-# Rotate by 90 degrees clockwise
-Alt+RIGHT no-osd vf add rotate=90
-# Rotate by 90 degrees counterclockwise
-Alt+LEFT no-osd vf add rotate=270
+## Rotate by 90 degrees clockwise
+#Alt+RIGHT no-osd vf add rotate=90
+## Rotate by 90 degrees counterclockwise
+#Alt+LEFT no-osd vf add rotate=270
diff --git a/files/.mpv/mpv.conf b/files/.mpv/mpv.conf
index a48d033..43a9c8c 100644
--- a/files/.mpv/mpv.conf
+++ b/files/.mpv/mpv.conf
@@ -4,3 +4,4 @@ save-position-on-quit
no-terminal
screenshot-template=mpv-shot-%F-%{media-title}-%p-%n
screenshot-directory=~/mpv-screenshots
+ytdl-format=best[height<=1080]
diff --git a/files/.vim/templates/=template=.tex b/files/.vim/templates/=template=.tex
index 3afb4af..23fa84f 100644
--- a/files/.vim/templates/=template=.tex
+++ b/files/.vim/templates/=template=.tex
@@ -2,11 +2,13 @@
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
-\usepackage[russian,english]{babel}
+\usepackage[russian]{babel}
+%\usepackage[english,russian]{babel}
\usepackage{hyperref}
%\usepackage[margin=1in]{geometry}
\usepackage{microtype}
\usepackage{titling}
+\renewcommand{\familydefault}{\sfdefault}
\title{%FILE%}
\author{Anton Bobov <anton@bobov.name>}
@@ -21,6 +23,6 @@
\begin{document}
\maketitle
-
+%HERE%
\end{document}
diff --git a/files/.vimrc b/files/.vimrc
index 58d878e..5e63f7d 100644
--- a/files/.vimrc
+++ b/files/.vimrc
@@ -59,6 +59,7 @@ Plugin 'https://github.com/aperezdc/vim-template'
Plugin 'https://github.com/arecarn/vim-crunch'
" Vim Tmux Navigator
Plugin 'christoomey/vim-tmux-navigator'
+Plugin 'lervag/vimtex'
" File types
@@ -593,6 +594,11 @@ let g:ctrlp_user_caching = 0
let g:ledger_align_at = 80
" }}}
+" vimtex {{{
+
+let g:tex_flavor = 'latex'
+
+" }}}
" }}}
" Load custom local config {{{
diff --git a/files/.zsh/rc/S50_aliases b/files/.zsh/rc/S50_aliases
index b57aa61..a3f5a25 100644
--- a/files/.zsh/rc/S50_aliases
+++ b/files/.zsh/rc/S50_aliases
@@ -125,7 +125,7 @@ elif $(which libreoffice >/dev/null) ; then
alias 2pdf='libreoffice --headless --convert-to pdf'
fi
-alias http='http --timeout=9999999'
+alias http='http --timeout=99999'
#[[ -s /etc/grc.zsh ]] && source /etc/grc.zsh
diff --git a/files/bin b/files/bin
-Subproject 45ff10897a19f2251bea5f222af13ffbe311dc9
+Subproject c01774dd7649009ed34f0e9adccc22ce908c2f4
diff --git a/install.sh b/install.sh
index f103090..e1eacae 100755
--- a/install.sh
+++ b/install.sh
@@ -47,7 +47,13 @@ check_command() {
}
check_fzf() {
- if [ ! -d $HOME/.fzf ] ; then
+ if [ -d $HOME/.fzf ] ; then
+ read -p "Update fzf? (y/n): "
+ if [ "y" == "$REPLY" ] ; then
+ cd $HOME/.fzf && git pull
+ $HOME/.fzf/install --all --no-update-rc
+ fi
+ else
read -p "Install fzf? (y/n): "
if [ "y" == "$REPLY" ] ; then
git clone --depth 1 https://github.com/junegunn/fzf.git $HOME/.fzf