mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-09-10 07:11:09 +00:00
Variuos updates
This commit is contained in:
@@ -49,5 +49,14 @@ nvmLoad(){
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
}
|
||||
|
||||
javaLoad(){
|
||||
export JAVA_HOME=/opt/jdk1.8.0_201/jre/
|
||||
export PATH="/opt/android-sdk/tools:/opt/android-sdk/tools/bin:$PATH"
|
||||
}
|
||||
|
||||
androidLoad(){
|
||||
export ANDROID_SDK_ROOT=/opt/android-sdk
|
||||
}
|
||||
|
||||
eval "$($HOME/.local/bin/hari-tools.sh setup-autocomplete) hari-tools.sh"
|
||||
. /usr/share/bash-completion/completions/fzf-key-bindings
|
||||
|
||||
+451
-108
File diff suppressed because it is too large
Load Diff
+34
-10
@@ -53,6 +53,7 @@ let g:gruvbox_contrast_dark = 'dark'
|
||||
let g:netrw_browse_split = 2
|
||||
|
||||
au BufEnter *.js.ejs set ft=javascript.ejs
|
||||
au BufEnter *.cir set ft=spice
|
||||
au BufEnter *.dart set ft=dart
|
||||
au BufEnter *.sshconf set ft=sshconfig
|
||||
|
||||
@@ -83,17 +84,20 @@ endfunction
|
||||
autocmd FileType javascript set includeexpr=LoadMainNodeModule(v:fname)
|
||||
autocmd FileType typescript set includeexpr=LoadMainNodeModule(v:fname)
|
||||
autocmd FileType vue set includeexpr=LoadMainNodeModule(v:fname)
|
||||
" autocmd FileType vue set ft=vue.html
|
||||
" }}}
|
||||
|
||||
" Load tempate
|
||||
autocmd BufNewFile *.vue if &modifiable | execute('0r ~/.config/nvim/templates/template.vue') | endif
|
||||
autocmd BufNewFile *.test.js if &modifiable | execute('0r ~/.config/nvim/templates/template.test.js')| endif
|
||||
autocmd BufNewFile *.js if &modifiable | execute('Header') | endif
|
||||
|
||||
" for java {{{
|
||||
autocmd BufRead *.java set include=^#\s*import
|
||||
autocmd BufRead *.java set includeexpr=substitute(v:fname,'\\.','/','g')
|
||||
autocmd BufRead *.java set suffixesadd=.java,.xml
|
||||
autocmd BufRead *.ect set suffixesadd=.ect ft=html.ect
|
||||
|
||||
" For vue js
|
||||
" autocmd BufRead,BufNewFile *.vue setlocal filetype=html.vue
|
||||
|
||||
" For Nunjucks templates
|
||||
autocmd BufRead *.njk set ft=jinja
|
||||
|
||||
@@ -115,12 +119,18 @@ let g:syntastic_go_checkers = ['gofmt']
|
||||
" for JavaScript syntax checking {{{
|
||||
let g:syntastic_always_populate_loc_list = 1
|
||||
let g:syntastic_javascript_checkers = ['eslint']
|
||||
let g:syntastic_javascript_checkers = ['eslint']
|
||||
" }}}
|
||||
|
||||
|
||||
|
||||
" set lazyredraw
|
||||
let g:sparkupNextMapping = '<M-K>'
|
||||
" let g:sparkupNextMapping = '<M-K>'
|
||||
let g:user_emmet_mode='inv' "enable all functions, which is equal to
|
||||
let g:user_emmet_install_global = 0
|
||||
autocmd FileType html,css,vue,jsx,php EmmetInstall
|
||||
imap <C-E> <Plug>(emmet-expand-abbr)
|
||||
" let g:user_emmet_leader_key='<C-E>'
|
||||
|
||||
|
||||
|
||||
@@ -150,13 +160,16 @@ call plug#begin( )
|
||||
Plug 'jamessan/vim-gnupg'
|
||||
Plug 'SirVer/ultisnips'
|
||||
Plug 'honza/vim-snippets'
|
||||
Plug 'rstacruz/sparkup' " HTML zen-coding helper
|
||||
" Plug 'rstacruz/sparkup' " HTML zen-coding helper
|
||||
Plug 'mattn/emmet-vim'
|
||||
Plug 'tomtom/tcomment_vim' " Code commenting uncommenting
|
||||
Plug 'tpope/vim-surround' " quickly Insert/remove/change quote/brackes any vim selection.
|
||||
Plug 'harish2704/harish2704-vim' " My utilities to move widows around tabs
|
||||
Plug 'junegunn/fzf'
|
||||
Plug 'junegunn/fzf.vim' " Ctrl-p Quick file search
|
||||
Plug 'wsdjeg/vim-fetch'
|
||||
Plug 'mbbill/undotree' " Visualize undo history
|
||||
" Plug 'bogado/file-line' " Open file:linenumber
|
||||
" }
|
||||
"
|
||||
" Extra utilities {
|
||||
@@ -168,17 +181,22 @@ Plug 'godlygeek/tabular' " Tabularize Text
|
||||
Plug 'tpope/vim-fugitive' " For Git repo management.
|
||||
Plug 'spf13/vim-autoclose' " Autoclose brackets/quotes etc
|
||||
Plug 'chrisbra/NrrwRgn' " Edit a portion file as different buffer
|
||||
Plug 'prettier/vim-prettier', { 'do': 'yarn install',
|
||||
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] }
|
||||
Plug 'prettier/vim-prettier', { 'do': 'yarn install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] }
|
||||
" Plug 'easymotion/vim-easymotion'
|
||||
" }
|
||||
"
|
||||
" Langualge plugins{
|
||||
Plug 'iamcco/markdown-preview.nvim', { 'for': 'markdown', 'do': 'cd app & yarn install' }
|
||||
if has('nvim')
|
||||
Plug 'iamcco/markdown-preview.nvim', { 'for': 'markdown', 'do': 'cd app & yarn install' }
|
||||
Plug 'mhartington/nvim-typescript' , { 'for': [ 'javascript.ts'] }
|
||||
else
|
||||
Plug 'roxma/vim-hug-neovim-rpc'
|
||||
Plug 'roxma/nvim-yarp'
|
||||
endif
|
||||
Plug 'rust-lang/rust.vim', { 'for': 'rust'}
|
||||
Plug 'pangloss/vim-javascript', " { 'for': 'javascript'}
|
||||
Plug 'mxw/vim-jsx' , { 'for': [ 'jsx'] }
|
||||
Plug 'leafOfTree/vim-vue-plugin' , { 'for': ['vue']}
|
||||
Plug 'mhartington/nvim-typescript' , { 'for': [ 'javascript.ts'] }
|
||||
Plug 'AndrewRadev/vim-eco', { 'for': [ 'ect', 'eco' ] }
|
||||
Plug 'Glench/Vim-Jinja2-Syntax', { 'for': [ 'html', 'jinja', 'njk' ] }
|
||||
Plug 'kchmck/vim-coffee-script', { 'for': 'coffee' }
|
||||
@@ -192,6 +210,8 @@ Plug 'editorconfig/editorconfig-vim'
|
||||
Plug 'dart-lang/dart-vim-plugin', { 'for': 'dart' }
|
||||
Plug 'thosakwe/vim-flutter', { 'for': 'dart' }
|
||||
Plug 'fatih/vim-go', { 'for': 'go', 'do': ':GoUpdateBinaries' }
|
||||
Plug 'pantharshit00/vim-prisma', { 'for': 'prisma' }
|
||||
|
||||
" }
|
||||
|
||||
|
||||
@@ -289,7 +309,11 @@ imap <C-s> <Esc><c-s>
|
||||
|
||||
|
||||
" '\\es' or '<leader><leader>es' Open vimrc in a new tab
|
||||
execute( 'nmap <Leader><Leader>es :tabedit '. g:nvim_conf_root .'init.vim <CR>' )
|
||||
if has('nvim')
|
||||
execute( 'nmap <Leader><Leader>es :tabedit '. g:nvim_conf_root .'init.vim <CR>' )
|
||||
else
|
||||
execute( 'nmap <Leader><Leader>es :tabedit '. $MYVIMRC .' <CR>' )
|
||||
endif
|
||||
|
||||
" '\\en' '<leader><leader>en' Open current file's snippets file in a new tab
|
||||
nmap <Leader><Leader>en :execute 'OpenSnippets'<CR>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[ActionPlugins][0]
|
||||
MidButton;NoModifier=org.kde.paste
|
||||
MiddleButton;NoModifier=org.kde.paste
|
||||
RightButton;NoModifier=org.kde.contextmenu
|
||||
|
||||
[ActionPlugins][0][RightButton;NoModifier]
|
||||
@@ -24,6 +24,10 @@ run associated application=true
|
||||
[ActionPlugins][1]
|
||||
RightButton;NoModifier=org.kde.contextmenu
|
||||
|
||||
[AppletGlobals][org.kde.plasma.comic]
|
||||
lastUpdate=2021,9,16,19,12,29.478
|
||||
updateInterval=3
|
||||
|
||||
[Containments][2]
|
||||
activityId=
|
||||
formfactor=2
|
||||
@@ -173,12 +177,15 @@ PreloadWeight=0
|
||||
DialogHeight=540
|
||||
DialogWidth=720
|
||||
|
||||
[Containments][23][Applets][26][Configuration][General]
|
||||
launchers=
|
||||
|
||||
[Containments][23][Applets][27]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.systemtray
|
||||
|
||||
[Containments][23][Applets][27][Configuration]
|
||||
PreloadWeight=100
|
||||
PreloadWeight=81
|
||||
SystrayContainmentId=46
|
||||
|
||||
[Containments][23][Applets][29]
|
||||
@@ -186,16 +193,18 @@ immutability=1
|
||||
plugin=org.kde.plasma.digitalclock
|
||||
|
||||
[Containments][23][Applets][29][Configuration]
|
||||
PreloadWeight=100
|
||||
PreloadWeight=9
|
||||
|
||||
[Containments][23][Applets][29][Configuration][Appearance]
|
||||
boldText=true
|
||||
selectedTimeZones=America/New_York,Local
|
||||
showDate=true
|
||||
showSeconds=true
|
||||
use24hFormat=0
|
||||
|
||||
[Containments][23][Applets][29][Configuration][ConfigDialog]
|
||||
DialogHeight=480
|
||||
DialogWidth=640
|
||||
DialogHeight=744
|
||||
DialogWidth=960
|
||||
|
||||
[Containments][23][Applets][30]
|
||||
immutability=1
|
||||
@@ -204,24 +213,6 @@ plugin=org.kde.plasma.showdesktop
|
||||
[Containments][23][Applets][30][Configuration]
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][23][Applets][39]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.icon
|
||||
|
||||
[Containments][23][Applets][39][Configuration]
|
||||
PreloadWeight=0
|
||||
localPath=/home/hari/.local/share/plasma_icons/geany.desktop
|
||||
url=file:///usr/share/applications/geany.desktop
|
||||
|
||||
[Containments][23][Applets][40]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.icon
|
||||
|
||||
[Containments][23][Applets][40][Configuration]
|
||||
PreloadWeight=0
|
||||
localPath=/home/hari/.local/share/plasma_icons/chromium-browser.desktop
|
||||
url=file:///usr/share/applications/chromium-browser.desktop
|
||||
|
||||
[Containments][23][Applets][41]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.icon
|
||||
@@ -296,23 +287,51 @@ PreloadWeight=0
|
||||
localPath=/home/hari/.local/share/plasma_icons/kcm_kdeconnect.desktop
|
||||
url=file:///usr/share/kservices5/kcm_kdeconnect.desktop
|
||||
|
||||
[Containments][23][Applets][75]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.icon
|
||||
|
||||
[Containments][23][Applets][75][Configuration]
|
||||
PreloadWeight=18
|
||||
localPath=/home/hari/.local/share/plasma_icons/firefox.desktop
|
||||
url=file:///usr/share/applications/firefox.desktop
|
||||
|
||||
[Containments][23][Applets][78]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.icon
|
||||
|
||||
[Containments][23][Applets][78][Configuration]
|
||||
PreloadWeight=0
|
||||
localPath=/home/hari/.local/share/plasma_icons/barrier.desktop
|
||||
url=file:///usr/share/applications/barrier.desktop
|
||||
|
||||
[Containments][23][Applets][80]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.icon
|
||||
|
||||
[Containments][23][Applets][80][Configuration]
|
||||
PreloadWeight=0
|
||||
localPath=/home/hari/.local/share/plasma_icons/geany.desktop
|
||||
url=file:///usr/share/applications/geany.desktop
|
||||
|
||||
[Containments][23][Applets][87]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.icon
|
||||
|
||||
[Containments][23][Applets][87][Configuration]
|
||||
PreloadWeight=0
|
||||
localPath=/home/hari/.local/share/plasma_icons/firefox.desktop
|
||||
url=file:///usr/share/applications/firefox.desktop
|
||||
|
||||
[Containments][23][Applets][88]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.icon
|
||||
|
||||
[Containments][23][Applets][88][Configuration]
|
||||
PreloadWeight=0
|
||||
localPath=/home/hari/.local/share/plasma_icons/simple-scan.desktop
|
||||
url=file:///usr/share/applications/simple-scan.desktop
|
||||
|
||||
[Containments][23][Applets][89]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.icon
|
||||
|
||||
[Containments][23][Applets][89][Configuration]
|
||||
PreloadWeight=0
|
||||
localPath=/home/hari/.local/share/plasma_icons/brave-browser.desktop
|
||||
url=file:///usr/share/applications/brave-browser.desktop
|
||||
|
||||
[Containments][23][ConfigDialog]
|
||||
DialogHeight=90
|
||||
DialogWidth=1920
|
||||
@@ -321,7 +340,7 @@ DialogWidth=1920
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][23][General]
|
||||
AppletOrder=71;43;40;75;39;74;59;41;42;62;78;26;25;27;29;30
|
||||
AppletOrder=71;43;89;87;80;74;59;88;41;42;62;78;26;25;27;29;30
|
||||
|
||||
[Containments][46]
|
||||
activityId=
|
||||
@@ -337,7 +356,7 @@ immutability=1
|
||||
plugin=org.kde.plasma.volume
|
||||
|
||||
[Containments][46][Applets][47][Configuration]
|
||||
PreloadWeight=100
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][46][Applets][47][Configuration][ConfigDialog]
|
||||
DialogHeight=660
|
||||
@@ -351,7 +370,7 @@ immutability=1
|
||||
plugin=org.kde.plasma.devicenotifier
|
||||
|
||||
[Containments][46][Applets][49][Configuration]
|
||||
PreloadWeight=100
|
||||
PreloadWeight=59
|
||||
|
||||
[Containments][46][Applets][50]
|
||||
immutability=1
|
||||
@@ -376,14 +395,14 @@ immutability=1
|
||||
plugin=org.kde.plasma.battery
|
||||
|
||||
[Containments][46][Applets][52][Configuration]
|
||||
PreloadWeight=100
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][46][Applets][53]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.networkmanagement
|
||||
|
||||
[Containments][46][Applets][53][Configuration]
|
||||
PreloadWeight=100
|
||||
PreloadWeight=84
|
||||
|
||||
[Containments][46][Applets][53][Configuration][ConfigDialog]
|
||||
DialogHeight=540
|
||||
@@ -394,7 +413,7 @@ immutability=1
|
||||
plugin=org.kde.plasma.bluetooth
|
||||
|
||||
[Containments][46][Applets][54][Configuration]
|
||||
PreloadWeight=7
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][46][Applets][55]
|
||||
immutability=1
|
||||
@@ -411,7 +430,7 @@ immutability=1
|
||||
plugin=org.kde.kdeconnect
|
||||
|
||||
[Containments][46][Applets][58][Configuration]
|
||||
PreloadWeight=5
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][46][Applets][61]
|
||||
immutability=1
|
||||
@@ -428,25 +447,54 @@ immutability=1
|
||||
plugin=org.kde.kscreen
|
||||
|
||||
[Containments][46][Applets][76][Configuration]
|
||||
PreloadWeight=100
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][46][Applets][76][Configuration][ConfigDialog]
|
||||
DialogHeight=720
|
||||
DialogWidth=960
|
||||
|
||||
[Containments][46][Applets][76][Shortcuts]
|
||||
global=
|
||||
|
||||
[Containments][46][Applets][77][Configuration]
|
||||
PreloadWeight=42
|
||||
|
||||
[Containments][46][Applets][80][Configuration]
|
||||
PreloadWeight=42
|
||||
|
||||
[Containments][46][Applets][81]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.keyboardlayout
|
||||
|
||||
[Containments][46][Applets][81][Configuration]
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][46][Applets][82]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.manage-inputmethod
|
||||
|
||||
[Containments][46][Applets][82][Configuration]
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][46][Applets][87][Configuration]
|
||||
PreloadWeight=42
|
||||
|
||||
[Containments][46][ConfigDialog]
|
||||
DialogHeight=540
|
||||
DialogWidth=720
|
||||
DialogHeight=744
|
||||
DialogWidth=1093
|
||||
|
||||
[Containments][46][Configuration]
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][46][General]
|
||||
extraItems=org.kde.plasma.volume,org.kde.plasma.keyboardindicator,org.kde.plasma.mediacontroller,org.kde.plasma.devicenotifier,org.kde.plasma.networkmanagement,org.kde.plasma.battery,org.kde.plasma.bluetooth,org.kde.plasma.notifications,org.kde.kdeconnect,org.kde.plasma.nightcolorcontrol,org.kde.kscreen
|
||||
extraItems=org.kde.plasma.volume,org.kde.plasma.keyboardindicator,org.kde.plasma.mediacontroller,org.kde.plasma.devicenotifier,org.kde.plasma.networkmanagement,org.kde.plasma.battery,org.kde.plasma.bluetooth,org.kde.plasma.notifications,org.kde.kdeconnect,org.kde.plasma.nightcolorcontrol,org.kde.kscreen,org.kde.plasma.keyboardlayout,org.kde.plasma.manage-inputmethod
|
||||
iconSize=1
|
||||
knownItems=org.kde.plasma.volume,org.kde.plasma.keyboardindicator,org.kde.plasma.mediacontroller,org.kde.plasma.devicenotifier,org.kde.plasma.clipboard,org.kde.plasma.networkmanagement,org.kde.plasma.battery,org.kde.plasma.bluetooth,org.kde.plasma.notifications,org.kde.kdeconnect,org.kde.plasma.nightcolorcontrol
|
||||
knownItems=org.kde.plasma.volume,org.kde.plasma.keyboardindicator,org.kde.plasma.mediacontroller,org.kde.plasma.devicenotifier,org.kde.plasma.clipboard,org.kde.plasma.networkmanagement,org.kde.plasma.battery,org.kde.plasma.bluetooth,org.kde.plasma.notifications,org.kde.kdeconnect,org.kde.plasma.nightcolorcontrol,org.kde.plasma.keyboardlayout,org.kde.plasma.manage-inputmethod
|
||||
|
||||
[Containments][63]
|
||||
ItemGeometriesHorizontal=
|
||||
ItemGeometries-1600x900=Applet-86:1280,16,320,304,0;
|
||||
ItemGeometries-1920x1080=Applet-86:1280,16,320,304,0;
|
||||
ItemGeometriesHorizontal=Applet-86:1280,16,320,304,0;
|
||||
activityId=1de2555c-8dce-4b05-9048-0576a7cc6b7a
|
||||
formfactor=0
|
||||
immutability=1
|
||||
@@ -455,6 +503,25 @@ location=0
|
||||
plugin=org.kde.plasma.folder
|
||||
wallpaperplugin=org.kde.image
|
||||
|
||||
[Containments][63][Applets][86]
|
||||
immutability=1
|
||||
plugin=org.kde.plasma.systemmonitor
|
||||
|
||||
[Containments][63][Applets][86][Configuration]
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][63][Applets][86][Configuration][Appearance]
|
||||
chartFace=org.kde.ksysguard.piechart
|
||||
title=Memory Usage
|
||||
|
||||
[Containments][63][Applets][86][Configuration][SensorColors]
|
||||
memory/physical/used=61,174,233
|
||||
|
||||
[Containments][63][Applets][86][Configuration][Sensors]
|
||||
highPrioritySensorIds=["memory/physical/used"]
|
||||
lowPrioritySensorIds=["memory/physical/total"]
|
||||
totalSensors=["memory/physical/usedPercent"]
|
||||
|
||||
[Containments][63][ConfigDialog]
|
||||
DialogHeight=660
|
||||
DialogWidth=880
|
||||
@@ -464,15 +531,16 @@ PreloadWeight=0
|
||||
|
||||
[Containments][63][General]
|
||||
ToolBoxButtonState=topcenter
|
||||
ToolBoxButtonX=717
|
||||
ToolBoxButtonY=34
|
||||
positions=1,15,desktop:/arduino-arduinoide.desktop,0,0,desktop:/LTspice XVII.desktop,0,1,desktop:/spacefm.desktop,0,2
|
||||
sortMode=-1
|
||||
ToolBoxButtonX=611
|
||||
ToolBoxButtonY=32
|
||||
|
||||
[Containments][63][Wallpaper][org.kde.image][General]
|
||||
Image=file:///usr/share/wallpapers/openSUSEdefault/contents/images/1920x1080.jpg
|
||||
|
||||
[Containments][64]
|
||||
ItemGeometries-1600x900=
|
||||
ItemGeometries-1920x1080=
|
||||
ItemGeometriesHorizontal=
|
||||
activityId=1de2555c-8dce-4b05-9048-0576a7cc6b7a
|
||||
formfactor=0
|
||||
immutability=1
|
||||
@@ -488,6 +556,8 @@ PreloadWeight=0
|
||||
Image=file:///usr/share/wallpapers/openSUSEdefault/contents/images/1920x1080.jpg
|
||||
|
||||
[Containments][65]
|
||||
ItemGeometries-1600x900=
|
||||
ItemGeometries-1920x1080=
|
||||
ItemGeometriesHorizontal=
|
||||
activityId=1de2555c-8dce-4b05-9048-0576a7cc6b7a
|
||||
formfactor=0
|
||||
@@ -501,9 +571,11 @@ wallpaperplugin=org.kde.image
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][65][Wallpaper][org.kde.image][General]
|
||||
Image=file:///usr/share/wallpapers/Next/contents/images/1920x1080.jpg
|
||||
Image=file:///usr/share/wallpapers/openSUSEdefault/contents/images/1920x1080.jpg
|
||||
|
||||
[Containments][72]
|
||||
ItemGeometries-1920x1080=
|
||||
ItemGeometriesHorizontal=
|
||||
activityId=1de2555c-8dce-4b05-9048-0576a7cc6b7a
|
||||
formfactor=0
|
||||
immutability=1
|
||||
@@ -516,7 +588,31 @@ wallpaperplugin=org.kde.image
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][72][Wallpaper][org.kde.image][General]
|
||||
Image=file:///usr/share/wallpapers/Next/contents/images/1920x1080.jpg
|
||||
Image=file:///usr/share/wallpapers/openSUSEdefault/contents/images/1920x1080.jpg
|
||||
|
||||
[Containments][79]
|
||||
activityId=1de2555c-8dce-4b05-9048-0576a7cc6b7a
|
||||
formfactor=0
|
||||
immutability=1
|
||||
lastScreen=3
|
||||
location=0
|
||||
plugin=org.kde.plasma.folder
|
||||
wallpaperplugin=org.kde.image
|
||||
|
||||
[Containments][79][Configuration]
|
||||
PreloadWeight=0
|
||||
|
||||
[Containments][79][Wallpaper][org.kde.image][General]
|
||||
Image=file:///usr/share/wallpapers/openSUSEdefault/contents/images/1920x1080.jpg
|
||||
|
||||
[Containments][90][Configuration]
|
||||
PreloadWeight=42
|
||||
|
||||
[Containments][91][Configuration]
|
||||
PreloadWeight=42
|
||||
|
||||
[Containments][92][Configuration]
|
||||
PreloadWeight=42
|
||||
|
||||
[Containments63Appletsts][68][Configuration][General]
|
||||
noteId=833e4740-3210-484e-8f6a-a547231739
|
||||
@@ -526,4 +622,4 @@ immutability=1
|
||||
|
||||
[ScreenMapping]
|
||||
itemsOnDisabledScreens=
|
||||
screenMapping=desktop:/spacefm.desktop,0,desktop:/LTspice XVII.desktop,0,desktop:/arduino-arduinoide.desktop,0
|
||||
screenMapping=desktop:/arduino-arduinoide.desktop,0,desktop:/PDF,0,desktop:/chrome-kkealmeijinhmkcnkmcpgpcjbgbffnjn-Default.desktop,0,desktop:/spacefm.desktop,0,desktop:/brave-efjpoieainaodhnlgcofglmehiojbpeb-Profile_1.desktop,0,desktop:/LTspice XVII.desktop,0,desktop:/chrome-bacfkhdndchjgmnjeggllicejaegbing-Default.desktop,0
|
||||
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
/usr/bin/chromium --password-store=kwallet5 "$@"
|
||||
@@ -138,7 +138,7 @@ bulk_replace(){
|
||||
set -u
|
||||
old=$1
|
||||
new=$2
|
||||
ag -l "$old" | xargs -l sed -i "s/${old}/${new}/g"
|
||||
ag -l "$old" | xargs -l sed -Ei "s#${old}#${new}#g"
|
||||
# ag -l "$old"
|
||||
}
|
||||
|
||||
@@ -182,12 +182,49 @@ kwinCompositorReload(){
|
||||
qdbus-qt5 org.kde.KWin /Compositor resume
|
||||
}
|
||||
|
||||
# format cookies copied from chrome cookie table
|
||||
# Usage cat file | formatChromeCookie domain.com
|
||||
formatChromeCookie(){
|
||||
echo -e "# Netscape HTTP Cookie File\n\n"
|
||||
cat /dev/stdin | cut -f 1,2 | xargs -l echo -e ".$1 TRUE / FALSE 0 " | sed 's/ /\t/g'
|
||||
}
|
||||
|
||||
# List available vaccine centers
|
||||
cowin_list(){
|
||||
curl -s -X GET \
|
||||
"https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=303&date=$(date +'%d-%m-%Y' --date '1 day')" \
|
||||
-H "accept: application/json" \
|
||||
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36' | jq
|
||||
|
||||
chromewayland(){
|
||||
chromium --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
}
|
||||
|
||||
# pidEnv <PID> . Print environment variables of a PID.
|
||||
pidEnv(){
|
||||
cat /proc/$(pgrep kwin)/environ | tr '\0' '\n' | awk '{ print "export "$0}'
|
||||
}
|
||||
|
||||
# Copy files from local to remote
|
||||
rsyncfast(){
|
||||
rsync -zaP --delete $@
|
||||
}
|
||||
|
||||
# Render a subtitle into a video
|
||||
# <video file> <.ass subtitle file> <output file>
|
||||
subtitleBurn(){
|
||||
ffmpeg -i "$1" -vf "ass=$2" $3
|
||||
}
|
||||
|
||||
# Gen random password
|
||||
genPassword(){
|
||||
node -p "require('base-x')('!#$%&()*+,-.0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~' ).encode( crypto.randomBytes(${1:-15}) )"
|
||||
}
|
||||
|
||||
# Convert json to csv with column headers
|
||||
# cat file.json | this-tool json2csv
|
||||
json2csv(){
|
||||
jq -r '(map(keys) | add | unique) as $cols | map(. as $row | $cols | map($row[.])) as $rows | $cols, $rows[] | @csv'
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
bin/hari-tools.sh
|
||||
bin/_hari-tools-completion.sh
|
||||
bin/bash-session
|
||||
./bin/chromium
|
||||
./bin/hari-tools.sh
|
||||
./bin/bash-session
|
||||
|
||||
@@ -38,4 +38,9 @@ export PATH=/opt/android-sdk/platform-tools:$PATH
|
||||
export USER_PROFILEREAD=1
|
||||
|
||||
|
||||
export INPUT_METHOD=ibus
|
||||
export GTK_IM_MODULE=ibus
|
||||
export XMODIFIERS=@im=ibus
|
||||
export QT_IM_MODULE=ibus
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user