rust doc alias, vim auto brackets, display laptop stuff

This commit is contained in:
aj 2020-10-20 12:48:08 +01:00
parent bf88685690
commit b3dbc773cb
6 changed files with 55 additions and 13 deletions

View File

@ -110,6 +110,7 @@ alias ytmpvhd='mpv --hwdec=auto --ytdl-format="bestvideo[height<=?1080]+bestaudi
alias gitlog='git log --graph --all --oneline'
alias cdev='cd /mnt/files/dev'
alias rdoc='cargo doc --open'
alias dis='intel-virtual-output -f'

View File

@ -8,7 +8,7 @@ background = rgba(0,0,0,0)
#accent = #e60053
#background = ${xrdb:color0:#222}
foreground = ${xrdb:color7:#222}
foreground = #ffffff
foreground-alt = ${xrdb:color7:#222}
primary = ${xrdb:color1:#222}
secondary = ${xrdb:color2:#222}
@ -32,14 +32,14 @@ screenchange-reload = true
[bar/top]
monitor = ${env:MONITOR:}
height = 15
height = 50
radius = 0.0
fixed-center = false
;override-redirect = true
padding = 2
module-margin = 2
line-size = 2
padding = 1
module-margin = 0
line-size = 0
background = ${colors.background}
foreground = ${colors.foreground}
@ -60,10 +60,10 @@ border-color = ${colors.background}
;module-margin-right = 2
;font-0 = dina:pixelsize=10;1
font-0 = "Roboto:pixelsize=11;2"
font-0 = "Inconsolata:pixelsize=26:weight=bold;5"
font-1 = siji:pixelsize=10;1
font-2 = unifont:size=6;1
font-3 = "Material Icons:size=12;3"
font-3 = "Material Icons:size=30;10"
modules-left = i3 mpd
;modules-center = mpd
@ -71,10 +71,11 @@ modules-left = i3 mpd
modules-right = wifi vpn internalip public-ip battery time date
tray-position = right
tray-padding = 4
;tray-maxsize = 16
tray-padding = 2
tray-maxsize = 40
tray-background = ${root.background}
tray-detached = false
;tray-scale = 2.0
;tray-offset-x = 50
wm-restack = i3
@ -198,7 +199,7 @@ label-packetloss-foreground = #eefafafa
[module/wifi]
type = internal/network
interface = wlp3s0
interface = wlp1s0
interval = 5
;udspeed-minwidth = 0

View File

@ -15,7 +15,7 @@ if [[ "$(hostname)" == "andy-pc" ]]; then
done
else
for m in $(polybar --list-monitors | cut -d":" -f1); do
MONITOR=$m IFACE="wlp3s0" polybar --reload top &
MONITOR=$m IFACE="wlp1s0" polybar --reload top &
done
fi

View File

@ -4,3 +4,4 @@ rofi.combi-modi: drun,run
rofi.location: 2
rofi.sidebar-mode: true
rofi.theme: ~/dotfiles/rofi/colors-rofi-dark.rasi
rofi.font: cantarell 35

View File

@ -48,7 +48,7 @@ configuration {
window {
location: west;
anchor: west;
height: 100%;
height: 50%;
width: 30%;
orientation: horizontal;
children: [mainbox];

View File

@ -1,5 +1,13 @@
set nocompatible " be iMproved, required
filetype off " required
" filetype off " required
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
so ~/.vim/plugins.vim
@ -8,10 +16,41 @@ set laststatus=2
set noshowmode
set showmatch
set ignorecase
set smartcase
" Allow backspacing over autoindent, line breaks and start of insert action
set backspace=indent,eol,start
" When opening a new line and no filetype-specific indenting is enabled, keep
" the same indent as the line you're currently on. Useful for READMEs, etc.
set autoindent
" Stop certain movements from always going to the first character of a line.
" While this behaviour deviates from that of Vi, it does what most users
" coming from other editors would expect.
set nostartofline
" Display the cursor position on the last line of the screen or in the status
" line of a window
set ruler
" Enable use of the mouse for all modes
set mouse=a
let g:lightline = {
\ 'colorscheme': 'srcery_drk',
\ }
inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
inoremap < <><left>
inoremap { {}<left>
inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O
set number
syntax on