Changes from patate
This commit is contained in:
parent
6bd5a143a3
commit
691eb6aac1
5 changed files with 15 additions and 9 deletions
|
@ -25,8 +25,8 @@ if [ -n "$PS1" ]; then
|
||||||
# make less more friendly for non-text input files, see lesspipe(1)
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||||
|
|
||||||
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
|
if [ -f /usr/share/bash_completion ] && ! shopt -oq posix; then
|
||||||
. /etc/bash_completion
|
. /usr/share/bash_completion
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -f ~/.bash_ps1 ] && source ~/.bash_ps1
|
[ -f ~/.bash_ps1 ] && source ~/.bash_ps1
|
||||||
|
|
|
@ -34,6 +34,7 @@ bindsym $mod+Return exec /usr/bin/terminator
|
||||||
|
|
||||||
# lock the screen
|
# lock the screen
|
||||||
bindsym $mod+z exec ~/.config/i3/bin/i3lock
|
bindsym $mod+z exec ~/.config/i3/bin/i3lock
|
||||||
|
bindsym $mod+Shift+z exec ~/bin/locksuspend
|
||||||
|
|
||||||
# kill focused window
|
# kill focused window
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
|
@ -231,4 +232,3 @@ exec --no-startup-id setxkbmap -option caps:swapescape
|
||||||
|
|
||||||
# Screen lock
|
# Screen lock
|
||||||
exec --no-startup-id xautolock -time 10 -locker ~/.config/i3/bin/i3lock
|
exec --no-startup-id xautolock -time 10 -locker ~/.config/i3/bin/i3lock
|
||||||
|
|
||||||
|
|
0
files/.i3/py3status/microphone.py
Normal file → Executable file
0
files/.i3/py3status/microphone.py
Normal file → Executable file
|
@ -29,7 +29,7 @@ order += "cpu_temperature 0"
|
||||||
order += "tztime local"
|
order += "tztime local"
|
||||||
|
|
||||||
arch_updates {
|
arch_updates {
|
||||||
format = "\uf0ed {pacman}"
|
format = " {pacman}"
|
||||||
}
|
}
|
||||||
|
|
||||||
microphone {
|
microphone {
|
||||||
|
@ -53,8 +53,8 @@ wireless wlo1 {
|
||||||
|
|
||||||
ethernet eno1 {
|
ethernet eno1 {
|
||||||
# if you use %speed, i3status requires root privileges
|
# if you use %speed, i3status requires root privileges
|
||||||
format_up = " %ip (%speed)"
|
format_up = " %ip (%speed)"
|
||||||
format_down = ""
|
format_down = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
path_exists VPN {
|
path_exists VPN {
|
||||||
|
@ -64,7 +64,7 @@ path_exists VPN {
|
||||||
battery 1 {
|
battery 1 {
|
||||||
format = "%status %percentage %remaining (%consumption)"
|
format = "%status %percentage %remaining (%consumption)"
|
||||||
status_chr = ""
|
status_chr = ""
|
||||||
status_bat = ""
|
status_bat = ""
|
||||||
status_full= ""
|
status_full= ""
|
||||||
low_threshold = 20
|
low_threshold = 20
|
||||||
threshold_type = "percentage"
|
threshold_type = "percentage"
|
||||||
|
@ -84,7 +84,7 @@ tztime local {
|
||||||
}
|
}
|
||||||
|
|
||||||
load {
|
load {
|
||||||
format = " %1min"
|
format = " %1min"
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu_temperature 0 {
|
cpu_temperature 0 {
|
||||||
|
|
|
@ -136,15 +136,21 @@ execute "set rtp+=" . g:opamshare . "/merlin/vimbufsync"
|
||||||
execute "set rtp+=" . g:opamshare . "/ocp-indent/vim"
|
execute "set rtp+=" . g:opamshare . "/ocp-indent/vim"
|
||||||
|
|
||||||
""""""""""""""""" Python
|
""""""""""""""""" Python
|
||||||
|
function Autoblack()
|
||||||
|
if g:black_auto
|
||||||
|
execute ':Black'
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
augroup python_settings
|
augroup python_settings
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWritePre *.py execute ':Black'
|
autocmd BufWritePre *.py call Autoblack()
|
||||||
autocmd FileType python nmap <LocalLeader>b <Esc>:Black<CR>
|
autocmd FileType python nmap <LocalLeader>b <Esc>:Black<CR>
|
||||||
autocmd FileType python set colorcolumn=88
|
autocmd FileType python set colorcolumn=88
|
||||||
autocmd FileType python set textwidth=87
|
autocmd FileType python set textwidth=87
|
||||||
augroup END
|
augroup END
|
||||||
let g:jedi#goto_definitions_command = "<LocalLeader>l"
|
let g:jedi#goto_definitions_command = "<LocalLeader>l"
|
||||||
let g:jedi#completions_enabled = 0
|
let g:jedi#completions_enabled = 0
|
||||||
|
let g:black_auto = 1
|
||||||
|
|
||||||
""""""""""""""""" Airline
|
""""""""""""""""" Airline
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
|
Loading…
Reference in a new issue