1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-21 19:52:29 +00:00

Working better with latex and screens/monitors

This commit is contained in:
J. Fernando Sánchez 2015-01-22 23:56:14 +01:00
parent c46c149046
commit b076e8e56a
11 changed files with 190 additions and 82 deletions

View File

@ -42,7 +42,7 @@ URxvt.scrollBar: false
! Perl extensions
URxvt.perl-ext-common: default,matcher,clipboard
URxvt.matcher.button: 1
URxvt.url-launcher: google-chrome
URxvt.url-launcher: firefox
URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:paste

View File

@ -2,17 +2,17 @@
case $1 in
"single")
#xrandr --auto --output eDP1 --primary --output DP1 --off
~/.screenlayout/gsi-single.sh
xrandr --output HDMI1 --off --output DVI-1 --off --output DP1 --off --output eDP1 --mode 1920x1080 --pos 0x0 --rotate normal --output VGA1 --off
~/.screenlayout/gsi-single.sh
xrandr --output HDMI1 --off --output DVI-1 --off --output DP1 --off --output eDP1 --mode 1920x1080 --pos 0x0 --rotate normal --output VGA1 --off
;;
"dual")
case $2 in
"home")
xrandr --output DP1 --off --output VIRTUAL1 --off --output eDP1 --mode 1920x1080 --pos 0x1080 --rotate normal --output HDMI1 --mode 1920x1080 --pos 0x0 --rotate normal --output VGA1 --off
xrandr --output DP1 --off --output VIRTUAL1 --off --output eDP1 --mode 1920x1080 --pos 0x1080 --rotate normal --output HDMI1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output VGA1 --off
;;
*)
#xrandr --auto --output eDP1 --primary --right-of DP1
xrandr --output VIRTUAL1 --off --output DP1 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI1 --off --output eDP1 --mode 1920x1080 --pos 0x1080 --rotate normal --output VGA1 --off
xrandr --output VIRTUAL1 --off --output DP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI1 --off --output eDP1 --mode 1920x1080 --pos 1920x0 --rotate normal --output VGA1 --off
xrandr --output "DVI-1-0" --off
;;
esac

View File

@ -8,4 +8,4 @@ password_files=( "${password_files[@]%.gpg}" )
password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@")
pass -c "$password"
pass "$password" | xsel

View File

@ -174,16 +174,16 @@ class SpotifyNotify():
# The second param is the replace id, so get the notify id back,
# store it, and send it as the replacement on the next call.
self.notifyid = self.notifyservice.Notify(
"Spotify-notify",
self.notifyid,
cover_image,
trackInfo['artist'],
notifyText,
[],
{},
2000
)
#self.notifyid = self.notifyservice.Notify(
#"Spotify-notify",
#self.notifyid,
#cover_image,
#trackInfo['artist'],
#notifyText,
#[],
#{},
#2000
#)
def retrieveCoverImage(self, trackInfo):
if 'arturl' in trackInfo:

2
bin/zotero Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
~/Programs/Zotero_linux-x86_64/run-zotero.sh

View File

@ -14,3 +14,5 @@
lg1 = log --graph --all --format=format:'%C(yellow)%h%C(reset) - %C(green)(%ad)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit
lg = !"git lg1"
[core]
excludesfile = /home/jfernando/.gitignore_global

52
gitignore_global Normal file
View File

@ -0,0 +1,52 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# IDEs
######
.idea
.ropeproject
# Python
######
*.pyc
# VIM
######
*.swp
*.swo
*.swn

View File

@ -222,11 +222,18 @@ assign [class="Firefox" window_role="browser"] 2: Web
for_window [class="Xfce4-notifyd"] floating enable; border none; focus mode_toggle
for_window [class="^URxvt$"] border 1px
for_window [title="^tmux$"] move to scratchpad;
#KDE
for_window [class="Plasma-desktop"] border none
for_window [class="krunner"] border none
for_window [class="Kmix"] floating enable;
for_window [class="Plasmoidviewer"] floating enable;
for_window [class="Klipper"] floating enable; border none
#assign [class="^Gvim$"] 3: Edit
#assign [class="^Evince$"] 4: Viewer
assign [class="^Spotify$"] 6: Music
assign [class="^Audacious$"] 6: Music
assign [class="^Xchat$"] 7: Chat
#for_window [class="Pcmanfm"] floating enable
workspace "1: Term" output DP1
workspace "2: Web" output DP1
@ -263,3 +270,4 @@ exec urxvt -name tmux -e tmux attach
#bindsym $mod+Pause mode "$mode_system"
exec --no-startup-id nitrogen --restore &
#exec --no-startup-id compton -b --config ~/.compton.conf
#

View File

@ -16,8 +16,9 @@ let g:LatexBox_latexmk_async=1
let g:LatexBox_latexmk_preview_continuously=1
"let g:Tex_CompileRule_pdf = 'pdflatex --synctex=1 -interaction=nonstopmode $*'
let g:LatexBox_output_type="pdf"
let g:LatexBox_viewer="evince"
let g:LatexBox_viewer="xdg-open"
let g:LatexBox_Folding=1
let g:LatexBox_quickfix=2
let tlist_tex_settings = 'latex;l:labels;s:sections;t:subsections;u:subsubsections'

19
vimperatorrc Normal file
View File

@ -0,0 +1,19 @@
set hintchars=hjklasdfgyuiopqwertnmzxcvb
" Pass through all keys (like CTRL-Z) on Gmail and Google Reader:
"autocmd LocationChange .* :js modes.passAllKeys = /(docs|mail)\.google\.com|www\.google\.com\/reader\/view/.test(buffer.URL)
"autocmd LocationChange .* :js modes.passAllKeys = /(localhost|127.0.0.1)/.test(buffer.URL)
autocmd LocationChange .* js modes.passAllKeys = false
autocmd LocationChange mail\\.google\\.com js modes.passAllKeys = true
autocmd LocationChange docs\\.google\\.com js modes.passAllKeys = true
autocmd LocationChange duckduckgo\\.com js modes.passAllKeys = true
" Make Firefox run faster by using JIT
set! javascript.options.jit.chrome=true
map <C-S-I> <S-Esc><C-S-i>
map d <C-D>
map u <C-U>
map U :undo<CR>
map x :tabclose<CR>

24
vimrc
View File

@ -298,3 +298,27 @@ set guioptions-=T "remove toolbar
set guioptions-=r "remove right-hand scroll bar
set guioptions-=L "remove left-hand scroll bar
let g:pymode_rope_project_root = "~/.ropeprojects"
" backup to ~/.tmp
set backup
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set backupskip=/tmp/*,/private/tmp/*
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set writebackup
" Easymotion
let g:EasyMotion_do_mapping = 0 " Disable default mappings
" Bi-directional find motion
" Jump to anywhere you want with minimal keystrokes, with just one key binding.
" `s{char}{label}`
nmap s <Plug>(easymotion-s)
nmap <Leader>w <Plug>(easymotion-bd-w)
" or
" `s{char}{char}{label}`
" Need one more keystroke, but on average, it may be more comfortable.
nmap s <Plug>(easymotion-s2)
" Turn on case sensitive feature
let g:EasyMotion_smartcase = 1