first commit

This commit is contained in:
Marcin Woźniak 2021-03-22 21:25:52 +01:00
parent 6ae58df8cb
commit c1c92fc336
Signed by: y0rune
GPG Key ID: F204C385F57EB348
31 changed files with 931 additions and 0 deletions

163
.gitignore vendored Normal file
View File

@ -0,0 +1,163 @@
.Xauthority
.anthy/
.aspell.*
.bash_history
.bash_logout
.bash_profile
.bashrc
.bitcoin
.bundle/
.cache/
.cargo
.cert/
.swt/
.smb
.recently-used
.eclipse/
.emacs.d/.dap-breakpoints
.password
.chatty/
.config/transmission-daemon/
.config/wireshark/
.config/tea/
.config/ibus/
.config/vivaldi/
.config/gtk-2.0/
.config/*.conf
.config/BraveSoftware
.config/GIMP/
.config/Microsoft/
.config/Postman/
.config/QtProject.conf
.config/VSCodium
.config/autostart/
.config/cmus
.config/configstore
.config/dconf
.config/discord
.config/freerdp
.config/fzf
.config/gtk-3.0
.config/htop
.config/ibu
.config/keepassxc/
.config/mimeapps.list
.config/mpv/watch_later/
.config/msmtp
.config/mutt
.config/neofetch/
.config/newsboat/urlswork
.config/nvim/autoload
.config/nvim/plugged
.config/procps
.config/pulse
.config/qalculate
.config/spicy
.config/teams/
.config/vpn
.config/weatherreport
.dbus/
.emacs.d/.lsp-session-v1
.emacs.d/.mc-lists.el
.emacs.d/ac-comphist.dat
.emacs.d/auto-save-list/
.emacs.d/eclipse.jdt.ls/
.emacs.d/elpa/
.emacs.d/workspace/
.fehbg
.fltk/
.gem/
.ghc/
.gitconfig
.gkrellm2/data/
.gnome/
.gnupg/
.gtkrc-2.0
.history_zsh
.icons/
.irb_history
.irssi/
.java/
.jd2/
.lesshst
.local/bin/__pycache__/
.local/bin/backupSynology
.local/bin/chardetect
.local/bin/epylint
.local/bin/flask
.local/bin/futurize
.local/bin/haruhi-dl
.local/bin/isort
.local/bin/pasteurize
.local/bin/pwiz.py
.local/bin/pylint
.local/bin/pyreverse
.local/bin/symilar
.local/bin/vpnst
.local/bin/wheel
.local/include/
.local/lib/
.local/lib64/
.local/share/
.logSynology
.m2/
.mbsyncrc
.megaCmd/
.minecraft/
.mozc/
.mozilla/
.node_repl_history
.notmuch-config
.npm/
.nv/
.nvidia-settings-rc
.openoffice/
.oracle_jre_usage/
.password-store/
.pki/
.plannaplan
.pvpn-cli/
.pylint.d/
.screenlayout/
.solargraph/
.sqlite_history
.ssh/
.sshservers
.steam/
.steampath
.steampid
.sts4/
.thunderbird/
.tig_history
.tlauncher/
.tooling/
.ts3client/
.var/
.vim/
.viminfo
.vimspector.log
.vnc/
.vscode-oss/
.vscode-server/
.vscode/
.w3m/
.weechat/
.wget-hsts
.wine/
.wmWeatherReports/
.yarnrc
.zcompdump-Gentoo-5.8
Documents
Downloads
Linux
MEGA
Muzyka
Screenshots
Wallpapers
developer-quiz.txt
git/
go/
ittv-credentials
mcserver/
mega
www

15
.gkrellm2/sensor-config Normal file
View File

@ -0,0 +1,15 @@
sensor sensor_config_version 1
sensor sensor_sysdep_private 1
sensor sensor_float_factor 10000
sensor gkrellm_float_factor 1000
sensor "temp1" "coretemp-hwmon2/temp1" 10000 0 0 0
sensor "temp2" "coretemp-hwmon2/temp2" 10000 0 0 0
sensor "temp3" "coretemp-hwmon2/temp3" 10000 0 0 0
sensor "temp4" "coretemp-hwmon2/temp4" 10000 0 0 0
sensor "temp5" "coretemp-hwmon2/temp5" 10000 0 0 0
sensor "GPU C" "nVidia GPU Core" 10000 0 1 0
sensor "temp" "thermal_zone0" 10000 0 1 0
sensor "Vcor1" "bat0-hwmon1/in0" 10000 0 0 0
sensor units_fahrenheit 0
sensor show_units 1
sensor volt_display_mode 0

6
.gkrellm2/theme_config Normal file
View File

@ -0,0 +1,6 @@
/home/yorune/.gkrellm2/themes/invisible HC
0
Sans 11
Sans 9
Sans 8
190

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 844 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

View File

@ -0,0 +1,91 @@
# invisible.
author = "Jkx <jkx@larsen-b.com>, color remix by Shawn Jeffcoat <shawnjeffcoat@gmail.com>"
chart_width_min = 58
chart_width_max = 58
chart_width_ref = 58
allow_scaling = true
frame_top_height = 0
frame_bottom_height = 0
frame_left_width = 0
frame_right_width = 0
frame_top_border = 0,0,0,0
frame_bottom_border = 0,0,0,0
frame_left_border = 0,0,0,0
frame_right_border = 0,0,0,0
chart_in_color = #01FF19
chart_in_color_grid = #FAFD00
chart_out_color = #FE0101
chart_out_color_grid = #FAFD00
bg_grid_mode = 1
rx_led_x = -14
rx_led_y = 11
tx_led_x = -1
tx_led_y = 11
timer_time_x = 1
timer_button_x = -4
bg_timer_border = 2,2,2,2
button_panel_border = 2,2,2,2
button_meter_border = 2,2,2,2
large_font = "-adobe-helvetica-medium-r-normal-*-*-100-*-*-p-*-*-*"
normal_font = "-adobe-helvetica-medium-r-normal-*-*-80-*-*-p-*-*-*"
small_font = "-adobe-helvetica-medium-r-normal-*-*-80-*-*-p-*-*-*"
bg_slider_panel_border = 1,1,1,1
bg_slider_meter_border = 1,1,1,1
StyleChart *.border = 5,5,5,5
StyleChart *.font = normal_font
StyleChart *.alt_font = small_font
StyleChart *.textcolor = #FFFFFF #000000 shadow
StyleChart *.alt_textcolor = #FFFFFF #000000 shadow
StyleChart *.transparency = 1
StylePanel *.border = 0,0,11,2
StylePanel *.font = normal_font
StylePanel *.alt_font = normal_font
StylePanel *.textcolor = #FFFFFF #000000 shadow
StylePanel *.alt_textcolor = #FFFFFF #000000 shadow
StylePanel *.label_position = 50
StylePanel *.margin = 1
StylePanel *.krell_x_hot = 63
StylePanel *.krell_depth = 65
StylePanel *.krell_yoff = 3
StylePanel *.transparency = 1
StyleMeter *.border = 0,0,12,4
StyleMeter *.font = normal_font
StyleMeter *.alt_font = small_font
StyleMeter *.textcolor = #FFFFFF #000000 shadow
StyleMeter *.alt_textcolor = #FFFFFF #000000 shadow
StyleMeter *.label_position = 50
StyleMeter *.margin = 1
StyleMeter *.krell_x_hot = 63
StyleMeter *.krell_depth = 65
StyleMeter *.krell_yoff = 4
StyleMeter *.transparency = 1
StylePanel net.label_position = 0
StyleMeter mem.label_position = 0
StyleMeter mem.border = 0,0,12,4
StyleMeter swap.label_position = 0
StyleMeter swap.border = 0,0,12,2
StyleMeter cal.font = med_font
StyleMeter cal.alt_font = large_font
StyleMeter clock.font = large_font
StyleMeter fs.border = 0,0,12,4
StyleMeter timer.border = 0,0,0,0
StyleMeter host.border = 0,0,0,3
StyleMeter cal.border = 0,0,0,4
StyleMeter clock.border = 0,0,0,4
StyleMeter uptime.border = 0,0,0,2
StyleMeter fs.label_position = 0
StyleMeter fs.alt_font = normal_font

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

View File

@ -0,0 +1,91 @@
# invisible.
author = "Jkx <jkx@larsen-b.com>"
chart_width_min = 58
chart_width_max = 58
chart_width_ref = 58
allow_scaling = true
frame_top_height = 0
frame_bottom_height = 0
frame_left_width = 0
frame_right_width = 0
frame_top_border = 0,0,0,0
frame_bottom_border = 0,0,0,0
frame_left_border = 0,0,0,0
frame_right_border = 0,0,0,0
chart_in_color = #11c4f1
chart_in_color_grid = #11c4f1
chart_out_color = #8758b3
chart_out_color_grid = #8758b3
bg_grid_mode = 1
rx_led_x = -14
rx_led_y = 11
tx_led_x = -1
tx_led_y = 11
timer_time_x = 1
timer_button_x = -4
bg_timer_border = 2,2,2,2
button_panel_border = 2,2,2,2
button_meter_border = 2,2,2,2
large_font = "-adobe-helvetica-medium-r-normal-*-*-100-*-*-p-*-*-*"
normal_font = "-adobe-helvetica-medium-r-normal-*-*-80-*-*-p-*-*-*"
small_font = "-adobe-helvetica-medium-r-normal-*-*-80-*-*-p-*-*-*"
bg_slider_panel_border = 1,1,1,1
bg_slider_meter_border = 1,1,1,1
StyleChart *.border = 5,5,5,5
StyleChart *.font = normal_font
StyleChart *.alt_font = small_font
StyleChart *.textcolor = #C1C1C1 #000000 shadow
StyleChart *.alt_textcolor = #C1C1C1 #000000 shadow
StyleChart *.transparency = 1
StylePanel *.border = 0,0,11,2
StylePanel *.font = normal_font
StylePanel *.alt_font = normal_font
StylePanel *.textcolor = #C1C1C1 #000000 shadow
StylePanel *.alt_textcolor = #C1C1C1 #000000 shadow
StylePanel *.label_position = 50
StylePanel *.margin = 1
StylePanel *.krell_x_hot = 63
StylePanel *.krell_depth = 65
StylePanel *.krell_yoff = 3
StylePanel *.transparency = 1
StyleMeter *.border = 0,0,12,4
StyleMeter *.font = normal_font
StyleMeter *.alt_font = small_font
StyleMeter *.textcolor = #C1C1C1 #000000 shadow
StyleMeter *.alt_textcolor = #C1C1C1 #000000 shadow
StyleMeter *.label_position = 50
StyleMeter *.margin = 1
StyleMeter *.krell_x_hot = 63
StyleMeter *.krell_depth = 65
StyleMeter *.krell_yoff = 4
StyleMeter *.transparency = 1
StylePanel net.label_position = 0
StyleMeter mem.label_position = 0
StyleMeter mem.border = 0,0,12,4
StyleMeter swap.label_position = 0
StyleMeter swap.border = 0,0,12,2
StyleMeter cal.font = med_font
StyleMeter cal.alt_font = large_font
StyleMeter clock.font = large_font
StyleMeter fs.border = 0,0,12,4
StyleMeter timer.border = 0,0,0,0
StyleMeter host.border = 0,0,0,3
StyleMeter cal.border = 0,0,0,4
StyleMeter clock.border = 0,0,0,4
StyleMeter uptime.border = 0,0,0,2
StyleMeter fs.label_position = 0
StyleMeter fs.alt_font = normal_font

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

158
.gkrellm2/user-config Normal file
View File

@ -0,0 +1,158 @@
### GKrellM user config. Auto written, do not edit (usually) ###
### Version 2.3.11 ###
enable_hostname 1
hostname_short 0
enable_sysname 0
mbmon_port 0
sticky_state 1
dock_type 0
decorated 0
skip_taskbar 0
skip_pager 0
above 1
below 0
track_gtk_theme_name 0
default_track_theme "Default"
save_position 1
chart_width 105
update_HZ 10
allow_multiple_instances 0
float_factor 1000
hostname sysname_mode 1
clock_cal clock_launch
clock_cal clock_tooltip
clock_cal cal_launch
clock_cal cal_tooltip
clock_cal hour_chime_command
clock_cal quarter_chime_command
clock_cal loop_chime_enable 0
clock_cal clock_options 1
clock_cal cal_options 1
clock_cal cal_format %a <span foreground="$A"><big><big>%e</big></big></span> %b
clock_cal clock_format %H:%M <span foreground="$A"><small>%S</small></span>
cpu enable 0
cpu smp_mode 0
cpu enabled cpu 0
cpu extra_info cpu 1
cpu chart_config cpu 40 20 0 0 0 0 : 0 0 0 0 500 : 0 0 0 0 500 : 0 0 0 0 500
cpu enabled cpu0 1
cpu extra_info cpu0 1
cpu chart_config cpu0 40 20 0 0 0 0 : 0 0 0 0 500 : 0 0 0 0 500 : 0 0 0 0 500
cpu enabled cpu1 1
cpu extra_info cpu1 1
cpu chart_config cpu1 40 20 0 0 0 0 : 0 0 0 0 500 : 0 0 0 0 500 : 0 0 0 0 500
cpu enabled cpu2 1
cpu extra_info cpu2 1
cpu chart_config cpu2 40 20 0 0 0 0 : 0 0 0 0 500 : 0 0 0 0 500 : 0 0 0 0 500
cpu enabled cpu3 1
cpu extra_info cpu3 1
cpu chart_config cpu3 40 20 0 0 0 0 : 0 0 0 0 500 : 0 0 0 0 500 : 0 0 0 0 500
cpu enabled cpu4 1
cpu extra_info cpu4 1
cpu chart_config cpu4 40 20 0 0 0 0 : 0 0 0 0 500 : 0 0 0 0 500 : 0 0 0 0 500
cpu enabled cpu5 1
cpu extra_info cpu5 1
cpu chart_config cpu5 40 20 0 0 0 0 : 0 0 0 0 500 : 0 0 0 0 500 : 0 0 0 0 500
cpu enabled cpu6 1
cpu extra_info cpu6 1
cpu chart_config cpu6 40 20 0 0 0 0 : 0 0 0 0 500 : 0 0 0 0 500 : 0 0 0 0 500
cpu enabled cpu7 1
cpu extra_info cpu7 1
cpu chart_config cpu7 40 20 0 0 0 0 : 0 0 0 0 500 : 0 0 0 0 500 : 0 0 0 0 500
cpu show_panel_labels 1
cpu omit_nice_mode 0
cpu config_tracking 0
cpu sensor_mode 0
cpu text_format $T
proc enable 1 1
proc launch
proc tooltip_comment
proc sensor_mode 0
proc text_format \w88\a$p\f procs\n\e$u\f users
proc chart_config 40 100 0 0 0 0 : 1 0 0 0 500 : 0 0 0 0 500
disk assign_method 2
disk device Disk 0 0 0 0 1 0 0 Disk
disk chart_config Disk 40 20000000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
disk device sda 0 0 45 1 1 -1 0 sda
disk chart_config sda 40 10000000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
disk device sda1 0 0 45 0 1 1 0 sda1
disk device sda2 0 0 45 0 1 2 0 sda2
disk device sda3 0 0 45 0 1 3 0 sda3
disk device sr0 0 0 96 0 1 -1 0 sr0
disk device dm-0 0 0 555 0 1 -1 0 dm-0
disk device dm-1 0 0 556 0 1 -1 0 dm-1
disk text_format $T
inet text_format all \t$a\f $l\N$A\f $L
inet update_interval all 1
net enables br-b27b19007b8e 0 1 0
net chart_config br-b27b19007b8e 40 5 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
net enables docker0 0 1 0
net chart_config docker0 40 5 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
net enables eth0 1 1 0
net chart_config eth0 40 2000000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
net enables lo 0 1 0
net enables veth1ee909d 0 1 0
net chart_config veth1ee909d 40 100 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
net enables veth34ebeda 0 1 0
net chart_config veth34ebeda 40 100 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
net enables veth665662f 0 1 0
net chart_config veth665662f 40 100 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
net enables vethc201b27 0 1 0
net chart_config vethc201b27 40 100 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
net enables wlan0 0 1 0
net timer_enabled 0
net timer_seconds 0
net timer_iface none
net timer_on
net timer_off
net text_format $T\b\c\f$L
net reset_mday 1
net net_enabled_as_default 1
net net_stats_window_height 200
meminfo mem_meter 1 0 0
meminfo swap_meter 0 0
meminfo swap_chart 0 1
meminfo mem_launch
meminfo mem_tooltip
meminfo mem_data_format $t - $f free
meminfo swap_launch
meminfo swap_tooltip
meminfo swap_data_format $t - $f free
meminfo text_format $T
fs fs_check_timeout 2
fs nfs_check_timeout 16
fs auto_eject 0
fs binary_units 0
fs data_format $t - $f free
mail mailbox-local mbox /var/mail/yorune
mail mua
mail notify
mail fetch_command
mail remote_check_timeout 5
mail local_check_timeout 4
mail fetch_check_is_local 0
mail msg_count_mode 0
mail animation_select_mode 0
mail fetch_check_only_mode 0
mail reset_remote_mode 0
mail unseen_is_new 0
mail enable 0 0 0 0
mail animation_continuous 0
mail show_tooltip 1
mail mh_seq_ignore 0
battery enable 1
battery enable_composite 1
battery estimate_time 0
battery estimate_time_discharge 1500
battery estimate_time_charge 3000
battery estimate_time_charge_model 0
battery full_cap_fallback 5000
battery poll_interval 5
battery launch1
battery tooltip_comment
battery alert_units_percent 0
battery display_mode 0 0
battery display_mode 0 1
uptime enable 1
uptime launch
uptime tooltip

3
.signature Normal file
View File

@ -0,0 +1,3 @@
Regards,
Marcin Woźniak
https://yorune.pl

36
.tmux.conf Normal file
View File

@ -0,0 +1,36 @@
set -g prefix C-a
set-option -g default-shell /bin/zsh
bind-key p command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -JS -32768 ; save-buffer %1 ; delete-buffer'
unbind C-b
bind-key C-a send-prefix
unbind q
bind q confirm kill-window
bind Q confirm kill-pane
set -g status on
bind-key -n C-f copy-mode \; send-key ?
set -g default-terminal "st-256color"
set -g history-limit 20000
set-option -sg escape-time 0
set -g base-index 1 # start windows numbering at 1
setw -g pane-base-index 1 # make pane numbering consistent with windows
setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title
set -g display-panes-time 800 # slightly longer pane indicators display time
set -g display-time 1000 # slightly longer status messages display time
set -g status-interval 10 # redraw status line every 10 seconds
set -g monitor-activity on
set -g visual-activity off
bind C-c new-session
bind C-f command-prompt -p find-session 'switch-client -t %%'
bind - split-window -v
bind _ split-window -h
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 3
bind -r L resize-pane -R 2
bind -r C-h previous-window # select previous window
bind -r C-l next-window # select next window
bind Tab last-window # move to last active window

115
.vimrc Normal file
View File

@ -0,0 +1,115 @@
" settings
if ! filereadable(system('echo -n "$HOME/.vim/autoload/plug.vim"'))
silent !mkdir -p $HOME/.vim/autoload/
silent !curl --silent "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $HOME/.vim/autoload/plug.vim
autocmd VimEnter * PlugInstall
endif
set laststatus=2
set shiftwidth=4
set softtabstop=4
set tabstop=4
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
" plugins
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'nmante/vim-latex-live-preview'
Plug 'lervag/vimtex'
Plug 'junegunn/goyo.vim'
call plug#end()
" Status-line
set statusline=
set statusline+=%#IncSearch#
set statusline+=\ %y
set statusline+=\ %r
set statusline+=%#CursorLineNr#
set statusline+=\ %F
set statusline+=%= "Right side settings
set statusline+=%#Search#
set statusline+=\ %l/%L
set statusline+=\ [%c]
set nocompatible
set hlsearch
set incsearch
set noshowmode
set cmdheight=1
syntax on
filetype plugin indent on
set encoding=utf-8
" livepreviewer
let g:livepreview_previewer = 'mupdf'
" markdown preview
let g:mkdp_browser = '/home/yorune/.local/bin/browser-x'
let g:mkdp_echo_preview_url = 1
" line numbers
set number
set ruler
set title
" indent
set backspace=indent,eol,start
set shiftwidth=4
set expandtab
" editing
runtime! macros/matchit.vim
set backspace=indent,eol,start
" visual feedback
set laststatus=2
set showmode
set showcmd
" off mouse
set mouse-=a
" disable pcspkr beep
set visualbell
set t_vb=
" searching
set smartcase
set ic
" cursor
let &t_SI = "\<esc>[6 q"
let &t_EI = "\<esc>[2 q"
" colors
set bg=dark
hi CursorLine cterm=NONE term=NONE ctermbg=NONE guibg=NONE
hi CursorLine ctermbg=235
" map
nnoremap S :%s//g<Left><Left>
nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>
map <C-n> :NERDTreeToggle<CR>
nnoremap <silent> <C-t> :tabnew <CR>
nnoremap <F11> :Goyo <CR>
nnoremap <F7> :tabprevious<CR>
nnoremap <F8> :tabnext<CR>
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
" latex
let g:tex_flavor = "latex"
autocmd BufWritePost *.tex silent! execute "!pdflatex --shell-escape -synctex=1 -interaction=nonstopmode % > /dev/null " | redraw!
autocmd BufWritePost *.tex silent! execute "!latexmk -pdf -silent % > /dev/null" | redraw!
autocmd BufWritePost *.tex silent! execute "!sudo rm -rf *.fls *.ilg *.nav *.snm *.toc *.idx *.lof *.lot *.synctex.gz *.aux *.fdb_latexmk *.fls *.log *.out > /dev/null" | redraw!
autocmd BufWritePost *.tex silent! execute "!sudo pkill -HUP mupdf > /dev/null" | redraw!
" mutt
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo
autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
" Automatically deletes all trailing whitespace and newlines at end of file on save.
autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritepre * %s/\n\+\%$//e

88
.vimrc-def Normal file
View File

@ -0,0 +1,88 @@
" settings
if ! filereadable(system('echo -n "$HOME/.vim/autoload/plug.vim"'))
silent !mkdir -p $HOME/.vim/autoload/
silent !curl --silent "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $HOME/.vim/autoload/plug.vim
autocmd VimEnter * PlugInstall
endif
set laststatus=2
set shiftwidth=4
set softtabstop=4
set tabstop=4
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
" plugins
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree', "{ 'on': 'NERDTreeToggle' }
call plug#end()
" Status-line
set statusline=
set statusline+=%#IncSearch#
set statusline+=\ %y
set statusline+=\ %r
set statusline+=%#CursorLineNr#
set statusline+=\ %F
set statusline+=%= "Right side settings
set statusline+=%#Search#
set statusline+=\ %l/%L
set statusline+=\ [%c]
set nocompatible
set hlsearch
set incsearch
set noshowmode
set cmdheight=1
syntax on
filetype plugin indent on
set encoding=utf-8
" line numbers
set number
set ruler
set title
" indent
set backspace=indent,eol,start
set shiftwidth=4
set expandtab
" editing
runtime! macros/matchit.vim
" visual feedback
set laststatus=2
set showmode
set showcmd
" off mouse
set mouse-=a
" disable pcspkr beep
set visualbell
set t_vb=
" searching
set smartcase
set ic
" cursor
let &t_SI = "\<esc>[6 q"
let &t_EI = "\<esc>[2 q"
" colors
set bg=dark
" map
nnoremap S :%s//g<Left><Left>
map <C-n> :NERDTreeToggle<CR>
nnoremap <silent> <C-t> :tabnew <CR>
nnoremap <F7> :tabprevious<CR>
nnoremap <F8> :tabnext<CR>
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
" Automatically deletes all trailing whitespace and newlines at end of file on save.
autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritepre * %s/\n\+\%$//e

BIN
.wall.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

59
.xinitrc Normal file
View File

@ -0,0 +1,59 @@
#!/bin/sh
export PATH=$HOME/.local/bin:$PATH
# NVDIA
#xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --setprovideroutputsource NVIDIA-G0 modesetting
xrandr --auto
# Turn off beep
xset b off&
# Lock screen
xset s 600&
xautolock -time 15 -locker slock&
# Programs
#dwmstatusbar&
dwmblocks&
#feh --bg-fill "$HOME/.wall.jpg" &
nm-applet --sm-disable&
#sudo /root/.local/bin/protonvpn c -f&
dunst -config&
browser-x&
QT_SCALE_FACTOR=1.5 keepassxc &
/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; split-window 'htop'\; new-window -n MAIL 'neomutt'\; new-window -n NEWSBOAT 'newsboat -r '\; new-window -n MUSIC 'cmus'"&
sudo /usr/bin/rdate -s ntp.task.gda.pl && sudo /sbin/hwclock --systohc
megasync &
ibus-daemon&
# Two monitors are enabled?
if [[ $(mons | awk '/Monitors/{print $2}') = 2 ]]
then
xrandr --output HDMI-1 --mode 1920x1080 --rate 60 --primary --output eDP-1 --off
#xrandr --output eDP-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal
fi
compton&
feh --bg-scale $HOME/.wall.jpg&
# Seetings of LID
#while true
#do
# if xrandr | grep "HDMI-1 disconnected"; then
# xrandr --output "HDMI-1" --off --output "eDP-1" --auto
# #else
# # xrandr --output "eDP-1" --off --output "HDMI-1" --auto
# fi
#
# if [[ $(< /proc/acpi/button/lid/LID0/state ) = *closed ]] && [[ $(mons | awk '/Monitors/{print $2}') = 1 ]]
# then
# case $(< /sys/class/power_supply/ADP0/online) in
# 1) ( [[ ! "$(pidof slock)" ]] && slock ) ;;
# 0) sudo s2ram && slock ;;
# esac
# fi
# sleep 2
#done &
exec dbus-launch dwm

106
.zshrc Normal file
View File

@ -0,0 +1,106 @@
parse_git_branch() {
command=$(git symbolic-ref --short HEAD 2> /dev/null)
[ -z $command ] && echo -e "$ " || echo -e "$(git symbolic-ref --short HEAD 2> /dev/null) $ "
}
gbranch() {
echo -e "$(git branch "$@")"
}
[ -f /etc/gentoo-release ] && export ZSH="/usr/share/zsh/site-contrib/oh-my-zsh"
[ -f /etc/centos-release ] && export ZSH="$HOME/.oh-my-zsh"
[ -f /etc/debian_version ] && export ZSH="$HOME/.oh-my-zsh"
HISTFILE=$HOME/.history_zsh
HISTSIZE=10000
SAVEHIST=10000000
autoload -U colors && colors
setopt PROMPT_SUBST
PS1='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(parse_git_branch)%{$reset_color%}'
#PS1='%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%m %{$fg[magenta]%}%~%{$fg[red]%} $(parse_git_branch)]%{$reset_color%}$%b '
plugins=(rake ruby vagrant knife knife_ssh kitchen )
ZSH_DISABLE_COMPFIX=true
source $ZSH/oh-my-zsh.sh
source $HOME/.password
source $HOME/Linux/configs/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh &>> /dev/null
source $HOME/Linux/configs/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh &>> /dev/null
source $HOME/.plannaplan &>> /dev/null
[ ! -d $HOME/.config/fzf ] && git clone https://github.com/junegunn/fzf.git $HOME/.config/fzf
[ -f $HOME/.config/fzf/shell/key-bindings.zsh ] && source $HOME/.config/fzf/shell/key-bindings.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
FPATH=/usr/local/share/zsh/site-functions:$FPATH
#xset b off &>> /dev/null
#set bell-style none &>> /dev/null
#setxkbmap pl &>> /dev/null
export GPG_TTY=$(tty)
export TERM=xterm-256color
export SHELL=/bin/bash
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
export _JAVA_AWT_WM_NONREPARENTING=1
export CCACHE_DIR="/usr/ccache"
export LC_ALL="en_US.UTF-8"
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export BROWSER=/home/yorune/.local/bin/browser-x
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse'
export EIX_LIMIT_COMPACT=0
export TERMINAL="st"
export QT_SCALE_FACTOR=1.5
export VISUAL='vim'
export EDITOR='vim'
alias svm="sudo vim /etc/portage/make.conf"
alias svr="sudo vim /etc/portage/repos.conf"
alias svp="sudo vim /etc/portage/package.use"
alias sva="sudo vim /etc/portage/package.accept_keywords"
alias emerge="sudo emerge"
alias channel-check='sudo iwlist wlan0 scan | egrep -i "essid|frequency"'
alias grep="grep --color=always"
alias egrep="egrep --color=always"
alias ls='ls -h --color=auto'
alias ll='ls -lha'
alias cp='cp -v'
alias mv='mv -v'
alias myip="curl ipinfo.io/ip"
alias logi="journalctl -f"
alias pl="setxkbmap pl"
alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'"
alias mylaptop-components="inxi -Fxz"
alias r="ranger"
alias v="vim"
alias feh="feh --scale-down"
alias changefont="figlet"
alias gmaster="git checkout master"
alias gcommit="git commit --author='Marcin Woźniak <y0rune@aol.com>' -s"
alias gcommitw="git commit --author='Marcin Woźniak <marcin.wozniak@wundermanthompson.com>'"
alias gdel="git push origin --delete"
alias gadd="git add"
alias gpush="git push"
alias gpull="git pull"
alias gstatus="git status -s"
alias gst="git status -s"
alias gdiff="git diff"
alias gnew="git checkout -b"
alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches"
alias gfg="git checkout master && git fetch upstream && git pull upstream master"
alias cal="cal -3"
alias code="vscodium-bin"
alias vpn="sudo /root/.local/bin/protonvpn c -f"
alias vpnch="sudo /root/.local/bin/protonvpn c --cc CH"
alias vpnd="sudo /root/.local/bin/protonvpn d"
alias tv="~/MEGA/tv/tv.sh"
alias newswork="newsboat --url=$HOME/.config/newsboat/urlswork"
alias vim="vim -p"
alias denpl="trans en:pl"
alias dplen="trans pl:en"
alias notes="vim $HOME/git/notes/index.md"
alias mpv="__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 mpv --vo=x11 --hwdec=no --ytdl-raw-options="yes-playlist=" --ytdl-format='bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]' --no-resume-playback"
alias aria2c="aria2c --seed-time=0 --disable-ipv6 --max-upload-limit=1k"
# Cleaning-up
export PATH=$HOME/.local/bin:$PATH
export HISTTIMEFORMAT="%F %T "