mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Compare commits
5 Commits
f16cd95a0f
...
d3910bda18
Author | SHA1 | Date | |
---|---|---|---|
d3910bda18 | |||
98990b8ac9 | |||
4fc5fc0df6 | |||
3dff4ff428 | |||
be88417d59 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,5 @@ bookmarks
|
|||||||
.config/zsh/.zshrc.zwc
|
.config/zsh/.zshrc.zwc
|
||||||
|
|
||||||
*.log
|
*.log
|
||||||
.xournal/recent-files
|
|
||||||
.vim/bundle
|
.vim/bundle
|
||||||
.vim/swapfiles
|
.vim/swapfiles
|
||||||
|
171
.xournal/config
171
.xournal/config
@ -1,171 +0,0 @@
|
|||||||
# Xournal configuration file.
|
|
||||||
# This file is generated automatically upon saving preferences.
|
|
||||||
# Use caution when editing this file manually.
|
|
||||||
#
|
|
||||||
|
|
||||||
[general]
|
|
||||||
# the display resolution, in pixels per inch
|
|
||||||
display_dpi=96.00
|
|
||||||
# the initial zoom level, in percent
|
|
||||||
initial_zoom=169.98
|
|
||||||
# maximize the window at startup (true/false)
|
|
||||||
window_maximize=false
|
|
||||||
# start in full screen mode (true/false)
|
|
||||||
window_fullscreen=false
|
|
||||||
# the window width in pixels (when not maximized)
|
|
||||||
window_width=2120
|
|
||||||
# the window height in pixels
|
|
||||||
window_height=1374
|
|
||||||
# scrollbar step increment (in pixels)
|
|
||||||
scrollbar_speed=30
|
|
||||||
# the step increment in the zoom dialog box
|
|
||||||
zoom_dialog_increment=1
|
|
||||||
# the multiplicative factor for zoom in/out
|
|
||||||
zoom_step_factor=1.500
|
|
||||||
# continuous view (false = one page, true = continuous, horiz = horizontal)
|
|
||||||
view_continuous=true
|
|
||||||
# use XInput extensions (true/false)
|
|
||||||
use_xinput=true
|
|
||||||
# discard Core Pointer events in XInput mode (true/false)
|
|
||||||
discard_corepointer=false
|
|
||||||
# ignore events from other devices while drawing (true/false)
|
|
||||||
ignore_other_devices=true
|
|
||||||
# do not worry if device reports button isn't pressed while drawing (true/false)
|
|
||||||
ignore_btn_reported_up=true
|
|
||||||
# always map eraser tip to eraser (true/false)
|
|
||||||
use_erasertip=true
|
|
||||||
# always map touchscreen device to hand tool (true/false) (requires separate pen and touch devices)
|
|
||||||
touchscreen_as_hand_tool=true
|
|
||||||
# disable touchscreen device when pen is in proximity (true/false) (requires separate pen and touch devices)
|
|
||||||
pen_disables_touch=true
|
|
||||||
# name of touchscreen device for touchscreen_as_hand_tool
|
|
||||||
touchscreen_device_name=NTRG0001:01 1B96:1B05
|
|
||||||
# buttons 2 and 3 switch mappings instead of drawing (useful for some tablets) (true/false)
|
|
||||||
buttons_switch_mappings=false
|
|
||||||
# automatically load filename.pdf.xoj instead of filename.pdf (true/false)
|
|
||||||
autoload_pdf_xoj=false
|
|
||||||
# enable periodic autosaves (true/false)
|
|
||||||
autosave_enabled=true
|
|
||||||
# delay for periodic autosaves (in seconds)
|
|
||||||
autosave_delay=5
|
|
||||||
# default path for open/save (leave blank for current directory)
|
|
||||||
default_path=
|
|
||||||
# use pressure sensitivity to control pen stroke width (true/false)
|
|
||||||
pressure_sensitivity=true
|
|
||||||
# minimum width multiplier
|
|
||||||
width_minimum_multiplier=0.00
|
|
||||||
# maximum width multiplier
|
|
||||||
width_maximum_multiplier=1.25
|
|
||||||
# interface components from top to bottom
|
|
||||||
# valid values: drawarea menu main_toolbar pen_toolbar statusbar
|
|
||||||
interface_order=menu main_toolbar pen_toolbar drawarea statusbar
|
|
||||||
# interface components in fullscreen mode, from top to bottom
|
|
||||||
interface_fullscreen=main_toolbar pen_toolbar drawarea
|
|
||||||
# interface has left-handed scrollbar (true/false)
|
|
||||||
interface_lefthanded=false
|
|
||||||
# hide some unwanted menu or toolbar items (true/false)
|
|
||||||
shorten_menus=false
|
|
||||||
# interface items to hide (customize at your own risk!)
|
|
||||||
# see source file xo-interface.c for a list of item names
|
|
||||||
shorten_menu_items=optionsProgressiveBG optionsLeftHanded optionsButtonSwitchMapping
|
|
||||||
# highlighter opacity (0 to 1, default 0.5)
|
|
||||||
# warning: opacity level is not saved in xoj files!
|
|
||||||
highlighter_opacity=0.50
|
|
||||||
# auto-save preferences on exit (true/false)
|
|
||||||
autosave_prefs=true
|
|
||||||
# force PDF rendering through cairo (slower but nicer) (true/false)
|
|
||||||
poppler_force_cairo=false
|
|
||||||
# prefer xournal's own PDF code for exporting PDFs (true/false)
|
|
||||||
exportpdf_prefer_legacy=false
|
|
||||||
# export successive layers on separate pages in PDFs (true/false)
|
|
||||||
exportpdf_layers=false
|
|
||||||
# when attempting to open a non-existent file, treat it as a new file (true/false)
|
|
||||||
autocreate_new_xoj=false
|
|
||||||
|
|
||||||
[paper]
|
|
||||||
# the default page width, in points (1/72 in)
|
|
||||||
width=595.27
|
|
||||||
# the default page height, in points (1/72 in)
|
|
||||||
height=841.89
|
|
||||||
# the default paper color
|
|
||||||
color=white
|
|
||||||
# the default paper style (plain, lined, ruled, or graph)
|
|
||||||
style=lined
|
|
||||||
# apply paper style changes to all pages (true/false)
|
|
||||||
apply_all=false
|
|
||||||
# preferred unit (cm, in, px, pt)
|
|
||||||
default_unit=cm
|
|
||||||
# include paper ruling when printing or exporting to PDF (true/false)
|
|
||||||
print_ruling=true
|
|
||||||
# when creating a new page, duplicate a PDF or image background instead of using default paper (true/false)
|
|
||||||
new_page_duplicates_bg=true
|
|
||||||
# just-in-time update of page backgrounds (true/false)
|
|
||||||
progressive_bg=true
|
|
||||||
# bitmap resolution of PS/PDF backgrounds rendered using ghostscript (dpi)
|
|
||||||
gs_bitmap_dpi=144
|
|
||||||
# bitmap resolution of PDF backgrounds when printing with libgnomeprint (dpi)
|
|
||||||
pdftoppm_printing_dpi=150
|
|
||||||
|
|
||||||
[tools]
|
|
||||||
# selected tool at startup (pen, eraser, highlighter, selectregion, selectrect, vertspace, hand, image)
|
|
||||||
startup_tool=pen
|
|
||||||
# Use the pencil from cursor theme instead of a color dot (true/false)
|
|
||||||
pen_cursor=false
|
|
||||||
# default pen color
|
|
||||||
pen_color=black
|
|
||||||
# default pen thickness (fine = 1, medium = 2, thick = 3)
|
|
||||||
pen_thickness=2
|
|
||||||
# default pen is in ruler mode (true/false)
|
|
||||||
pen_ruler=false
|
|
||||||
# default pen is in shape recognizer mode (true/false)
|
|
||||||
pen_recognizer=false
|
|
||||||
# default eraser thickness (fine = 1, medium = 2, thick = 3)
|
|
||||||
eraser_thickness=2
|
|
||||||
# default eraser mode (standard = 0, whiteout = 1, strokes = 2)
|
|
||||||
eraser_mode=2
|
|
||||||
# default highlighter color
|
|
||||||
highlighter_color=yellow
|
|
||||||
# default highlighter thickness (fine = 1, medium = 2, thick = 3)
|
|
||||||
highlighter_thickness=2
|
|
||||||
# default highlighter is in ruler mode (true/false)
|
|
||||||
highlighter_ruler=false
|
|
||||||
# default highlighter is in shape recognizer mode (true/false)
|
|
||||||
highlighter_recognizer=false
|
|
||||||
# button 2 tool (pen, eraser, highlighter, text, selectregion, selectrect, vertspace, hand, image)
|
|
||||||
btn2_tool=eraser
|
|
||||||
# button 2 brush linked to primary brush (true/false) (overrides all other settings)
|
|
||||||
btn2_linked=true
|
|
||||||
# button 2 brush color (for pen or highlighter only)
|
|
||||||
btn2_color=white
|
|
||||||
# button 2 brush thickness (pen, eraser, or highlighter only)
|
|
||||||
btn2_thickness=2
|
|
||||||
# button 2 ruler mode (true/false) (for pen or highlighter only)
|
|
||||||
btn2_ruler=false
|
|
||||||
# button 2 shape recognizer mode (true/false) (pen or highlighter only)
|
|
||||||
btn2_recognizer=false
|
|
||||||
# button 2 eraser mode (eraser only)
|
|
||||||
btn2_erasermode=2
|
|
||||||
# button 3 tool (pen, eraser, highlighter, text, selectregion, selectrect, vertspace, hand, image)
|
|
||||||
btn3_tool=selectregion
|
|
||||||
# button 3 brush linked to primary brush (true/false) (overrides all other settings)
|
|
||||||
btn3_linked=true
|
|
||||||
# button 3 brush color (for pen or highlighter only)
|
|
||||||
btn3_color=white
|
|
||||||
# button 3 brush thickness (pen, eraser, or highlighter only)
|
|
||||||
btn3_thickness=0
|
|
||||||
# button 3 ruler mode (true/false) (for pen or highlighter only)
|
|
||||||
btn3_ruler=false
|
|
||||||
# button 3 shape recognizer mode (true/false) (pen or highlighter only)
|
|
||||||
btn3_recognizer=false
|
|
||||||
# button 3 eraser mode (eraser only)
|
|
||||||
btn3_erasermode=2
|
|
||||||
# thickness of the various pens (in points, 1 pt = 1/72 in)
|
|
||||||
pen_thicknesses=0.42;0.85;1.41;2.26;5.67
|
|
||||||
# thickness of the various erasers (in points, 1 pt = 1/72 in)
|
|
||||||
eraser_thicknesses=2.83;8.50;19.84
|
|
||||||
# thickness of the various highlighters (in points, 1 pt = 1/72 in)
|
|
||||||
highlighter_thicknesses=2.83;8.50;19.84
|
|
||||||
# name of the default font
|
|
||||||
default_font=Sans
|
|
||||||
# default font size
|
|
||||||
default_font_size=12.0
|
|
@ -16,12 +16,14 @@ ADOTDIR="$XDG_DATA_HOME/zsh/antigen"
|
|||||||
CARGO_HOME="$XDG_DATA_HOME/cargo"
|
CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||||
GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
|
GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
|
||||||
GOPATH="$XDG_DATA_HOME/go"
|
GOPATH="$XDG_DATA_HOME/go"
|
||||||
|
ICEAUTHORITY="$XDG_CACHE_HOME/ICEauthority"
|
||||||
NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
||||||
#PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
|
#PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
|
||||||
PYTHONHISTFILE="$XDG_DATA_HOME/python/histfile"
|
PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup"
|
||||||
RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
||||||
TERMINFO="$XDG_DATA_HOME/terminfo"
|
TERMINFO="$XDG_DATA_HOME/terminfo"
|
||||||
TERMINFO_DIRS="$XDG_DATA_HOME/terminfo:/usr/share/terminfo"
|
TERMINFO_DIRS="$XDG_DATA_HOME/terminfo:/usr/share/terminfo"
|
||||||
|
TS3_CONFIG_DIR="$XDG_CONFIG_HOME/teamspeak3"
|
||||||
VIMDIR="$XDG_CONFIG_HOME/vim"
|
VIMDIR="$XDG_CONFIG_HOME/vim"
|
||||||
VIMRC="$VIMDIR/vimrc"
|
VIMRC="$VIMDIR/vimrc"
|
||||||
VIMINIT=":so $VIMRC"
|
VIMINIT=":so $VIMRC"
|
||||||
|
55
ideavim/ideavimrc
Normal file
55
ideavim/ideavimrc
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
noremap d h
|
||||||
|
noremap h j
|
||||||
|
noremap t k
|
||||||
|
noremap n l
|
||||||
|
noremap D H
|
||||||
|
noremap H J
|
||||||
|
noremap T K
|
||||||
|
noremap N L
|
||||||
|
|
||||||
|
noremap gh gj
|
||||||
|
noremap gt gk
|
||||||
|
|
||||||
|
" I work with tabs every now and then. No, I don't have a mnemonic, so
|
||||||
|
" stfu.
|
||||||
|
noremap gj gt
|
||||||
|
noremap gJ gT
|
||||||
|
|
||||||
|
" Window movement, equally important
|
||||||
|
noremap <C-w>d <C-w>h
|
||||||
|
noremap <C-w>h <C-w>j
|
||||||
|
noremap <C-w>t <C-w>k
|
||||||
|
noremap <C-w>n <C-w>l
|
||||||
|
|
||||||
|
nnoremap <C-w><C-d> <C-w><C-h>
|
||||||
|
nnoremap <C-w><C-h> <C-w><C-j>
|
||||||
|
nnoremap <C-w><C-t> <C-w><C-k>
|
||||||
|
nnoremap <C-w><C-n> <C-w><C-l>
|
||||||
|
|
||||||
|
nnoremap <C-d> <C-w>h
|
||||||
|
nnoremap <C-h> <C-w>j
|
||||||
|
nnoremap <C-t> <C-w>k
|
||||||
|
nnoremap <C-n> <C-w>l
|
||||||
|
|
||||||
|
" Account for tag jumping
|
||||||
|
nnoremap <C-j> <C-t>
|
||||||
|
|
||||||
|
" Remappings for the D key
|
||||||
|
noremap k d
|
||||||
|
noremap K D
|
||||||
|
|
||||||
|
" Remappings for the T key
|
||||||
|
noremap j t
|
||||||
|
"noremap J T
|
||||||
|
|
||||||
|
" Remapping for the L key
|
||||||
|
noremap l n
|
||||||
|
noremap L N
|
||||||
|
|
||||||
|
" General purpose help; the originals remain for convenience
|
||||||
|
noremap - 0
|
||||||
|
noremap _ $
|
||||||
|
|
||||||
|
" Fold-related keybindings
|
||||||
|
noremap zh zj
|
||||||
|
noremap zt zk
|
24
python/startup
Normal file
24
python/startup
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import atexit
|
||||||
|
import os
|
||||||
|
import readline
|
||||||
|
|
||||||
|
xdg_cache_home = os.environ['XDG_CACHE_HOME']
|
||||||
|
|
||||||
|
if xdg_cache_home is None or xdg_cache_home == "":
|
||||||
|
xdg_cache_home = os.path.join(os.path.expanduser("~"), ".cache")
|
||||||
|
|
||||||
|
python_cache_dir = os.path.join(xdg_cache_home, "python")
|
||||||
|
if not os.path.isdir(python_cache_dir):
|
||||||
|
os.mkdir(python_cache_dir)
|
||||||
|
|
||||||
|
histfile = os.path.join(python_cache_dir, "history")
|
||||||
|
|
||||||
|
try:
|
||||||
|
readline.read_history_file(histfile)
|
||||||
|
readline.set_history_length(10000)
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
atexit.register(readline.write_history_file, histfile)
|
Loading…
Reference in New Issue
Block a user