From 0950e48adf225bfd0e12d06a679524d2ae4d7b1a Mon Sep 17 00:00:00 2001 From: TiagoRG Date: Mon, 6 Nov 2023 20:11:34 +0000 Subject: [PATCH] 6/11 Update - Add gnome-shell configuration backup - Add .gitconfig - Add README.md - Update Neovim configuration - Update zshrc - Update filelist - Update setup Signed-off-by: TiagoRG --- .config/dconf/gnome-shell.dconf.bak | 480 +++++++++++++++++++++++ .config/nvim/after/plugin/barbar.lua | 44 +++ .config/nvim/after/plugin/colors.lua | 11 +- .config/nvim/after/plugin/harpoon.lua | 8 +- .config/nvim/after/plugin/nvim-tree.lua | 23 ++ .config/nvim/after/plugin/telescope.lua | 10 +- .config/nvim/after/plugin/toggleterm.lua | 28 ++ .config/nvim/lua/tiagorg/packer.lua | 18 +- .config/nvim/lua/tiagorg/remap.lua | 17 +- .config/nvim/lua/tiagorg/set.lua | 1 + .config/nvim/plugin/packer_compiled.lua | 43 +- .config/nvim/snippets/gitcommit.snippets | 3 + .gitconfig | 18 + .local/bin/filelist | 2 +- .zsh/.zshrc | 2 +- README.md | 10 + setup | 32 +- 17 files changed, 707 insertions(+), 43 deletions(-) create mode 100644 .config/dconf/gnome-shell.dconf.bak create mode 100644 .config/nvim/after/plugin/barbar.lua create mode 100644 .config/nvim/after/plugin/nvim-tree.lua create mode 100644 .config/nvim/after/plugin/toggleterm.lua create mode 100644 .gitconfig create mode 100644 README.md diff --git a/.config/dconf/gnome-shell.dconf.bak b/.config/dconf/gnome-shell.dconf.bak new file mode 100644 index 0000000..d198b3b --- /dev/null +++ b/.config/dconf/gnome-shell.dconf.bak @@ -0,0 +1,480 @@ +[/] +app-picker-layout=[{'ed8db248-c365-4c43-b8eb-f18dfafa2eff': <{'position': <0>}>, '19e47607-e2e6-42b9-a91f-a01c60f487ff': <{'position': <1>}>, '5698aeee-50eb-44b9-9e52-03269bc01740': <{'position': <2>}>, '5363d9d2-7f7a-4b7d-a8c4-3ca0050a38d4': <{'position': <3>}>, 'e3dd5ed5-f0c1-4ba7-bee4-4bea07ded17b': <{'position': <4>}>, '0230d3cb-40d9-4959-ab67-7b2230454e69': <{'position': <5>}>, 'Utilities': <{'position': <6>}>, 'nvim.desktop': <{'position': <7>}>, 'org.gnome.Nautilus.desktop': <{'position': <8>}>, 'gimp.desktop': <{'position': <9>}>, 'inkspace.desktop': <{'position': <10>}>, 'org.gnome.Settings.desktop': <{'position': <11>}>, 'org.gnome.Evince.desktop': <{'position': <12>}>, 'org.gnome.TextEditor.desktop': <{'position': <13>}>, 'org.gnome.gitlab.somas.Apostrophe.desktop': <{'position': <14>}>, 'com.belmoussaoui.Decoder.desktop': <{'position': <15>}>}] +command-history=['killall flatpak', 'reboot', 'killall bash', 'r'] +disable-user-extensions=false +disabled-extensions=['apps-menu@gnome-shell-extensions.gcampax.github.com', 'dash-to-dock@micxgx.gmail.com', 'native-window-placement@gnome-shell-extensions.gcampax.github.com', 'places-menu@gnome-shell-extensions.gcampax.github.com', 'horizontal-workspace-indicator@tty2.io', 'todo.txt@bart.libert.gmail.com', 'light-style@gnome-shell-extensions.gcampax.github.com', 'drive-menu@gnome-shell-extensions.gcampax.github.com', 'windowsNavigator@gnome-shell-extensions.gcampax.github.com', 'window-list@gnome-shell-extensions.gcampax.github.com', 'workspace-indicator@gnome-shell-extensions.gcampax.github.com', 'gsconnect@andyholmes.github.io'] +enabled-extensions=['launch-new-instance@gnome-shell-extensions.gcampax.github.com', 'screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com', 'burn-my-windows@schneegans.github.com', 'caffeine@patapon.info', 'user-theme@gnome-shell-extensions.gcampax.github.com', 'GmailMessageTray@shuming0207.gmail.com', 'batime@martin.zurowietz.de', 'batterytime@typeof.pw', 'legacyschemeautoswitcher@joshimukul29.gmail.com', 'arrangeWindows@sun.wxg@gmail.com', 'emoji-copy@felipeftn', 'ddterm@amezin.github.com', 'clipboard-history@alexsaveau.dev', 'ControlBlurEffectOnLockScreen@pratap.fastmail.fm', 'widgets@aylur', 'dash-to-panel@jderose9.github.com', 'auto-move-windows@gnome-shell-extensions.gcampax.github.com', 'openweather-extension@jenslody.de', 'ding@rastersoft.com', 'tiling-assistant@leleat-on-github', 'Vitals@CoreCoding.com', 'windowgestures@extension.amarullz.com', 'color-picker@tuberry', 'clipboard-indicator@tudmotu.com', 'sp-tray@sp-tray.esenliyim.github.com', 'quake-terminal@diegodario88.github.io', 'quicktext@brainstormtrooper.github.io', 'blur-my-shell@aunetx', 'appindicatorsupport@rgcjonas.gmail.com', 'x11gestures@joseexposito.github.io', 'just-perfection-desktop@just-perfection', 'quick-settings-audio-panel@rayzeq.github.io', 'mprisLabel@moon-0xff.github.com', 'mediacontrols@cliffniff.github.com'] +favorite-apps=['firefox.desktop', 'org.mozilla.Thunderbird.desktop', 'spotify-launcher.desktop', 'io.element.Element.desktop', 'discord.desktop'] +last-selected-power-profile='power-saver' +welcome-dialog-last-shown-version='44.2' + +[app-switcher] +current-workspace-only=true + +[extensions/TodoTxt] +add-creation-date=true +click-action=2 +confirm-delete=true +debug-level=250 +display-format-string='{unarchived}' +donetxt-location='/home/tiagorg/.dotfiles/todo.txt/done.txt' +enable-due-date-extension=true +enable-hidden-extension=false +group-by=1 +group-ungrouped=false +hide-pattern='{unarchived}' +keep-open-after-new=true +long-tasks-ellipsize-mode=2 +long-tasks-expansion-mode=1 +long-tasks-max-width=500 +open-key=[''] +order-by-priority=true +show-contexts-label=true +show-delete-button=true +show-done=true +show-done-or-archive-button=true +show-edit-button=true +show-new-task-entry=true +show-number-of-group-elements=true +show-open-in-text-editor=true +show-open-preferences=true +show-priority-buttons=true +show-projects-label=true +show-status-icon=true +style-priorities=true +todotxt-location='/home/tiagorg/.dotfiles/todo.txt/todo.txt' +truncate-long-tasks=true +url-color=1 + +[extensions/appindicator] +icon-brightness=-2.7755575615628914e-17 +icon-contrast=2.7755575615628914e-17 +icon-saturation=2.7755575615628914e-17 +icon-size=0 +tray-pos='center' + +[extensions/auto-move-windows] +application-list=['org.gnome.Boxes.desktop:4'] + +[extensions/aylurs-widgets] +background-clock=false +background-clock-date-format='%b%e' +background-clock-date-shadow-width=6 +background-clock-date-size=40 +background-clock-position=2 +background-clock-x-offset=35 +background-clock-y-offset=20 +battery-bar=false +dash-board=true +dash-button-enable=false +dash-links-names=['reddit', 'youtube', 'gmail', 'twitter', 'github'] +dash-links-urls=['https://www.reddit.com/', 'https://www.youtube.com/', 'https://www.gmail.com/', 'https://twitter.com/', 'https://www.github.com/TiagoRG'] +dash-media-cover-height=200 +dash-media-cover-width=200 +dash-media-show-loop-shuffle=false +dash-shortcut=['s'] +date-menu-custom-menu=true +date-menu-date-format='%a %b %d %H:%M:%S' +date-menu-hide-notifications=false +date-menu-hide-stock-mpris=true +date-menu-levels-show-storage=false +date-menu-media-cover-height=290 +date-menu-media-cover-width=290 +date-menu-media-prefer='spotify' +date-menu-media-show-loop-shuffle=false +date-menu-media-show-volume=true +date-menu-media-style=0 +date-menu-mirror=false +date-menu-offset=0 +date-menu-remove-padding=true +date-menu-show-clocks=false +date-menu-show-events=true +date-menu-show-user=false +date-menu-show-weather=false +date-menu-tweaks=false +dynamic-panel=false +media-player=true +media-player-colored-player-icon=false +media-player-controls-position=0 +media-player-cover-height=210 +media-player-cover-roundness=10 +media-player-cover-width=210 +media-player-enable-track=true +media-player-max-width=300 +media-player-offset=10 +media-player-player-icon-position=0 +media-player-position=2 +media-player-show-loop-shuffle=false +media-player-show-player-icon=true +media-player-show-text=true +media-player-style=0 +notification-indicator=false +power-menu=false +quick-settings-show-airplane=true +quick-settings-tweaks=false +stylish-osd=false +window-headerbar=false +workspace-indicator=false +workspace-indicator-offset=1 +workspace-indicator-show-names=false +workspace-indicator-style=0 + +[extensions/blur-my-shell] +brightness=0.5 +sigma=30 + +[extensions/blur-my-shell/appfolder] +customize=true +style-dialogs=3 + +[extensions/blur-my-shell/overview] +customize=false + +[extensions/blur-my-shell/panel] +blur=false + +[extensions/blur] +brightness=0.65000000000000002 +sigma=1 + +[extensions/burn-my-windows] +active-profile='/home/tiagorg/.config/burn-my-windows/profiles/1688500526088668.conf' +last-extension-version=35 +prefs-open-count=1 +preview-effect='' + +[extensions/caffeine] +countdown-timer=0 +duration-timer=2 +indicator-position=0 +indicator-position-index=0 +indicator-position-max=3 +inhibit-apps=['org.gnome.Evince.desktop'] +show-indicator='only-active' +show-timer=true +toggle-shortcut=['z'] + +[extensions/clipboard-history] +display-mode=0 +strip-text=false +toggle-menu=['v'] +topbar-preview-size=30 +window-width-percentage=50 + +[extensions/clipboard-indicator] +history-size=25 +move-item-first=true +notify-on-copy=false +toggle-menu=['v'] +topbar-preview-size=10 + +[extensions/color-picker] +color-history=[uint64 3911082752, 176488192, 1566399744, 3794425856, 1470186240, 4287766016, 3879618304, 202116096] +color-picker-shortcut=['c'] +colors-history='#0f243e|#3d98ff' +enable-shortcut=true +enable-systray=true +menu-size=uint32 10 +menu-style=false + +[extensions/dash-to-dock] +animation-time=0.15000000000000002 +autohide-in-fullscreen=false +background-opacity=0.80000000000000004 +custom-theme-shrink=true +dance-urgent-applications=false +dash-max-icon-size=32 +disable-overview-on-startup=true +dock-position='BOTTOM' +extend-height=false +height-fraction=0.90000000000000002 +hide-delay=0.15000000000000002 +icon-size-fixed=false +intellihide=false +intellihide-mode='FOCUS_APPLICATION_WINDOWS' +multi-monitor=true +preferred-monitor=-2 +preferred-monitor-by-connector='eDP-1' +pressure-threshold=0.0 +require-pressure-to-show=true +scroll-action='switch-workspace' +show-favorites=true +show-mounts=false +show-running=true +show-show-apps-button=false +show-trash=false +show-windows-preview=true +workspace-agnostic-urgent-windows=false + +[extensions/dash-to-panel] +animate-appicon-hover=true +animate-appicon-hover-animation-extent={'RIPPLE': 4, 'PLANK': 4, 'SIMPLE': 1} +animate-appicon-hover-animation-travel={'SIMPLE': 0.0, 'RIPPLE': 0.40000000000000002, 'PLANK': 0.0} +animate-appicon-hover-animation-zoom={'SIMPLE': 1.1000000000000001, 'RIPPLE': 1.25, 'PLANK': 2.0} +appicon-margin=0 +appicon-padding=4 +available-monitors=[0] +dot-color-1='#1c71d8' +dot-color-2='#1c71d8' +dot-color-3='#1c71d8' +dot-color-4='#1c71d8' +dot-color-dominant=true +dot-color-override=false +dot-color-unfocused-2='#5294e2' +dot-color-unfocused-3='#5294e2' +dot-color-unfocused-4='#5294e2' +dot-color-unfocused-different=false +dot-position='BOTTOM' +dot-size=2 +dot-style-focused='SOLID' +dot-style-unfocused='DASHES' +focus-highlight=true +focus-highlight-color='#1c71d8' +focus-highlight-dominant=true +focus-highlight-opacity=40 +group-apps=true +group-apps-label-font-size=15 +group-apps-label-max-width=80 +group-apps-underline-unfocused=false +group-apps-use-fixed-width=true +group-apps-use-launchers=false +hide-overview-on-startup=true +hotkeys-overlay-combo='TEMPORARILY' +intellihide=false +intellihide-animation-time=100 +intellihide-close-delay=300 +intellihide-hide-from-windows=false +intellihide-only-secondary=false +intellihide-pressure-threshold=10 +intellihide-pressure-time=1 +intellihide-use-pressure=true +isolate-monitors=true +isolate-workspaces=true +leftbox-padding=-1 +leftbox-size=0 +overview-click-to-exit=false +panel-anchors='{"0":"MIDDLE"}' +panel-element-positions='{"0":[{"element":"showAppsButton","visible":true,"position":"stackedTL"},{"element":"leftBox","visible":true,"position":"stackedTL"},{"element":"activitiesButton","visible":true,"position":"stackedTL"},{"element":"taskbar","visible":true,"position":"stackedTL"},{"element":"dateMenu","visible":true,"position":"centerMonitor"},{"element":"centerBox","visible":true,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}]}' +panel-lengths='{"0":100}' +panel-positions='{"0":"BOTTOM"}' +panel-sizes='{"0":34}' +primary-monitor=0 +progress-show-count=true +scroll-icon-action='PASS_THROUGH' +secondarymenu-contains-appmenu=true +show-appmenu=false +show-apps-icon-file='/home/tiagorg/Pictures/TiagoRG/TiagoRG_Logo.png' +show-favorites=true +show-favorites-all-monitors=true +show-running-apps=true +show-showdesktop-delay=300 +show-showdesktop-hover=true +show-tooltip=true +show-window-previews=true +show-window-previews-timeout=300 +status-icon-padding=3 +stockgs-force-hotcorner=false +stockgs-keep-dash=false +stockgs-keep-top-panel=false +stockgs-panelbtn-click-only=false +trans-gradient-bottom-color='#3584e4' +trans-gradient-bottom-opacity=0.29999999999999999 +trans-gradient-top-color='#3584e4' +trans-gradient-top-opacity=0.10000000000000001 +trans-panel-opacity=0.59999999999999998 +trans-use-custom-bg=false +trans-use-custom-gradient=false +trans-use-custom-opacity=false +trans-use-dynamic-opacity=false +tray-padding=1 +tray-size=0 +window-preview-animation-time=200 +window-preview-hide-immediate-click=true +window-preview-size=150 +window-preview-title-position='TOP' + +[extensions/ding] +check-x11wayland=true +show-home=false +show-trash=false +start-corner='bottom-right' + +[extensions/emoji-copy] +always-show=false +nbcols=11 +recently-used=['πŸ’€', '❀️', 'πŸ˜‚', '😍', '😭', '😊', 'πŸ˜’', '😘', '😩', 'πŸ€”', '☺️'] +skin-tone=0 + +[extensions/gmailmessagetray] +gmailsystemlabel='^i' +usemail=0 + +[extensions/gsconnect] +enabled=false +id='2a274477-1058-49c2-8abc-47fec5b47541' +name='tiagorg-archlinux' +show-indicators=true + +[extensions/gsconnect/preferences] +window-maximized=false +window-size=(640, 460) + +[extensions/horizontal-workspace-indicator] +icons-style='circles' +widget-orientation='horizontal' +widget-position='left' + +[extensions/just-perfection] +accessibility-menu=true +activities-button=true +app-menu=true +app-menu-icon=true +app-menu-label=true +calendar=true +clock-menu=true +controls-manager-spacing-size=0 +dash=true +dash-icon-size=32 +dash-separator=true +events-button=true +hot-corner=false +keyboard-layout=true +panel=true +panel-arrow=true +panel-corner-size=0 +panel-in-overview=true +panel-notification-icon=true +power-icon=true +quick-settings=true +ripple-box=true +search=true +show-apps-button=true +startup-status=1 +theme=false +weather=false +window-demands-attention-focus=false +window-picker-icon=true +workspace=true +workspaces-in-app-grid=true +world-clock=false + +[extensions/libpanel] +layout=[['gnome@main', 'quick-settings-audio-panel@rayzeq.github.io/main']] + +[extensions/mediacontrols] +backlist-apps=['spotify'] +colored-player-icon=true +element-order=['icon', 'title', 'controls', 'menu'] +extension-index=0 +extension-position='center' +max-widget-width=200 +mouse-actions=['toggle_info', 'toggle_menu', 'toggle_play', 'previous', 'next', 'none', 'none', 'none'] +seperator-chars=[':', ':'] +show-player-icon=true +show-prev-icon=true +show-seperators=false +show-sources-menu=false +track-label=['none', '-', 'track'] + +[extensions/mpris-label] +extension-place='left' +icon-padding=5 +remove-text-when-paused=false +symbolic-source-icon=false + +[extensions/openweather] +city='40.640496,-8.6537841>Aveiro, Portugal>0' +delay-ext-init=0 +disable-forecast=false +menu-alignment=100.0 +position-in-panel='right' +position-index=10 +refresh-interval-current=600 +show-comment-in-panel=false +use-system-icons=true +wind-direction=true + +[extensions/quake-terminal] +terminal-shortcut=['Return'] + +[extensions/quick-settings-audio-panel] +always-show-input-slider=true +create-mixer-sliders=false +media-control='duplicate' +merge-panel=true +move-master-volume=false +panel-position='top' + +[extensions/quicktext] +quick-filepath='/home/tiagorg/Documents/document.txt' + +[extensions/tiling-assistant] +activate-layout0=@as [] +activate-layout1=@as [] +activate-layout2=@as [] +activate-layout3=@as [] +active-window-hint=1 +active-window-hint-color='rgb(53,132,228)' +auto-tile=@as [] +center-window=['KP_0'] +debugging-free-rects=@as [] +debugging-show-tiled-rects=@as [] +default-move-mode=0 +dynamic-keybinding-behavior=2 +import-layout-examples=false +last-version-installed=44 +overridden-settings={'org.gnome.mutter.edge-tiling': <@mb nothing>, 'org.gnome.desktop.wm.keybindings.maximize': <@mb nothing>, 'org.gnome.desktop.wm.keybindings.unmaximize': <@mb nothing>, 'org.gnome.mutter.keybindings.toggle-tiled-left': <@mb nothing>, 'org.gnome.mutter.keybindings.toggle-tiled-right': <@mb nothing>} +restore-window=['Down'] +search-popup-layout=@as [] +tile-bottom-half=['KP_2'] +tile-bottom-half-ignore-ta=@as [] +tile-bottomleft-quarter=['KP_1'] +tile-bottomleft-quarter-ignore-ta=@as [] +tile-bottomright-quarter=['KP_3'] +tile-bottomright-quarter-ignore-ta=@as [] +tile-edit-mode=@as [] +tile-left-half=['Left', 'KP_4'] +tile-left-half-ignore-ta=@as [] +tile-maximize=['Up', 'KP_5'] +tile-maximize-horizontally=@as [] +tile-maximize-vertically=@as [] +tile-right-half=['Right', 'KP_6'] +tile-right-half-ignore-ta=@as [] +tile-top-half=['KP_8'] +tile-top-half-ignore-ta=@as [] +tile-topleft-quarter=['KP_7'] +tile-topleft-quarter-ignore-ta=@as [] +tile-topright-quarter=['KP_9'] +tile-topright-quarter-ignore-ta=@as [] +toggle-always-on-top=@as [] +toggle-tiling-popup=@as [] + +[extensions/user-theme] +name='' + +[extensions/vitals] +fixed-widths=true +hide-icons=false +hot-sensors=['_default_icon_'] +position-in-panel=4 +show-battery=true +update-time=1 +use-higher-precision=true + +[extensions/windowgestures] +horiz-swap-switch=true +no-count-flip=true +three-finger=true + +[keybindings] +focus-active-notification=@as [] +show-screenshot-ui=['Print'] +toggle-message-tray=['n'] +toggle-overview=@as [] + +[weather] +automatic-location=true +locations=@av [] + +[world-clocks] +locations=@av [] diff --git a/.config/nvim/after/plugin/barbar.lua b/.config/nvim/after/plugin/barbar.lua new file mode 100644 index 0000000..e408538 --- /dev/null +++ b/.config/nvim/after/plugin/barbar.lua @@ -0,0 +1,44 @@ +local map = vim.api.nvim_set_keymap +local opts = { noremap = true, silent = true } + +-- Move to previous/next +map('n', '', 'BufferPrevious', opts) +map('n', '', 'BufferNext', opts) +-- Re-order to previous/next +map('n', '', 'BufferMovePrevious', opts) +map('n', '>', 'BufferMoveNext', opts) +-- Goto buffer in position... +map('n', '', 'BufferGoto 1', opts) +map('n', '', 'BufferGoto 2', opts) +map('n', '', 'BufferGoto 3', opts) +map('n', '', 'BufferGoto 4', opts) +map('n', '', 'BufferGoto 5', opts) +map('n', '', 'BufferGoto 6', opts) +map('n', '', 'BufferGoto 7', opts) +map('n', '', 'BufferGoto 8', opts) +map('n', '', 'BufferGoto 9', opts) +map('n', '', 'BufferFirst', opts) +map('n', '', 'BufferLast', opts) +-- Pin/unpin buffer +map('n', '', 'BufferPin', opts) +-- Close buffer +map('n', '', 'BufferClose', opts) +-- Wipeout buffer +-- :BufferWipeout +-- Close commands +-- :BufferCloseAllButCurrent +-- :BufferCloseAllButPinned +-- :BufferCloseAllButCurrentOrPinned +-- :BufferCloseBuffersLeft +-- :BufferCloseBuffersRight +-- Magic buffer-picking mode +map('n', '', 'BufferPick', opts) +-- Sort automatically by... +map('n', 'bb', 'BufferOrderByBufferNumber', opts) +map('n', 'bd', 'BufferOrderByDirectory', opts) +map('n', 'bl', 'BufferOrderByLanguage', opts) +map('n', 'bw', 'BufferOrderByWindowNumber', opts) + +-- Other: +-- :BarbarEnable - enables barbar (enabled by default) +-- :BarbarDisable - very bad command, should never be used diff --git a/.config/nvim/after/plugin/colors.lua b/.config/nvim/after/plugin/colors.lua index f1397c2..815ee3a 100644 --- a/.config/nvim/after/plugin/colors.lua +++ b/.config/nvim/after/plugin/colors.lua @@ -1,11 +1,12 @@ function ColorMyPencils(color) - color = color or "rose-pine" - - vim.cmd.colorscheme(color) + --color = color or "rose-pine" + color = color or "monokai-pro-spectrum" - -- vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) + vim.cmd.colorscheme(color) - -- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) + --vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) + + --vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) end ColorMyPencils() diff --git a/.config/nvim/after/plugin/harpoon.lua b/.config/nvim/after/plugin/harpoon.lua index eed35ed..b8406a0 100644 --- a/.config/nvim/after/plugin/harpoon.lua +++ b/.config/nvim/after/plugin/harpoon.lua @@ -4,7 +4,7 @@ local ui = require("harpoon.ui") vim.keymap.set("n", "a", mark.add_file) vim.keymap.set("n", "", ui.toggle_quick_menu) -vim.keymap.set("n", "", function() ui.nav_file(1) end) -vim.keymap.set("n", "", function() ui.nav_file(2) end) -vim.keymap.set("n", "", function() ui.nav_file(3) end) -vim.keymap.set("n", "", function() ui.nav_file(4) end) +--vim.keymap.set("n", "", function() ui.nav_file(1) end) +--vim.keymap.set("n", "", function() ui.nav_file(2) end) +--vim.keymap.set("n", "", function() ui.nav_file(3) end) +--vim.keymap.set("n", "", function() ui.nav_file(4) end) diff --git a/.config/nvim/after/plugin/nvim-tree.lua b/.config/nvim/after/plugin/nvim-tree.lua new file mode 100644 index 0000000..6ffeef9 --- /dev/null +++ b/.config/nvim/after/plugin/nvim-tree.lua @@ -0,0 +1,23 @@ +-- disable netrw at the very start of your init.lua +vim.g.loaded_netrw = 1 +vim.g.loaded_netrwPlugin = 1 + +-- set termguicolors to enable highlight groups +vim.opt.termguicolors = true + +-- OR setup with some options +require("nvim-tree").setup({ + sort_by = "case_sensitive", + view = { + width = 40, + }, + renderer = { + group_empty = true, + }, + filters = { + dotfiles = false, + }, +}) + +vim.api.nvim_set_keymap('n', '', ':NvimTreeToggle', {noremap = true, silent = true}) +vim.keymap.set("n", "e", "NvimTreeFocus") diff --git a/.config/nvim/after/plugin/telescope.lua b/.config/nvim/after/plugin/telescope.lua index a364565..9fa92d6 100644 --- a/.config/nvim/after/plugin/telescope.lua +++ b/.config/nvim/after/plugin/telescope.lua @@ -1,7 +1,13 @@ local builtin = require('telescope.builtin') -vim.keymap.set('n', 'pf', builtin.find_files, {}) + +-- File pickers +vim.keymap.set('n', 'pf', "Telescope find_files hidden=true", {}) vim.keymap.set('n', '', builtin.git_files, {}) +vim.keymap.set('n', 'pg', builtin.live_grep, {}) vim.keymap.set('n', 'ps', function() - builtin.grep_string({ search = vim.fn.input("Grep > ")}); + builtin.grep_string({ search = vim.fn.input("Grep > ") }); end) +-- Git pickers +vim.keymap.set('n', 'gc', builtin.git_commits, {}) +vim.keymap.set('n', 'gs', builtin.git_status, {}) diff --git a/.config/nvim/after/plugin/toggleterm.lua b/.config/nvim/after/plugin/toggleterm.lua new file mode 100644 index 0000000..466ab2d --- /dev/null +++ b/.config/nvim/after/plugin/toggleterm.lua @@ -0,0 +1,28 @@ +require("toggleterm").setup { + size = function(term) + if term.direction == "horizontal" then + return 15 + elseif term.direction == "vertical" then + return vim.o.columns * 0.4 + end + end, + + hide_numbers = true, + persist_size = true, + persist_mode = true, + close_on_exit = true, + auto_scroll = true, + shell = vim.o.shell, + + float_opts = { + border = 'curved', + width = 200, + height = 20, + winblend = 3, + zindex = 50, + }, + + direction = 'horizontal' +} + +vim.keymap.set("n", "t", "ToggleTerm") diff --git a/.config/nvim/lua/tiagorg/packer.lua b/.config/nvim/lua/tiagorg/packer.lua index 84f186e..c06d1e0 100644 --- a/.config/nvim/lua/tiagorg/packer.lua +++ b/.config/nvim/lua/tiagorg/packer.lua @@ -20,6 +20,12 @@ return require('packer').startup(function(use) vim.cmd('colorscheme rose-pine') end }) + use { + "loctvl842/monokai-pro.nvim", + config = function() + require("monokai-pro").setup() + end + } use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' }) use('theprimeagen/harpoon') @@ -53,7 +59,6 @@ return require('packer').startup(function(use) { 'rafamadriz/friendly-snippets' }, } } - use({ "L3MON4D3/LuaSnip", -- follow latest release. @@ -61,11 +66,20 @@ return require('packer').startup(function(use) -- install jsregexp (optional!:). run = "make install_jsregexp" }) - use { "FotiadisM/tabset.nvim", config = function() require("tabset").setup() end } + use('nvim-tree/nvim-web-devicons') + use { + 'nvim-tree/nvim-tree.lua', + requires = { + 'nvim-tree/nvim-web-devicons', -- optional + }, + } + use 'lewis6991/gitsigns.nvim' -- OPTIONAL: for git status + use 'romgrk/barbar.nvim' + use { "akinsho/toggleterm.nvim", tag = '*' } end) diff --git a/.config/nvim/lua/tiagorg/remap.lua b/.config/nvim/lua/tiagorg/remap.lua index 7d90788..145daa6 100644 --- a/.config/nvim/lua/tiagorg/remap.lua +++ b/.config/nvim/lua/tiagorg/remap.lua @@ -1,4 +1,4 @@ -vim.keymap.set("n", "e", vim.cmd.E) +--vim.keymap.set("n", "e", vim.cmd.E) vim.keymap.set("n", "w", vim.cmd.w) vim.keymap.set("v", "J", ":m '>+1gv=gv") @@ -10,16 +10,11 @@ vim.keymap.set("n", "", "zz") vim.keymap.set("n", "n", "nzzzv") vim.keymap.set("n", "N", "Nzzzv") --- greatest remap ever -vim.keymap.set("x", "p", [["_dP]]) - --- next greatest remap ever : asbjornHaland vim.keymap.set({ "n", "v" }, "y", [["+y]]) vim.keymap.set("n", "Y", [["+Y]]) vim.keymap.set({ "n", "v" }, "d", [["_d]]) --- This is going to get me cancelled vim.keymap.set("i", "", "") vim.keymap.set("n", "Q", "") @@ -36,10 +31,16 @@ vim.keymap.set("n", "j", "lprevzz") vim.keymap.set("n", "s", [[:%s/\<\>//gI]]) vim.keymap.set("n", "x", "!chmod +x %", { silent = true }) +vim.keymap.set("n", "X", "!chmod -x %", { silent = true }) -vim.keymap.set("n", "vpp", "e ~/.dotfiles/nvim/.config/nvim/lua/theprimeagen/packer.lua"); -vim.keymap.set("n", "mr", "CellularAutomaton make_it_rain"); +vim.keymap.set("n", "vpp", "e ~/.config/nvim/lua/tiagorg/packer.lua"); vim.keymap.set("n", "", function() vim.cmd("so") end) + +vim.keymap.set("n", "", "qa") +--vim.keymap.set("n", "", "tabclose") +--vim.keymap.set("n", "", "gt") +--vim.keymap.set("n", "", "tabprevious") +--vim.keymap.set("n", "", "tabnewNvimTreeFocus") diff --git a/.config/nvim/lua/tiagorg/set.lua b/.config/nvim/lua/tiagorg/set.lua index 635601f..9fa9269 100644 --- a/.config/nvim/lua/tiagorg/set.lua +++ b/.config/nvim/lua/tiagorg/set.lua @@ -22,6 +22,7 @@ vim.opt.termguicolors = true vim.opt.scrolloff = 10 vim.opt.signcolumn = "yes" vim.opt.isfname:append("@-@") +vim.opt.guitablabel = "\\[%N\\]\\ %t\\ %M" vim.opt.updatetime = 50 diff --git a/.config/nvim/plugin/packer_compiled.lua b/.config/nvim/plugin/packer_compiled.lua index 0314dd0..f710561 100644 --- a/.config/nvim/plugin/packer_compiled.lua +++ b/.config/nvim/plugin/packer_compiled.lua @@ -84,6 +84,11 @@ _G.packer_plugins = { path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/autoclose.nvim", url = "https://github.com/m4xshen/autoclose.nvim" }, + ["barbar.nvim"] = { + loaded = true, + path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/barbar.nvim", + url = "https://github.com/romgrk/barbar.nvim" + }, ["cmp-buffer"] = { loaded = true, path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/cmp-buffer", @@ -114,6 +119,11 @@ _G.packer_plugins = { path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/friendly-snippets", url = "https://github.com/rafamadriz/friendly-snippets" }, + ["gitsigns.nvim"] = { + loaded = true, + path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/gitsigns.nvim", + url = "https://github.com/lewis6991/gitsigns.nvim" + }, harpoon = { loaded = true, path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/harpoon", @@ -139,6 +149,12 @@ _G.packer_plugins = { path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/mason.nvim", url = "https://github.com/williamboman/mason.nvim" }, + ["monokai-pro.nvim"] = { + config = { "\27LJ\2\n9\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\16monokai-pro\frequire\0" }, + loaded = true, + path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/monokai-pro.nvim", + url = "https://github.com/loctvl842/monokai-pro.nvim" + }, ["nvim-cmp"] = { loaded = true, path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-cmp", @@ -149,11 +165,21 @@ _G.packer_plugins = { path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", url = "https://github.com/neovim/nvim-lspconfig" }, + ["nvim-tree.lua"] = { + loaded = true, + path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", + url = "https://github.com/nvim-tree/nvim-tree.lua" + }, ["nvim-treesitter"] = { loaded = true, path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-treesitter", url = "https://github.com/nvim-treesitter/nvim-treesitter" }, + ["nvim-web-devicons"] = { + loaded = true, + path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", + url = "https://github.com/nvim-tree/nvim-web-devicons" + }, ["packer.nvim"] = { loaded = true, path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/packer.nvim", @@ -186,6 +212,11 @@ _G.packer_plugins = { path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/telescope.nvim", url = "https://github.com/nvim-telescope/telescope.nvim" }, + ["toggleterm.nvim"] = { + loaded = true, + path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", + url = "https://github.com/akinsho/toggleterm.nvim" + }, undotree = { loaded = true, path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/undotree", @@ -210,10 +241,10 @@ _G.packer_plugins = { } time([[Defining packer_plugins]], false) --- Config for: rose-pine -time([[Config for rose-pine]], true) -try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0\26colorscheme rose-pine\bcmd\bvim\0", "config", "rose-pine") -time([[Config for rose-pine]], false) +-- Config for: monokai-pro.nvim +time([[Config for monokai-pro.nvim]], true) +try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\16monokai-pro\frequire\0", "config", "monokai-pro.nvim") +time([[Config for monokai-pro.nvim]], false) -- Config for: tabset.nvim time([[Config for tabset.nvim]], true) try_loadstring("\27LJ\2\n4\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\vtabset\frequire\0", "config", "tabset.nvim") @@ -222,6 +253,10 @@ time([[Config for tabset.nvim]], false) time([[Config for wrapping.nvim]], true) try_loadstring("\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rwrapping\frequire\0", "config", "wrapping.nvim") time([[Config for wrapping.nvim]], false) +-- Config for: rose-pine +time([[Config for rose-pine]], true) +try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0\26colorscheme rose-pine\bcmd\bvim\0", "config", "rose-pine") +time([[Config for rose-pine]], false) _G._packer.inside_compile = false if _G._packer.needs_bufread == true then diff --git a/.config/nvim/snippets/gitcommit.snippets b/.config/nvim/snippets/gitcommit.snippets index cf64d82..6e44cd2 100644 --- a/.config/nvim/snippets/gitcommit.snippets +++ b/.config/nvim/snippets/gitcommit.snippets @@ -4,3 +4,6 @@ snippet so Signed-off-by: ${1} <${2}> snippet sotrg Signed-off-by: TiagoRG +snippet aed + Co-authored-by: diogotavc + Signed-off-by: TiagoRG diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..53eb833 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,18 @@ +[credential "https://github.com"] + helper = + helper = !/usr/bin/gh auth git-credential +[credential "https://gist.github.com"] + helper = + helper = !/usr/bin/gh auth git-credential +[user] + email = tiago.rgarcia@ua.pt + name = TiagoRG + signingkey = DFCD48E3F420DB42! +[core] + editor = nvim +[alias] + commit = commit -S +[commit] + gpgsign = true +[tag] + gpgsign = true diff --git a/.local/bin/filelist b/.local/bin/filelist index f5ff593..2b6b786 100755 --- a/.local/bin/filelist +++ b/.local/bin/filelist @@ -62,7 +62,7 @@ def print_files_size(path, reverse): for index, (file, size, compacted_size, color) in enumerate(files, 1): print(f"|{color} {index:<2} {Tcolors.OKBLUE}|{color} {file:<184} {compacted_size:>40} {Tcolors.OKBLUE}|{color} {index:>2} {Tcolors.OKBLUE}|") total_size, color = compact_size(total_size) - print(f"|{'-'*237}|\n| {f'{len(directory)} files/directories found in {os.path.abspath(path)}':<162} {f'Total size:{color} {total_size}':>77} {Tcolors.OKBLUE}|\n|{'-'*237}|{Tcolors.ENDC}") + print(f"|{'-'*237}|\n| {Tcolors.OKCYAN}{f'{len(directory)} files/directories found in {os.path.abspath(path)}':<162} {f'Total size:{color} {total_size}':>77} {Tcolors.OKBLUE}|\n|{'-'*237}|{Tcolors.ENDC}") def get_dir_size(path): diff --git a/.zsh/.zshrc b/.zsh/.zshrc index 380b408..d79bba4 100644 --- a/.zsh/.zshrc +++ b/.zsh/.zshrc @@ -282,7 +282,7 @@ alias zshrc='vim /home/tiagorg/.zsh/.zshrc' # improved system commands alias update='yay -Syu --noconfirm && flatpak update -y' -alias autoremove='sudo pacman -Qqd | sudo pacman -Rsu - && flatpak uninstall --unused -y' +alias autoremove='yay -Qqd | yay -Runs - && flatpak uninstall --unused -y' alias clear='echo "y" > ~/.zsh/.zsh_clear && source ~/.zsh/.zshrc' alias c='clear' alias ref='echo -e -n "\x1b[\x35 q"' diff --git a/README.md b/README.md new file mode 100644 index 0000000..f7664d9 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Dotfiles + +## Repository with my dotfiles and some configurations + +### Installation + +```console +git clone https://github.com/TiagoRG/dotfiles --depth 1 ~ +bash setup +``` diff --git a/setup b/setup index cf6615d..8a145cb 100755 --- a/setup +++ b/setup @@ -14,33 +14,33 @@ cd "$parent_path" || exit setup_nvim() { echo -e "\033[0;33mSetting up neovim...\033[0m" - cp -r .config/nvim ~/.config/ + sudo pacman -S neovim - # Install vim-plug + # Install packer.nvim git clone --depth 1 https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim + git submodule update --init .config/nvim/pack/github/start/copilot.vim + echo -e "\033[0;32mNeovim setup complete!\033[0m" } setup_zsh() { echo -e "\033[0;33mSetting up zsh...\033[0m" - cp -r .zsh ~/ - echo "ZDOTDIR=$HOME/.zsh" >> ~/.zshenv + git submodule update --init .zsh/zsh-autosuggestions + git submodule update --init .zsh/zsh-syntax-highlighting - sudo chsh tiagorg --shell=/bin/zsh - sudo chsh root --shell=/bin/zsh + sudo pacman -S zsh + + sudo chsh tiagorg --shell=/usr/bin/zsh + sudo chsh root --shell=/usr/bin/zsh echo -e "\033[0;32mzsh setup complete!\033[0m" } -setup_bin() { - echo -e "\033[0;33mSetting up bin...\033[0m" - - cp -r .local/bin ~/.local/ - - echo -e "\033[0;32mbin setup complete!\033[0m" +setup_gnome_shell() { + dconf load /org/gnome/shell/ < ~/.config/dconf/gnome-shell.dconf.bak } # ------------------- End of config functions ------------------- @@ -54,7 +54,7 @@ config_option=$(zenity --list \ "Full setup" \ "Neovim" \ "zshrc" \ - "bin" \ + "gnome-shell" \ --width=500 --height=400) # Check if the user selected an option @@ -70,7 +70,7 @@ case $config_option in "Full setup") setup_nvim setup_zsh - setup_bin + setup_gnome_shell ;; "Neovim") setup_nvim @@ -78,8 +78,8 @@ case $config_option in "zshrc") setup_zsh ;; - "bin") - setup_bin + "gnome-shell") + setup_gnome_shell ;; *) echo -e "\033[0;31mInvalid option. Exiting...\033[0m"