Updates
Signed-off-by: Tiago Garcia <tiago.rgarcia@ua.pt>
This commit is contained in:
parent
8bbb122d20
commit
193d077c90
|
@ -57,6 +57,9 @@ augroup SearchHighlight
|
||||||
autocmd CmdlineChanged /,\? :nnoremap <buffer> <Esc> :noh<CR>
|
autocmd CmdlineChanged /,\? :nnoremap <buffer> <Esc> :noh<CR>
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
let g:highlightedyank_highlight_duration = 100
|
||||||
|
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
|
Plug 'machakann/vim-highlightedyank'
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
current=$(gsettings get org.gnome.desktop.notifications show-banners)
|
||||||
|
|
||||||
|
if [ "$current" == "true" ]; then
|
||||||
|
gsettings set org.gnome.desktop.notifications show-banners false
|
||||||
|
notify-send "Desktop banner notifications disabled"
|
||||||
|
else
|
||||||
|
gsettings set org.gnome.desktop.notifications show-banners true
|
||||||
|
notify-send "Desktop banner notifications enabled"
|
||||||
|
fi
|
|
@ -22,7 +22,7 @@ def main():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
try:
|
try:
|
||||||
with open("/root/secrets.txt", "a") as secrets_file:
|
with open("/root/secrets.txt", "a") as secrets_file:
|
||||||
secrets_file.write(f"{sys.argv[2]},{sys.argv[3]}\n")
|
secrets_file.write(f"{sys.argv[2]};{sys.argv[3]}\n")
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
print("Permission denied")
|
print("Permission denied")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
@ -30,7 +30,7 @@ def main():
|
||||||
try:
|
try:
|
||||||
with open("/root/secrets.txt", "r") as secrets_file:
|
with open("/root/secrets.txt", "r") as secrets_file:
|
||||||
secrets_file_lines = secrets_file.readlines()
|
secrets_file_lines = secrets_file.readlines()
|
||||||
secrets = [(str(i+1), secrets_file_lines[i].split(",")[0], secrets_file_lines[i].split(",")[1]) for i in range(len(secrets_file_lines))]
|
secrets = [(str(i+1), secrets_file_lines[i].split(";")[0], secrets_file_lines[i].split(";")[1]) for i in range(len(secrets_file_lines))]
|
||||||
|
|
||||||
if sys.argv[1] == "list":
|
if sys.argv[1] == "list":
|
||||||
for secret in secrets:
|
for secret in secrets:
|
||||||
|
|
4
.vimrc
4
.vimrc
|
@ -70,6 +70,8 @@ augroup END
|
||||||
" autocmd VimEnter * silent !echo -ne "\e[2 q"
|
" autocmd VimEnter * silent !echo -ne "\e[2 q"
|
||||||
" augroup END
|
" augroup END
|
||||||
|
|
||||||
|
let g:highlightedyank_highlight_duration = 100
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
|
||||||
Plug 'joshdick/onedark.vim'
|
Plug 'joshdick/onedark.vim'
|
||||||
|
@ -82,6 +84,8 @@ Plug 'tpope/vim-commentary'
|
||||||
|
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
|
|
||||||
|
Plug 'machakann/vim-highlightedyank'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
|
|
Loading…
Reference in New Issue