Commit fcaff30e authored by PoroCYon's avatar PoroCYon
Browse files

fix stuff

parents
! Solarized Dark colours
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
!#define S_base03 0000/2b2b/3636/d800
!#define S_base02 0707/3636/4242/d800
!#define S_base01 5858/6e6e/7575/d800
!#define S_base00 6565/7b7b/8383/d800
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
URxvt*buffered: true
URxvt*cursorblink: true
URxvt*underlineColor: S_cyan
URxvt*font: xft:Hack:size=9
URxvt*depth: 32
URxvt*borderless: 1
URxvt*loginShell: true
URxvt*scrollBar: false
URxvt*secondaryScroll: true
URxvt*saveLines: 8192
URxvt*termName: rxvt-256color
URxvt.keysym.Control-V: perl:clipboard:paste
URxvt.iso14755: false
!URxvt.perl-ext-common: default,clipboard,tabbed
URxvt.perl-ext-common: default,clipboard
URxvt*background: rgba:0000/2b2b/3636/d800
URxvt.transparent: true
!URxvt.intensityStyles: false
*background : S_base03
*foreground : S_base0
*fading : 40
*fadeColor : S_base03
*cursorColor : S_base1
*pointerColorBackground: S_base01
*pointerColorForeground: S_base1
*color0 : S_base02
*color1 : S_red
*color2 : S_green
*color3 : S_yellow
*color4 : S_blue
*color5 : S_magenta
*color6 : S_cyan
*color7 : S_base2
*color8 : S_base03
*color9 : S_orange
*color10: S_base01
*color11: S_base00
*color12: S_base0
*color13: S_violet
*color14: S_base1
*color15: S_base3
Xcursor.theme: Neutral
~/shred.xsh
. ~/.profile
. /usr/share/bash-completion/bash_completion
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
output_format = "i3bar"
colors = true
interval = 1
}
#order += "ipv6"
order += "disk /"
#order += "run_watch DHCP"
#order += "run_watch VPN"
#order += "wireless _first_"
#order += "ethernet _first_"
order += "battery 0"
order += "load"
order += "tztime local"
wireless _first_ {
format_up = "W: (%quality at %essid) %ip"
format_down = "W: down"
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining"
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}
tztime local {
format = "%Y-%m-%d %H:%M"
}
load {
format = "%1min"
}
disk "/" {
format = "%avail"
}
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This script is a simple wrapper which prefixes each i3status line with custom
# information. It is a python reimplementation of:
# http://code.stapelberg.de/git/i3status/tree/contrib/wrapper.pl
#
# To use it, ensure your ~/.i3status.conf contains this line:
# output_format = "i3bar"
# in the 'general' section.
# Then, in your ~/.i3/config, use:
# status_command i3status | ~/i3status/contrib/wrapper.py
# In the 'bar' section.
#
# In its current version it will display the cpu frequency governor, but you
# are free to change it to display whatever you like, see the comment in the
# source code below.
#
# © 2012 Valentin Haenel <valentin.haenel@gmx.de>
#
# This program is free software. It comes without any warranty, to the extent
# permitted by applicable law. You can redistribute it and/or modify it under
# the terms of the Do What The Fuck You Want To Public License (WTFPL), Version
# 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more
# details.
#
# NOTE: I (PoroCYon) have added the part that fetches the currently played song
# from scenesat
import sys
import json
import urllib.request
import datetime
# enable opts here
option_scenesat = False
def get_scenesat():
url = urllib.request.urlopen("http://scenesat.se/api/quicklist/json")
j = json.loads(url.read().decode())
url.close()
now = j["tunes"]["now"]
durs = now["duration"] % 60
durm = int((now["duration"] - durs) / 60)
track_start = datetime.datetime.strptime(now["startedat"] ,"%Y-%m-%d %H:%M:%S")
track_length = now["duration"]
return (now["artist"] + " - " + now["title"] + " [" + str(durm) + ":" + str(durs) + "]", track_start, track_length)
def print_line(message):
""" Non-buffered printing to stdout. """
sys.stdout.write(message + '\n')
sys.stdout.flush()
def read_line():
""" Interrupted respecting reader for stdin. """
# try reading a line, removing any extra whitespace
try:
line = sys.stdin.readline().strip()
# i3status sends EOF, or an empty line
if not line:
sys.exit(3)
return line
# exit on ctrl-c
except KeyboardInterrupt:
sys.exit()
if __name__ == '__main__':
track_str = ""
track_length = 0
track_start = datetime.datetime.now()
# Skip the first line which contains the version header.
print_line(read_line())
# The second line contains the start of the infinite array.
print_line(read_line())
while True:
line, prefix = read_line(), ''
# ignore comma at start of lines
if line.startswith(','):
line, prefix = line[1:], ','
j = json.loads(line)
# insert information into the start of the json, but could be anywhere
if option_scenesat:
track_end = track_start + datetime.timedelta(seconds = track_length)
tnow = datetime.datetime.now()
if track_str == "" or track_end <= tnow:
track_str, track_start, track_length = get_scenesat()
j.insert(0, {'full_text' : '%s' % track_str, 'name' : 'scenesat'})
# and echo back new encoded json
print_line(prefix+json.dumps(j))
This diff is collapsed.
set nocompatible
filetype off
filetype plugin indent on
syntax enable
call plug#begin('~/.config/nvim/plugged')
Plug 'altercation/vim-colors-solarized'
"Plug 'PoroCYon/vim-comment'
Plug 'kongo2002/fsharp-vim'
Plug 'idris-hackers/idris-vim'
Plug 'PProvost/vim-ps1'
Plug 'wting/rust.vim'
Plug 'cespare/vim-toml'
call plug#end()
set tabstop=4
set softtabstop=4
set noexpandtab
set shiftwidth=4
set autoindent
set smartindent
set cindent
set smarttab
"set scrolloff
set ruler
set number
set lazyredraw
set showmatch
set nowrap
set cursorline
if $TERM_PROGRAM =~ "rxvt"
"let g:solarized_termcolors=256
let g:solarized_visibility="normal"
let g:solarized_bold=1
let g:solarized_italic=1
let g:solarized_underline=1
let g:solarized_hitrail=1
let g:solarized_termtrans=1
colorscheme solarized
set background=dark
endif
set cursorline
set ignorecase
set smartcase
set hlsearch
set incsearch
set magic
set mat=2
set history=0
set undolevels=1000
set visualbell
set noerrorbells
set pastetoggle=<F2>
let mapleader=","
let g:mapleader=","
let g:airline_powerline_fonts=1
set foldmethod=indent
set foldnestmax=5
set foldlevelstart=99
set foldcolumn=0
set autoread
set formatprg="PARINIT='rTbgqR B=.,?_A_a Q=_s>|' par\ -w72"
set list
if &listchars ==# 'eol:$'
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
endif
set cmdheight=1
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
set mouse=a
set nobackup
set wb
set noswapfile
set expandtab
set laststatus=2
set hidden
set ffs=unix,dos,mac
set hls!
noremap ,, ,
" ';' is replaced with 'm', 'ù' is right next to 'm' (under '[')
nnoremap ù :
" AZERTY
" hjlk -> jklm ('m' is right next to 'l' and under 'p')
nnoremap m l
nnoremap l k
nnoremap k j
nmap j h
vnoremap m l
vnoremap l k
vnoremap k j
vmap j h
nnoremap M <S-Right>
nnoremap L <S-Up>
nnoremap K <S-Down>
nmap J <S-Left>
nnoremap u z
nmap u <End>
nmap n <Home>
vmap u <End>
vmap n <Home>
nnoremap Q <nop>
inoremap fd <Esc>
nnoremap <silent> fd <Ins>
nnoremap rt xp
nnoremap <leader>v V`]
nnoremap <leader>ev :vsplit $MYVIMRC<cr>
au FocusLost * :wa
map <C-j> <C-W>h
map <C-k> <C-W>j
map <C-l> <C-W>k
map <C-m> <C-W>l
tnoremap <S-j> <C-\><C-n><C-w>h
tnoremap <S-k> <C-\><C-n><C-w>j
tnoremap <S-l> <C-\><C-n><C-w>k
tnoremap <S-m> <C-\><C-n><C-w>l
nmap <leader>w :w!<cr>
"nmap <leader>nh :noh<cr>
nnoremap <leader>ma :set mouse=a<cr>
nnoremap <leader>mo :set mause=<cr>
nmap <leader>sj :leftabove vnew<cr>
nmap <leader>sm :rightbelow vnew<cr>
nmap <leader>sk :leftabove new<cr>
map <leader>sl :rightbelow new<cr>
nnoremap <leader>bp :bp<cr>
nnoremap <leader>bn :bn<cr>
noremap <leader>bd :Bd<cr>
setglobal fileencoding=utf-8
" MSIL syntax highlighting written by someone on the Vanilla Internetworks(R)
" NOTE: I (PoroCYon) have modified it quite a bit so it highlights all MSIL
" keywords etc.
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" *NOT* Case insensitive
"syntax case ignore
" except \\\" ('\"') (or \\\')
syntax match ilasmString "\".*\""
syntax match ilasmString "'.*'"
syntax match ilasmComment "\/\/.*$"
syntax match ilasmComment "\/\*.*\*\/"
syntax match ilasmLabel "^[\s\t]\+[a-zA-Z_][a-zA-Z0-9_]*:"
syntax match ilasmString /"[^"]*"/
" preceded with a . -> part of an instruction (eg. ldarg.0)
" preceded with a ` -> part of a generic typename
" (eg. [mscorlib]System.Collections.Generic.List`1<!!T>)
syntax match ilasmNumber "[0-9]\+"
" except [\.`] at beginning
syntax match ilasmNumber "0x[A-Fa-f0-9]\+"
syntax match ilasmVersion "[0-9]\(:[0-9]\)\{3\}"
syntax match ilasmBlob "[A-Fa-f0-9]\{2\}\s\(\s[A-Fa-f0-9]\{2\}\)*"
syntax keyword ilasmBool true false
" The directives
syntax match ilasmDirective "\.namespace"
syntax match ilasmDirective "\.method"
syntax match ilasmDirective "\.class"
syntax match ilasmDirective "\.field"
syntax match ilasmDirective "\.locals"
syntax match ilasmDirective "\.entrypoint"
syntax match ilasmDirective "\.module"
syntax match ilasmDirective "\.data"
syntax match ilasmDirective "\.size"
syntax match ilasmDirective "\.property"
syntax match ilasmDirective "\.get"
syntax match ilasmDirective "\.set"
syntax match ilasmDirective "\.other"
syntax match ilasmDirective "\.permission"
syntax match ilasmDirective "\.permissionset"
syntax match ilasmDirective "\.custom"
syntax match ilasmDirective "\.subsystem"
syntax match ilasmDirective "\.corflags"
syntax match ilasmDirective "\.file\salignement"
syntax match ilasmDirective "\.imagebase"
syntax match ilasmDirective "\.line"
syntax match ilasmDirective "\.language"
syntax match ilasmDirective "\.hash\salgorithm"
syntax match ilasmDirective "\.ver"
syntax match ilasmDirective "\.maxstack"
syntax match ilasmDirective "\.file\salignment"
syntax match ilasmDirective "\.stackreserve"
syntax match ilasmDirective "\.publickeytoken"
" The types
syntax keyword ilasmType int8 uint8 int32 uint32 int64 float32 float64 string void int16 char bool bytearray nullref unsigned object typedref native int uint
" The keywords
syntax match ilasmKeyword "^[\s\t]*nop"
syntax match ilasmKeyword "^[\s\t]*break"
syntax match ilasmKeyword "^[\s\t]*ldarg.0"
syntax match ilasmKeyword "^[\s\t]*ldarg.1"
syntax match ilasmKeyword "^[\s\t]*ldarg.2"
syntax match ilasmKeyword "^[\s\t]*ldarg.3"
syntax match ilasmKeyword "^[\s\t]*ldloc.0"
syntax match ilasmKeyword "^[\s\t]*ldloc.1"
syntax match ilasmKeyword "^[\s\t]*ldloc.2"
syntax match ilasmKeyword "^[\s\t]*ldloc.3"
syntax match ilasmKeyword "^[\s\t]*stloc.0"
syntax match ilasmKeyword "^[\s\t]*stloc.1"
syntax match ilasmKeyword "^[\s\t]*stloc.2"
syntax match ilasmKeyword "^[\s\t]*stloc.3"
syntax match ilasmKeyword "^[\s\t]*ldarg.s"
syntax match ilasmKeyword "^[\s\t]*ldarga.s"
syntax match ilasmKeyword "^[\s\t]*starg.s"
syntax match ilasmKeyword "^[\s\t]*ldloc.s"
syntax match ilasmKeyword "^[\s\t]*ldloca.s"
syntax match ilasmKeyword "^[\s\t]*stloc.s"
syntax match ilasmKeyword "^[\s\t]*ldnull"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.m1"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.M1"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.0"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.1"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.2"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.3"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.4"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.5"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.6"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.7"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.8"
syntax match ilasmKeyword "^[\s\t]*ldc.i4.s"
syntax match ilasmKeyword "^[\s\t]*ldc.i4"
syntax match ilasmKeyword "^[\s\t]*ldc.i8"
syntax match ilasmKeyword "^[\s\t]*ldc.r4"
syntax match ilasmKeyword "^[\s\t]*ldc.r8"
syntax match ilasmKeyword "^[\s\t]*dup"
syntax match ilasmKeyword "^[\s\t]*pop"
syntax match ilasmKeyword "^[\s\t]*jmp"
syntax match ilasmKeyword "^[\s\t]*call"
syntax match ilasmKeyword "^[\s\t]*calli"
syntax match ilasmKeyword "^[\s\t]*ret"
syntax match ilasmKeyword "^[\s\t]*br.s"
syntax match ilasmKeyword "^[\s\t]*brfalse.s"
syntax match ilasmKeyword "^[\s\t]*brnull.s"
syntax match ilasmKeyword "^[\s\t]*brzero.s"
syntax match ilasmKeyword "^[\s\t]*brtrue.s"
syntax match ilasmKeyword "^[\s\t]*brinst.s"
syntax match ilasmKeyword "^[\s\t]*beq.s"
syntax match ilasmKeyword "^[\s\t]*bge.s"
syntax match ilasmKeyword "^[\s\t]*bgt.s"
syntax match ilasmKeyword "^[\s\t]*ble.s"
syntax match ilasmKeyword "^[\s\t]*blt.s"
syntax match ilasmKeyword "^[\s\t]*bne.un.s"
syntax match ilasmKeyword "^[\s\t]*bge.un.s"
syntax match ilasmKeyword "^[\s\t]*bgt.un.s"
syntax match ilasmKeyword "^[\s\t]*ble.un.s"
syntax match ilasmKeyword "^[\s\t]*blt.un.s"
syntax match ilasmKeyword "^[\s\t]*br"
syntax match ilasmKeyword "^[\s\t]*brfalse"
syntax match ilasmKeyword "^[\s\t]*brnull"
syntax match ilasmKeyword "^[\s\t]*brzero"
syntax match ilasmKeyword "^[\s\t]*brtrue"
syntax match ilasmKeyword "^[\s\t]*brinst"
syntax match ilasmKeyword "^[\s\t]*beq"
syntax match ilasmKeyword "^[\s\t]*bge"
syntax match ilasmKeyword "^[\s\t]*bgt"
syntax match ilasmKeyword "^[\s\t]*ble"
syntax match ilasmKeyword "^[\s\t]*blt"
syntax match ilasmKeyword "^[\s\t]*bne.un"
syntax match ilasmKeyword "^[\s\t]*bge.un"
syntax match ilasmKeyword "^[\s\t]*bgt.un"
syntax match ilasmKeyword "^[\s\t]*ble.un"
syntax match ilasmKeyword "^[\s\t]*blt.un"
syntax match ilasmKeyword "^[\s\t]*switch"
syntax match ilasmKeyword "^[\s\t]*ldind.i1"
syntax match ilasmKeyword "^[\s\t]*ldind.u1"
syntax match ilasmKeyword "^[\s\t]*ldind.i2"
syntax match ilasmKeyword "^[\s\t]*ldind.u2"
syntax match ilasmKeyword "^[\s\t]*ldind.i4"
syntax match ilasmKeyword "^[\s\t]*ldind.u4"
syntax match ilasmKeyword "^[\s\t]*ldind.i8"
syntax match ilasmKeyword "^[\s\t]*ldind.u8"
syntax match ilasmKeyword "^[\s\t]*ldind.i"
syntax match ilasmKeyword "^[\s\t]*ldind.r4"
syntax match ilasmKeyword "^[\s\t]*ldind.r8"
syntax match ilasmKeyword "^[\s\t]*ldind.ref"
syntax match ilasmKeyword "^[\s\t]*stind.ref"
syntax match ilasmKeyword "^[\s\t]*stind.i1"
syntax match ilasmKeyword "^[\s\t]*stind.i2"
syntax match ilasmKeyword "^[\s\t]*stind.i4"
syntax match ilasmKeyword "^[\s\t]*stind.i8"
syntax match ilasmKeyword "^[\s\t]*stind.r4"
syntax match ilasmKeyword "^[\s\t]*stind.r8"
syntax match ilasmKeyword "^[\s\t]*add"
syntax match ilasmKeyword "^[\s\t]*sub"
syntax match ilasmKeyword "^[\s\t]*mul"
syntax match ilasmKeyword "^[\s\t]*div"
syntax match ilasmKeyword "^[\s\t]*div.un"
syntax match ilasmKeyword "^[\s\t]*rem"
syntax match ilasmKeyword "^[\s\t]*rem.un"
syntax match ilasmKeyword "^[\s\t]*and"
syntax match ilasmKeyword "^[\s\t]*or"
syntax match ilasmKeyword "^[\s\t]*xor"
syntax match ilasmKeyword "^[\s\t]*shl"
syntax match ilasmKeyword "^[\s\t]*shr"
syntax match ilasmKeyword "^[\s\t]*shr.un"
syntax match ilasmKeyword "^[\s\t]*neg"
syntax match ilasmKeyword "^[\s\t]*not"
syntax match ilasmKeyword "^[\s\t]*conv.i1"
syntax match ilasmKeyword "^[\s\t]*conv.i2"
syntax match ilasmKeyword "^[\s\t]*conv.i4"
syntax match ilasmKeyword "^[\s\t]*conv.i8"
syntax match ilasmKeyword "^[\s\t]*conv.r4"
syntax match ilasmKeyword "^[\s\t]*conv.r8"
syntax match ilasmKeyword "^[\s\t]*conv.u4"
syntax match ilasmKeyword "^[\s\t]*conv.u8"
syntax match ilasmKeyword "^[\s\t]*callvirt"
syntax match ilasmKeyword "^[\s\t]*cpobj"
syntax match ilasmKeyword "^[\s\t]*ldstr"
syntax match ilasmKeyword "^[\s\t]*newobj"
syntax match ilasmKeyword "^[\s\t]*castclass"
syntax match ilasmKeyword "^[\s\t]*isinst"
syntax match ilasmKeyword "^[\s\t]*conv.r.un"
syntax match ilasmKeyword "^[\s\t]*unbox"
syntax match ilasmKeyword "^[\s\t]*throw"
syntax match ilasmKeyword "^[\s\t]*ldfld"
syntax match ilasmKeyword "^[\s\t]*ldflda"
syntax match ilasmKeyword "^[\s\t]*stfld"
syntax match ilasmKeyword "^[\s\t]*ldsfld"
syntax match ilasmKeyword "^[\s\t]*ldsflda"
syntax match ilasmKeyword "^[\s\t]*stsfld"
syntax match ilasmKeyword "^[\s\t]*stobj"
syntax match ilasmKeyword "^[\s\t]*conv.ovf.i1.un"
syntax match ilasmKeyword "^[\s\t]*conv.ovf.i2.un"
syntax match ilasmKeyword "^[\s\t]*conv.ovf.i4.un"
syntax match ilasmKeyword "^[\s\t]*conv.ovf.i8.un"
syntax match ilasmKeyword "^[\s\t]*conv.ovf.u1.un"
syntax match ilasmKeyword "^[\s\t]*conv.ovf.u2.un"
syntax match ilasmKeyword "^[\s\t]*conv.ovf.u4.un"
syntax match ilasmKeyword "^[\s\t]*conv.ovf.u8.un"
syntax match ilasmKeyword "^[\s\t]*conv.ovf.i.un"
syntax match ilasmKeyword "^[\s\t]*conv.ovf.u.un"
syntax match ilasmKeyword "^[\s\t]*box"
syntax match ilasmKeyword "^[\s\t]*newarr"
syntax match ilasmKeyword "^[\s\t]*ldlen"
syntax match ilasmKeyword "^[\s\t]*ldelema"
syntax match ilasmKeyword "^[\s\t]*ldelem.i1"