6 Commits
Author SHA1 Message Date
harish2704 eb5f9824a6 Merge branch 'master' of github.com:harish2704/dotFiles 2023-09-19 02:33:42 +05:30
harish2704 cfc9025f83 Rm old files 2023-09-19 02:33:25 +05:30
harish2704 e6ad0f75ea Install node using nvm 2023-09-19 00:26:56 +05:30
harish2704 6f9609bb6f Misc fixes 2023-09-19 00:21:52 +05:30
harish2704 45186b5796 Added installer script 2023-09-19 00:02:37 +05:30
harish2704 bad43a250c Updates 2023-09-18 22:00:37 +05:30
13 changed files with 272 additions and 299 deletions
+3
View File
@@ -0,0 +1,3 @@
home/.local/Apps/neovim-distros/lunarvim/cache
home/.local/Apps/neovim-distros/lunarvim/share
home/.local/Apps/neovim-distros/lunarvim/LunarVim
+7 -2
View File
@@ -42,8 +42,13 @@ then
fi
. /usr/share/fzf/shell/key-bindings.bash
. $HOME/Projects/Github/dotFiles/home/.local/Apps/daily-utils/hari-autocomplete.sh
if [[ -f /usr/share/fzf/shell/key-bindings.bash ]]; then
. /usr/share/fzf/shell/key-bindings.bash
fi
if [[ -f $HOME/.local/Apps/daily-utils/hari-autocomplete.sh ]]; then
. $HOME/.local/Apps/daily-utils/hari-autocomplete.sh
fi
#export PS1='\e[1;36;40m[\u@\h\e[1;33;40m \W]\e[0;37;40m\$ '
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
+2 -2
View File
@@ -1,8 +1,8 @@
font:
size: 13.0
size: 14.0
normal:
# family: Source Code Pro Medium
family: DejaVuSansMono Nerd Font Mono
family: CodeNewRoman Nerd Font Mono
key_bindings:
- { key: Return, mods: Shift, chars: "\e[13;2u" }
@@ -0,0 +1,25 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE fontconfig SYSTEM 'urn:fontconfig:fonts.dtd'>
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
<!-- Generic alias this font to sans-serif -->
<alias>
<family>Manjari</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- For Malayalam sans-serif, prefer this font -->
<match>
<test compare="contains" name="lang">
<string>ml</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>Manjari</string>
</edit>
</match>
<dir>~/.fonts</dir>
</fontconfig>
+31 -10
View File
@@ -32,7 +32,6 @@ _k_friendly_name=Custom Shortcuts Service
{3c04e4ea-1f6e-430e-82bb-0e4adb79a6a3}=none,none,Scan
{5d4c37a6-d8b3-40b0-aa6a-92f325302538}=none,none,Save Profile 1
{81787487-f07d-4111-b1cf-9da1406075ca}=none,none,Load Profile 1
{96759833-7730-4bd7-b4e7-d2c785658045}=Ctrl+Alt+T,none,Launch Konsole
{96c0b3ae-9d0d-45dd-b275-c11c01424ff7}=none,none,Preview
{9f894206-fbcf-48f1-9fb3-df9cec37bacb}=none,none,Load Profile 2
{aaed7bc1-a7bc-4abc-b319-9b95abb5216b}=none,none,Cancel Scan
@@ -57,13 +56,16 @@ _k_friendly_name=Session Management
[kwin]
Activate Window Demanding Attention=Ctrl+Alt+A,Meta+Ctrl+A,Activate Window Demanding Attention
Decrease Opacity=none,,Decrease Opacity of Active Window by 5 %
Decrease Opacity=Meta+_,,Decrease Opacity of Active Window by 5%
Edit Tiles=Meta+T,Meta+T,Toggle Tiles Editor
Expose=Ctrl+F9,Ctrl+F9,Toggle Present Windows (Current desktop)
ExposeAll=Ctrl+F10\tLaunch (C),Ctrl+F10\tLaunch (C),Toggle Present Windows (All desktops)
ExposeClass=Ctrl+F7,Ctrl+F7,Toggle Present Windows (Window class)
Increase Opacity=none,,Increase Opacity of Active Window by 5 %
Invert Screen Colors=none,,Invert Screen Colors
ExposeClassCurrentDesktop=none,none,Toggle Present Windows (Window class on current desktop)
Increase Opacity=Meta++,,Increase Opacity of Active Window by 5%
Invert Screen Colors=none,none,Invert Screen Colors
Kill Window=Ctrl+Alt+Esc,Meta+Ctrl+Esc,Kill Window
Move Tablet to Next Output=none,none,Move the tablet to the next output
MoveMouseToCenter=Meta+F6,Meta+F6,Move Mouse to Center
MoveMouseToFocus=Meta+F5,Meta+F5,Move Mouse to Focus
MoveZoomDown=none,none,Move Zoomed Area Downwards
@@ -72,7 +74,7 @@ MoveZoomRight=none,none,Move Zoomed Area to Right
MoveZoomUp=none,none,Move Zoomed Area Upwards
Overview=Meta+W,Meta+W,Toggle Overview
Setup Window Shortcut=none,,Setup Window Shortcut
Show Desktop=Meta+D,Meta+D,Show Desktop
Show Desktop=Meta+D,Meta+D,Peek at Desktop
ShowDesktopGrid=Ctrl+F8,Meta+F8,Show Desktop Grid
Suspend Compositing=Alt+Shift+F12,Alt+Shift+F12,Suspend Compositing
Switch One Desktop Down=Ctrl+Alt+Down,Meta+Ctrl+Down,Switch One Desktop Down
@@ -115,6 +117,10 @@ Switch to Screen 4=none,,Switch to Screen 4
Switch to Screen 5=none,,Switch to Screen 5
Switch to Screen 6=none,,Switch to Screen 6
Switch to Screen 7=none,,Switch to Screen 7
Switch to Screen Above=none,,Switch to Screen Above
Switch to Screen Below=none,,Switch to Screen Below
Switch to Screen to the Left=none,,Switch to Screen to the Left
Switch to Screen to the Right=none,,Switch to Screen to the Right
Toggle Night Color=none,none,Toggle Night Color
Toggle Window Raise/Lower=none,,Toggle Window Raise/Lower
Walk Through Desktop List=none,,Walk Through Desktop List
@@ -140,14 +146,18 @@ Window Maximize=Meta+PgUp,Meta+PgUp,Maximize Window
Window Maximize Horizontal=none,,Maximize Window Horizontally
Window Maximize Vertical=none,,Maximize Window Vertically
Window Minimize=Meta+PgDown,Meta+PgDown,Minimize Window
Window Move=none,,Move Window
Window Move=F6,,Move Window
Window Move Center=none,,Move Window to the Center
Window No Border=none,,Hide Window Border
Window No Border=none,,Toggle Window Titlebar and Frame
Window On All Desktops=none,,Keep Window on All Desktops
Window One Desktop Down=Ctrl+Alt+Shift+Down,Meta+Ctrl+Shift+Down,Window One Desktop Down
Window One Desktop Up=Ctrl+Alt+Shift+Up,Meta+Ctrl+Shift+Up,Window One Desktop Up
Window One Desktop to the Left=Ctrl+Alt+Shift+Left,Meta+Ctrl+Shift+Left,Window One Desktop to the Left
Window One Desktop to the Right=Ctrl+Alt+Shift+Right,Meta+Ctrl+Shift+Right,Window One Desktop to the Right
Window One Screen Down=none,,Window One Screen Down
Window One Screen Up=none,,Window One Screen Up
Window One Screen to the Left=none,,Window One Screen to the Left
Window One Screen to the Right=none,,Window One Screen to the Right
Window Operations Menu=Alt+F3,Alt+F3,Window Operations Menu
Window Pack Down=none,,Move Window Down
Window Pack Left=none,,Move Window Left
@@ -200,7 +210,7 @@ Window to Screen 6=none,,Window to Screen 6
Window to Screen 7=none,,Window to Screen 7
_k_friendly_name=KWin
view_actual_size=Meta+0,Meta+0,Zoom to Actual Size
view_zoom_in=Meta+=,Meta+=,Zoom In
view_zoom_in=Meta+=,Meta++,Zoom In
view_zoom_out=Meta+-,Meta+-,Zoom Out
[mediacontrol]
@@ -229,10 +239,20 @@ _launch=none,none,Flameshot
_k_friendly_name=Dolphin
_launch=Meta+E,Meta+E,Dolphin
[org.kde.kcalc.desktop]
_k_friendly_name=KCalc
_launch=Launch (1),Launch (1),KCalc
[org.kde.konsole.desktop]
NewTab=none,none,Open a New Tab
NewWindow=none,none,Open a New Window
_k_friendly_name=Konsole
_launch=Ctrl+Alt+T,none,Konsole
[org.kde.krunner.desktop]
RunClipboard=Alt+Shift+F2,Alt+Shift+F2,Run command on clipboard contents
_k_friendly_name=KRunner
_launch=Alt+Space\tAlt+F2\tSearch,Alt+Space\tAlt+F2\tSearch,KRunner
_launch=Alt+F2\tAlt+Space,Alt+Space\tAlt+F2\tSearch,KRunner
[org.kde.plasma.emojier.desktop]
_k_friendly_name=Emoji Selector
@@ -243,7 +263,7 @@ ActiveWindowScreenShot=none,Meta+Print,Capture Active Window
CurrentMonitorScreenShot=Print,none,Capture Current Monitor
FullScreenScreenShot=Shift+Print,Shift+Print,Capture Entire Desktop
OpenWithoutScreenshot=none,none,Launch Spectacle without capturing
RectangularRegionScreenShot=none,Meta+Shift+Print,Capture Rectangular Region
RectangularRegionScreenShot=Meta+Shift+Print,Meta+Shift+Print,Capture Rectangular Region
WindowUnderCursorScreenShot=Meta+Ctrl+Print,Meta+Ctrl+Print,Capture Window Under Cursor
_k_friendly_name=Spectacle
_launch=none,Print,Launch Spectacle
@@ -275,6 +295,7 @@ activate task manager entry 8=Meta+8,Meta+8,Activate Task Manager Entry 8
activate task manager entry 9=Meta+9,Meta+9,Activate Task Manager Entry 9
activate widget 27=none,none,Activate Task Manager Widget
activate widget 4=Alt+F1,none,Activate Application Launcher Widget
activate widget 69=none,none,Activate Digital Clock Widget
clear-history=none,none,Clear Clipboard History
clipboard_action=Ctrl+Alt+X,Meta+Ctrl+X,Automatic Action Popup Menu
cycle-panels=Meta+Alt+P,Meta+Alt+P,Move keyboard focus between panels
+6 -28
View File
@@ -1,5 +1,5 @@
[$Version]
update_info=spectacle_shortcuts.upd:spectacle-migrate-shortcuts
update_info=spectacle_shortcuts.upd:spectacle-migrate-shortcuts,konsole_globalaccel.upd:konsole_globalaccel,konsole.upd:konsole_globalaccel
[ColorEffects:Disabled]
ChangeSelectionColor[$d]
@@ -140,7 +140,7 @@ DataCount=5
[Data_1]
Comment=KMenuEdit Global Shortcuts
DataCount=2
DataCount=1
Enabled=true
Name=KMenuEdit
SystemGroup=1
@@ -176,32 +176,6 @@ Key=
Type=SHORTCUT
Uuid={d03619b6-9b3c-48cc-9d9c-a2aadb485550}
[Data_1_2]
Comment=Global keyboard shortcut to launch Konsole
Enabled=true
Name=Launch Konsole
Type=MENUENTRY_SHORTCUT_ACTION_DATA
[Data_1_2Actions]
ActionsCount=1
[Data_1_2Actions0]
CommandURL=org.kde.konsole.desktop
Type=MENUENTRY
[Data_1_2Conditions]
Comment=
ConditionsCount=0
[Data_1_2Triggers]
Comment=Simple_action
TriggersCount=1
[Data_1_2Triggers0]
Key=Ctrl+Alt+T
Type=SHORTCUT
Uuid={96759833-7730-4bd7-b4e7-d2c785658045}
[Data_2]
Comment=This group contains various examples demonstrating most of the features of KHotkeys. (Note that this group and all its actions are disabled by default.)
DataCount=8
@@ -1273,6 +1247,10 @@ Key=
Type=SHORTCUT
Uuid={96c0b3ae-9d0d-45dd-b275-c11c01424ff7}
[DirSelect Dialog]
DirSelectDialog Size[$d]
History Items[$d]
[General]
AccentColor[$d]
BrowserApplication[$d]
+45 -3
View File
@@ -1,5 +1,5 @@
[$Version]
update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port-minimizeanimation-effect-to-js,kwin.upd:port-scale-effect-to-js,kwin.upd:port-dimscreen-effect-to-js,kwin.upd:auto-bordersize,kwin.upd:animation-speed,kwin.upd:desktop-grid-click-behavior,kwin.upd:no-swap-encourage,kwin.upd:make-translucency-effect-disabled-by-default,kwin.upd:remove-flip-switch-effect,kwin.upd:remove-cover-switch-effect,kwin.upd:remove-cubeslide-effect,kwin.upd:remove-xrender-backend,kwin.upd:enable-scale-effect-by-default,kwin.upd:overview-group-plugin-id,kwin.upd:animation-speed-cleanup
update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port-minimizeanimation-effect-to-js,kwin.upd:port-scale-effect-to-js,kwin.upd:port-dimscreen-effect-to-js,kwin.upd:auto-bordersize,kwin.upd:animation-speed,kwin.upd:desktop-grid-click-behavior,kwin.upd:no-swap-encourage,kwin.upd:make-translucency-effect-disabled-by-default,kwin.upd:remove-flip-switch-effect,kwin.upd:remove-cover-switch-effect,kwin.upd:remove-cubeslide-effect,kwin.upd:remove-xrender-backend,kwin.upd:enable-scale-effect-by-default,kwin.upd:overview-group-plugin-id,kwin.upd:animation-speed-cleanup,kwin.upd:replace-cascaded-zerocornered
[Compositing]
GLTextureFilter=1
@@ -7,6 +7,9 @@ OpenGLIsUnsafe=false
[Desktops]
Id_1=530b2e8c-a321-41ca-ba52-2fba5b5e2f52
Id_10=af9aa3e6-6382-4ccb-a92d-800b0b1f74a7
Id_11=7aaace88-9ee2-43c0-844c-19c5514523d3
Id_12=63c876d8-76e7-4a8b-9903-7b30d31363e2
Id_2=76ffaa94-4f73-4520-a3e0-480eb3fa4d87
Id_3=84ef5d92-b39b-4f01-b593-76799daa2ce0
Id_4=5fe31393-808e-4747-8bfe-9a4df1075a59
@@ -15,6 +18,9 @@ Id_6=0259dad0-c996-46c7-b8a1-364756a779ed
Id_7=fc82803a-f727-408a-aa1f-84e76c11c1cf
Id_8=a52131ec-edac-4001-965f-ce878e73377e
Id_9=2feaf12f-0461-4372-8878-fdf5f282aec0
Name_10=Desktop 2
Name_11=Desktop 3
Name_12=Desktop 4
Name_2=New Desktop
Name_3=New Desktop
Name_4=New Desktop
@@ -23,7 +29,7 @@ Name_6=New Desktop
Name_7=New Desktop
Name_8=New Desktop
Name_9=New Desktop
Number=9
Number=12
Rows=3
[NightColor]
@@ -31,7 +37,7 @@ Active=true
LatitudeAuto=9.9185
LongitudeAuto=76.2558
Mode=Constant
NightTemperature=4800
NightTemperature=4200
[Plugins]
desktopchangeosdEnabled=true
@@ -39,5 +45,41 @@ desktopchangeosdEnabled=true
[Script-desktopchangeosd]
PopupHideDelay=200
[Tiling]
padding=4
[Tiling][0d39903c-8966-51c1-b3a1-c3ebda3dc7d0]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}
[Tiling][37c04cea-60e5-572b-8cdf-0edec2e3e650]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}
[Tiling][4b32c1ec-cf2f-5157-9ba6-70191f308af7]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}
[Tiling][4f220735-699f-553f-a72e-7a926d3f0774]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}
[Tiling][620b6d4f-c2c0-5dcb-abfb-a14e98a46430]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}
[Tiling][6b9c3fe7-c68b-52f5-ace8-17b337127e5e]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}
[Tiling][a3d991e5-e4d6-5b87-b0c7-d6949c612be9]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}
[Tiling][c8c8a1aa-ae6b-5caf-85b7-76aff40574b4]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}
[Tiling][ccd244ca-5575-569f-a8c9-ce17c79b0288]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}
[Tiling][ecc5d445-b642-5d22-991f-6423e65b585e]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}
[Windows]
RollOverDesktops=false
[Xwayland]
Scale=1
+80 -34
View File
@@ -8,8 +8,8 @@
show_thumbnail=1
[Window]
width=1022
height=691
width=1280
height=659
maximized=1
[Desktop]
@@ -31,9 +31,9 @@ dev_show_file-lbl=Mounted _Files
dev_show_file-b=1
dev_dispname-s=%v %s %l %m
dev_dispname-z=%v %s %l %m
dev_automount_optical-b=1
dev_automount_removable-b=1
dev_auto_open-b=1
dev_automount_optical-b=2
dev_automount_removable-b=2
dev_auto_open-b=2
dev_mount_options-s=noexec, nosuid, noatime
dev_mount_options-z=noexec, nosuid, noatime
dev_remount_options-s=noexec, nosuid, noatime
@@ -52,6 +52,7 @@ book_icon-lbl=_Icon
book_show-b=1
book_add-key=100
book_add-keymod=4
main_book-child=cstm_3164fd7c
move_filename-b=1
move_path-b=1
move_type-b=1
@@ -70,7 +71,7 @@ status_info-b=1
main_new_window-key=110
main_new_window-keymod=4
main_search-x=580
main_search-y=427
main_search-y=457
main_search-key=83
main_search-keymod=5
main_terminal-s=konsole
@@ -80,22 +81,22 @@ main_save_tabs-b=1
main_exit-key=113
main_exit-keymod=4
panel1_show-s=////
panel1_show-x=0
panel1_show-x=7
panel1_show-key=49
panel1_show-keymod=4
panel1_show-b=1
panel2_show-s=////
panel2_show-x=0
panel2_show-x=5
panel2_show-key=50
panel2_show-keymod=4
panel2_show-b=2
panel3_show-s=////
panel3_show-x=0
panel3_show-x=1
panel3_show-key=51
panel3_show-keymod=4
panel3_show-b=2
panel4_show-s=////
panel4_show-x=0
panel4_show-x=2
panel4_show-key=52
panel4_show-keymod=4
panel4_show-b=2
@@ -157,13 +158,13 @@ task_show_manager-x=257
task_show_manager-b=2
task_hide_manager-b=1
task_popups-s=600
task_popups-x=744
task_popups-x=762
task_popups-y=432
task_popups-z=324
task_pop_all-b=2
task_pop_top-s=750
task_pop_top-x=750
task_pop_top-y=342
task_pop_top-x=1600
task_pop_top-y=825
task_pop_top-z=204
task_pop_top-b=2
task_pop_above-b=2
@@ -298,7 +299,6 @@ prop_perm-key=112
prop_perm-keymod=4
panel1_show_toolbox-b=1
panel1_show_devmon-b=1
panel1_show_dirtree-b=1
panel1_show_book-b=1
panel1_show_sidebar-b=2
panel1_list_detailed-x=2
@@ -450,7 +450,7 @@ panel1_slider_positions-y=198
panel_sliders-s=405
panel_sliders-x=848
panel_sliders-y=579
panel_sliders-z=576
panel_sliders-z=748
cstm_7551f58c-x=0
cstm_7551f58c-key=103
cstm_7551f58c-keymod=4
@@ -466,22 +466,22 @@ file_dlg-y=630
panel1_show_pathbar-b=1
text_dlg-s=600
text_dlg-x=500
text_dlg-y=439
text_dlg-y=562
text_dlg-z=400
cstm_779468ff-y=
cstm_779468ff-key=118
cstm_779468ff-keymod=67108864
cstm_779468ff-label=GVim
cstm_779468ff-next=cstm_2852ad6c
cstm_779468ff-next=cstm_44b46be8
cstm_779468ff-prev=cstm_46ad647a
cstm_779468ff-line=nvim-konsole -p %F
cstm_779468ff-line=nv -p %F
cstm_779468ff-task_err=1
cstm_779468ff-task_out=1
cstm_779468ff-keep=1
app_dlg-s=500
app_dlg-x=400
app_dlg-y=420
app_dlg-z=468
app_dlg-x=1920
app_dlg-y=1005
app_dlg-z=484
arc_tar_bz2-s=
cstm_46ad647a-y=
cstm_46ad647a-key=88
@@ -690,8 +690,8 @@ panel1_detcol_perm0-b=1
panel1_detcol_owner0-b=1
panel1_detcol_date0-b=1
panel1_slider_positions0-s=292
panel1_slider_positions0-x=275
panel1_slider_positions0-y=261
panel1_slider_positions0-x=351
panel1_slider_positions0-y=233
panel1_show_toolbox1-b=1
panel1_show_devmon1-b=1
panel1_show_book1-b=1
@@ -723,7 +723,7 @@ panel2_detcol_date1-y=100
panel2_detcol_date1-b=1
panel2_slider_positions1-s=0
panel2_slider_positions1-x=0
panel2_slider_positions1-y=0
panel2_slider_positions1-y=384
panel1_show_toolbox2-b=1
panel1_show_devmon2-b=1
panel1_show_book2-b=1
@@ -736,7 +736,7 @@ panel1_detcol_owner2-b=1
panel1_detcol_date2-b=1
panel1_slider_positions2-s=292
panel1_slider_positions2-x=160
panel1_slider_positions2-y=198
panel1_slider_positions2-y=72
panel3_show_toolbox2-b=1
panel3_show_devmon2-b=2
panel3_show_book2-b=2
@@ -755,7 +755,7 @@ panel3_detcol_date2-y=100
panel3_detcol_date2-b=1
panel3_slider_positions2-s=0
panel3_slider_positions2-x=0
panel3_slider_positions2-y=0
panel3_slider_positions2-y=233
panel4_show_toolbox2-b=1
panel4_show_devmon2-b=2
panel4_show_book2-b=2
@@ -802,8 +802,8 @@ panel2_detcol_owner0-b=1
panel2_detcol_date0-y=100
panel2_detcol_date0-b=1
panel2_slider_positions0-s=0
panel2_slider_positions0-x=236
panel2_slider_positions0-y=384
panel2_slider_positions0-x=339
panel2_slider_positions0-y=233
panel2_show_toolbox2-b=1
panel2_show_devmon2-b=1
panel2_show_book2-b=1
@@ -815,8 +815,8 @@ panel2_detcol_perm2-b=1
panel2_detcol_owner2-b=1
panel2_detcol_date2-b=1
panel2_slider_positions2-s=0
panel2_slider_positions2-x=0
panel2_slider_positions2-y=0
panel2_slider_positions2-x=339
panel2_slider_positions2-y=236
panel1_show_toolbox3-b=1
panel1_show_devmon3-b=1
panel1_show_book3-b=1
@@ -870,7 +870,7 @@ panel3_detcol_date0-y=1046
panel3_detcol_date0-b=1
panel3_slider_positions0-s=0
panel3_slider_positions0-x=293
panel3_slider_positions0-y=402
panel3_slider_positions0-y=233
cstm_0c2251bc-y=
cstm_0c2251bc-key=103
cstm_0c2251bc-keymod=67108864
@@ -938,7 +938,7 @@ panel4_detcol_date0-y=100
panel4_detcol_date0-b=1
panel4_slider_positions0-s=0
panel4_slider_positions0-x=203
panel4_slider_positions0-y=325
panel4_slider_positions0-y=233
panel3_show_toolbox3-b=1
panel3_show_devmon3-b=1
panel3_show_book3-b=2
@@ -979,7 +979,7 @@ cstm_1436645d-keep=1
cstm_2852ad6c-y=
cstm_2852ad6c-label=code
cstm_2852ad6c-next=cstm_39c0c564
cstm_2852ad6c-prev=cstm_779468ff
cstm_2852ad6c-prev=cstm_44b46be8
cstm_2852ad6c-line=code
cstm_2852ad6c-task=1
cstm_2852ad6c-task_err=1
@@ -987,6 +987,7 @@ cstm_2852ad6c-task_out=1
cstm_2852ad6c-keep=1
cstm_218bb12f-y=
cstm_218bb12f-label=gnome-terminal
cstm_218bb12f-next=cstm_78d6ed67
cstm_218bb12f-prev=cstm_39c0c564
cstm_218bb12f-line=gnome-terminal
cstm_218bb12f-task=1
@@ -1005,11 +1006,56 @@ cstm_39c0c564-task_err=1
cstm_39c0c564-task_out=1
cstm_39c0c564-keep=1
cstm_570b5ce2-y=
cstm_570b5ce2-key=84
cstm_570b5ce2-keymod=5
cstm_570b5ce2-label=bash-session
cstm_570b5ce2-next=cstm_1436645d
cstm_570b5ce2-prev=cstm_7551f58c
cstm_570b5ce2-line=bash-session -n
cstm_570b5ce2-task_err=1
cstm_570b5ce2-task_out=1
cstm_570b5ce2-keep=1
cstm_3164fd7c-x=3
cstm_3164fd7c-z=/home/harish
cstm_3164fd7c-label=Home
cstm_3164fd7c-next=cstm_5e51738c
cstm_3164fd7c-parent=main_book
cstm_5e51738c-x=3
cstm_5e51738c-z=/home/harish/Downloads
cstm_5e51738c-label=Downloads
cstm_5e51738c-next=cstm_7610ef7d
cstm_5e51738c-prev=cstm_3164fd7c
cstm_7610ef7d-x=3
cstm_7610ef7d-z=/home/harish/Projects
cstm_7610ef7d-label=Projects
cstm_7610ef7d-next=cstm_460a2fe0
cstm_7610ef7d-prev=cstm_5e51738c
cstm_44b46be8-y=
cstm_44b46be8-key=118
cstm_44b46be8-keymod=67108872
cstm_44b46be8-label=Lvim
cstm_44b46be8-icon=nvim
cstm_44b46be8-next=cstm_2852ad6c
cstm_44b46be8-prev=cstm_779468ff
cstm_44b46be8-line=env HISTSIZE=10000 HISTFILE="%d/.bash_history" lvim
cstm_44b46be8-task_err=1
cstm_44b46be8-task_out=1
cstm_44b46be8-keep=1
cstm_78d6ed67-y=
cstm_78d6ed67-key=68
cstm_78d6ed67-keymod=5
cstm_78d6ed67-label=devSetup
cstm_78d6ed67-prev=cstm_218bb12f
cstm_78d6ed67-line=hari-tools.sh devSetup
cstm_78d6ed67-task_err=1
cstm_78d6ed67-task_out=1
cstm_78d6ed67-keep=1
cstm_460a2fe0-x=3
cstm_460a2fe0-z=/home/harish/Documents
cstm_460a2fe0-label=Documents
cstm_460a2fe0-next=cstm_579daf70
cstm_460a2fe0-prev=cstm_7610ef7d
cstm_579daf70-x=3
cstm_579daf70-z=/home/harish/.file-headers
cstm_579daf70-label=.file-headers
cstm_579daf70-prev=cstm_460a2fe0
@@ -3,7 +3,4 @@
./bin/bash-session
./bin/ibus-next-engine.py
./bin/csv-split-by-col.py
./bin/dasel_linux_amd64
./bin/octosql
./bin/dsq
./bin/sway-wp-switch
@@ -39,6 +39,10 @@ lvim.builtin.terminal.active = true
lvim.builtin.nvimtree.setup.view.side = "left"
lvim.builtin.nvimtree.setup.renderer.icons.show.git = false
lvim.builtin.lualine.sections.lualine_b = { 'branch', '%f' }
-- Automatically install missing parsers when entering buffer
lvim.builtin.treesitter.auto_install = true
@@ -49,6 +53,8 @@ lvim.builtin.treesitter.auto_install = true
-- -- generic LSP settings <https://www.lunarvim.org/docs/languages#lsp-support>
lvim.lsp.null_ls.setup.timeout_ms = 20000
-- --- disable automatic installation of servers
-- lvim.lsp.installer.setup.automatic_installation = false
@@ -92,6 +98,12 @@ formatters.setup {
-- },
-- }
-- Flutter snippets enable
local luasnip = require("luasnip")
luasnip.filetype_extend("dart", { "flutter" })
-- -- Additional Plugins <https://www.lunarvim.org/docs/plugins#user-plugins>
-- lvim.plugins = {
-- {
@@ -122,12 +134,14 @@ command! -nargs=+ Gr :silent execute 'grep! -nr "<args>" | copen'
command! -nargs=* Grc grep -nr <args>
" Add file header to current buffer. Depends on https://github.com/harish2704/file-header
command! Header :execute '0r!file-header %'
command! Header :execute "0r!file-header '%'"
" Open Terminal in split window
command! Termw :execute '!konsole -e bash-session &'
command! Term :execute 'sp | term'
command! EditSnippet :execute 'lua require("luasnip.loaders").edit_snippet_files()'
" Cd to current file's directory
command! Cwd :execute 'cd %:p:h'
@@ -155,7 +169,7 @@ nmap <Leader><Leader>g :!git gui &<CR>
nmap <M-r> :e!<CR>
" Alt-q Delete current buffer ( Close file )
nmap <M-q> :bd<CR>
nmap <M-q> :BufferKill<CR>
" <Ctrl-Shift-q> force Close buffer
nmap <M-Q> :bd!<CR>
@@ -197,10 +211,12 @@ vmap <C-s> <Esc><c-s>gv
imap <C-s> <Esc><c-s>
nmap <C-PageUp> :BufferLineCyclePrev<CR>
nmap <C-PageDown> :BufferLineCycleNext<CR>
nmap <C-S-PageUp> :BufferLineMovePrev<CR>
nmap <C-S-PageDown> :BufferLineMoveNext<CR>
let g:user_emmet_mode='inv'
let g:user_emmet_install_global = 0
autocmd FileType html,css,vue,jsx,php EmmetInstall
autocmd FileType html,css,vue,jsx,php,javascriptreact EmmetInstall
nmap <C-G> :execute 'Telescope live_grep default_text=' . expand('<cword>')<cr>
]])
-- imap <C-E> <plug>(emmet-expand-abbr)
@@ -213,7 +229,7 @@ vim.keymap.set('n', '<F12>', function() require('dap').step_out() end)
lvim.builtin.dap.active = true
lvim.builtin.which_key.mappings["l"]["f"] = {
function()
require("lvim.lsp.utils").format { timeout_ms = 2000 }
require("lvim.lsp.utils").format { timeout_ms = 20000 }
end,
"Format",
}
@@ -273,6 +289,10 @@ lvim.plugins = {
build = "npm install --prefix server",
lazy = true,
},
{
"jamessan/vim-gnupg",
-- lazy = true,
},
{
"kylechui/nvim-surround",
config = function()
+1
View File
@@ -0,0 +1 @@
LunarVim
-213
View File
@@ -1,213 +0,0 @@
#!/usr/bin/env bash
THIS_DIR=$(dirname $(readlink -f $0))
THIS_FILE=$0
# Maximum allowed length of function name. longer names will break tabular display
MAX_FN_NAME_LEN=30
# Maximum number of documentation lines
MAX_DOC_LINES=3
# list all available commands
list-commands(){
typeset -F | cut -d ' ' -f 3 | grep -v '^_' | sort
}
# list available fonts for a language.
# Usage: THIS_FN <lang_code>
fonts_for_lang(){
fc-list :lang=$1
}
# Open many ssh sessions in separate tabs in gnome-terminal
sshInTabs(){
logins="$@"
for i in $logins; do
gnome-terminal --tab -- bash -c "retry=y; while [ \"\$retry\" = 'y' ]; do ssh $i; echo \'Retry? y/n \(n\) ?\'; read retry; done;";
done
}
# Edit this file
edit(){
${EDITOR:-vim} "$THIS_FILE"
}
# convert text to 8k 1ch wav
genSound(){ echo $1 | espeak --stdout | ffmpeg -i - -ar 8000 -y $2.wav ; }
# Clear SysRq-r if enabled
clearSysRq(){
sudo kbd_mode -s -C /dev/tty7
}
# Print current public ip using ipify API
myIp(){
curl 'https://api.ipify.org?format=json'
}
# Detach existing connection from Bonding
detachFromBond(){
conn=$1
nmcli connection modify $conn connection.master "" connection.slave-type ""
}
# Attach existing connection to A bonding interface
attachToBond(){
bond=$1 # Device name
conn=$2
nmcli connection modify "$conn" master $bond
}
# Generate ssh config entry for each line in csv file.
# arg1 => common suffix for all hosts
# column-1 => host, column-2 => ip
sshConfig(){
suff=${1:-local}
lst=$(cat /dev/stdin | sed 's/"//g');
for line in $lst; do
cols=(${line//,/ })
ip=${cols[1]};
host=${cols[0]};
cat<<EOF
Host ${host}.$suff
HostName $ip
User root
EOF
done
}
# create vmdk disk for a block device
block_dev_to_vmdk(){
[ -z "$2" ] && echo 'block_dev_to_vmdk <path/to/block_dev> <path/to/vmdk>' && exit 1
VBoxManage internalcommands createrawvmdk -filename $2 -rawdisk $1
}
# Decode sha256 id shown in ssh log
ssh-sha256-decode(){ awk '{print $2}' $1 | base64 -d | sha256sum -b | awk '{print $1}' | xxd -r -p | base64 ; }
# Git clone project into Downloads directory, and keep copy of the same as archive
githubdl(){
cd ~/Downloads
git clone $1
projName=$(basename $1)
projName=${projName%.*}
mksquashfs ./$projName $projName.sqfs
}
# Uniq command awk version
uniq(){
awk '!array[$0]++'
}
# Convert video webm format ( optional 2 pass encoding )
video_to_webm(){
src="$(readlink -f "$1")"
dest="$(readlink -f "$2")"
deadline=good
cpu_param='--cpu-used=16'
CODEC=${CODEC:-vp8}
framesCount=$(ffmpeg -i "$src" -vcodec copy -acodec copy -f null /dev/null 2>&1 | grep 'frame=' | sed 's/frame= *\([0-9]*\).*/\1/' )
echo "Frames count = $framesCount . If speed=10 fps, it will take $( python -S -c 'print("%2.2f" % ('$framesCount'/10.0/60))' ) minutes"
if [[ -z "$TWOPASS" ]]; then
ffmpeg -i "$src" -f yuv4mpegpipe - 2>/dev/null | vpxenc ${cpu_param} --codec=$CODEC -p 1 --${deadline} -o "$dest" /dev/stdin
else
pass1File=./video_to_webm_$(date +%s).log
ffmpeg -i "$src" -f yuv4mpegpipe - 2>/dev/null | vpxenc ${cpu_param} --codec=$CODEC -p 2 --${deadline} -o "$dest" --fpf="$pass1File" --pass=1 /dev/stdin
ffmpeg -i "$src" -f yuv4mpegpipe - 2>/dev/null | vpxenc ${cpu_param} --codec=$CODEC -p 2 --${deadline} -o "$dest" --fpf="$pass1File" --pass=2 /dev/stdin
rm $pass1File
fi
}
# Record desktop to h264 mp4 using ffmpeg
record_desktop(){
ffmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -draw_mouse 1 -video_size 1600x900 \
-i :0 -f alsa -ac 2 -i hw:0,0 -vf 'hwupload,scale_vaapi=format=nv12' -c:v h264_vaapi -qp 32 ~/Videos/myscreencast-$(date +%F_%T).mp4
}
# Bulk replace string in all files in the directory
bulk_replace(){
old=$1
new=$2
ag -l "$old" | xargs -l sed -i "s/${old}/${new}/g"
# ag -l "$old"
}
# Import csv file into postgres table by autogenerating table and column names
psql_csv_table(){
local db=$1
shift
local src=$1
shift
if [[ -z "$src" || -z "$db" ]]; then
echo "$0 <db> <csv file>";
exit
fi
local tbl=$(basename $src)
tbl="${tbl%.*}"
local cols=$( head -n1 $src )
# cat<<EOF
cat<<EOF | psql "$@" $db
DROP TABLE IF EXISTS "$tbl";
CREATE TABLE "$tbl" (
$( echo $cols | sed -E -e 's/([^,]*)/\1 text/g' )
);
EOF
cat "$src" | psql "$@" $db -c "COPY \"$tbl\"( $( echo $cols | sed -E -e "s/'/\"/g" -e 's/([^,]*)/\1/g' ) ) FROM STDIN CSV HEADER"
}
# Swap two files
swap() {
local TMPFILE=tmp.$$;
mv "$1" $TMPFILE;
mv "$2" "$1";
mv $TMPFILE "$2";
}
# Reload kwin Compositor
kwinCompositorReload(){
qdbus-qt5 org.kde.KWin /Compositor suspend
qdbus-qt5 org.kde.KWin /Compositor resume
}
# Setup autocomplete. run eval "$(THIS_FILE setup-autocomplete)"
setup-autocomplete(){
cat<<EOF
_complete_hdutils(){
saveIFS=\$IFS
IFS=\$'\n'
case \$COMP_CWORD in
1)
COMPREPLY=( \$( compgen -W "\$( $THIS_FILE list-commands )" -- "\${COMP_WORDS[COMP_CWORD]}") )
;;
*)
COMPREPLY=( \$( compgen -o default -- "\${COMP_WORDS[COMP_CWORD]}") )
;;
esac
IFS="\$saveIFS"
return 0
}
complete -F _complete_hdutils $THIS_FILE
EOF
}
cmd=$1
shift
allFunctions=$(list-commands | tr '\n' ' ')
if [ -n "$cmd" ] && [[ " $allFunctions " =~ " $cmd " ]]; then
$cmd "$@"
else
cat<<EOF
Available commands:
$( list-commands | xargs -I@@ bash -c 'tabs '$MAX_FN_NAME_LEN'; \
echo -en @@\\t; grep -B'$MAX_DOC_LINES' -A0 @@\(\) '$THIS_FILE' | grep "^#" | sed "s#THIS_FILE#'$THIS_FILE'#g; s#THIS_FN#@@#g;" | sed ":a; N; \$!ba; s/\n/\n\t/g;" ' )
EOF
fi
Executable
+48
View File
@@ -0,0 +1,48 @@
#!/usr/bin/env bash
thisDir=$(dirname $(realpath $0) )
createDirs(){
mkdir -p ~/.config/nvim
mkdir -p ~/.config/spacefm
}
installUtils(){
# Install https://github.com/harish2704/installer-scripts
wget 'https://raw.githubusercontent.com/harish2704/installer-scripts/master/installer.sh' -O - | sh
}
installNerdFonts(){
cd ~/Downloads
wget -c https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/CodeNewRoman.zip
unzip CodeNewRoman.zip *.otf
mkdir -p ~/.local/share/fonts/
mv CodeNewRoman*.otf ~/.local/share/fonts/
fc-cache
}
setupLunarVim(){
cd "$thisDir"
cd ./home/.local/Apps/neovim-distros/lunarvim/
git clone https://github.com/LunarVim/LunarVim
cd LunarVim
rm config.lua
ln -s ../config.lua ./
}
installMain(){
cd "$thisDir"
stow -t $HOME home
}
installNvm(){
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
}
createDirs
installUtils
installNerdFonts
setupLunarVim
installMain
installNvm