Stow Config

Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
Tiago Garcia 2024-02-25 14:20:42 +00:00 committed by Tiago Garcia
parent 97dabf9a7e
commit e0fba4c87a
Signed by: TiagoRG
GPG Key ID: FF0A53A30B1ADF82
8 changed files with 75 additions and 605 deletions

View File

@ -1,480 +0,0 @@
[/]
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=['<Super>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=['<Super>z']
[extensions/clipboard-history]
display-mode=0
strip-text=false
toggle-menu=['<Super>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=['<Super>v']
topbar-preview-size=10
[extensions/color-picker]
color-history=[uint64 3911082752, 176488192, 1566399744, 3794425856, 1470186240, 4287766016, 3879618304, 202116096]
color-picker-shortcut=['<Super>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=['<Super>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=['<Super>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=['<Super>Down']
search-popup-layout=@as []
tile-bottom-half=['<Super>KP_2']
tile-bottom-half-ignore-ta=@as []
tile-bottomleft-quarter=['<Super>KP_1']
tile-bottomleft-quarter-ignore-ta=@as []
tile-bottomright-quarter=['<Super>KP_3']
tile-bottomright-quarter-ignore-ta=@as []
tile-edit-mode=@as []
tile-left-half=['<Super>Left', '<Super>KP_4']
tile-left-half-ignore-ta=@as []
tile-maximize=['<Super>Up', '<Super>KP_5']
tile-maximize-horizontally=@as []
tile-maximize-vertically=@as []
tile-right-half=['<Super>Right', '<Super>KP_6']
tile-right-half-ignore-ta=@as []
tile-top-half=['<Super>KP_8']
tile-top-half-ignore-ta=@as []
tile-topleft-quarter=['<Super>KP_7']
tile-topleft-quarter-ignore-ta=@as []
tile-topright-quarter=['<Super>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=['<Control>Print']
toggle-message-tray=['<Super>n']
toggle-overview=@as []
[weather]
automatic-location=true
locations=@av []
[world-clocks]
locations=@av []

18
.gitignore vendored
View File

@ -1,15 +1,3 @@
*
!.gitignore
!.config/nvim/**/*
!.local/bin/**/*
!.zsh/**/*
!.clang-format
!.gitconfig
!.gitmodules
!.vimrc
!.vim/**/*
!.zshenv
!README.md
!setup
.idea
# Vim stuff
.vim/.netrwhist
.vim/undodir/

9
.gitmodules vendored
View File

@ -1,9 +0,0 @@
[submodule ".config/nvim/pack/github/start/copilot.vim"]
path = .config/nvim/pack/github/start/copilot.vim
url = https://github.com/github/copilot.vim.git
[submodule ".zsh/zsh-syntax-highlighting"]
path = .zsh/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
[submodule ".zsh/zsh-autosuggestions"]
path = .zsh/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions

23
.stow-local-ignore Normal file
View File

@ -0,0 +1,23 @@
# -------------------------
# Stow Default Ignore stuff
RCS
.+,v
CVS
\.\#.+
\.cvsignore
\.svn
_darcs
\.hg
\.git
\.gitignore
.+~
\#.*\#
^/README.*
^/LICENSE.*
^/COPYING
# -------------------------

2
.vimrc
View File

@ -1,7 +1,7 @@
set nu
set relativenumber
set signcolumn=yes
set colorcolumn=80
set colorcolumn=0
set smartindent
set tabstop=4

View File

@ -13,7 +13,7 @@ export PF_INFO="ascii title os shell editor pkgs uptime memory"
/bin/clear
echo ""
echo -e -n "\x1b[\x35 q"
echo "y" > ~/.zsh/.zsh_clear
echo "y" > /home/tiagorg/.dotfiles/.zsh/.zsh_clear
pfetch
setopt autocd # change directory just by typing its name
@ -279,12 +279,12 @@ fi
# Custom made alias
alias zshrc='vim /home/tiagorg/.zsh/.zshrc && ref'
alias zshrc='vim /home/tiagorg/.dotfiles/.zsh/.zshrc && ref'
# improved system commands
alias update='yay -Syu && flatpak update -y'
alias autoremove='yay -Qqd | yay -Runs - && flatpak remove --delete-data --unused'
alias clear='echo "y" > ~/.zsh/.zsh_clear && source ~/.zsh/.zshrc'
alias clear='echo "y" > /home/tiagorg/.dotfiles/.zsh/.zsh_clear && source /home/tiagorg/.dotfiles/.zsh/.zshrc'
alias c='clear'
alias ref='echo -e -n "\x1b[\x35 q"'
alias repos='cd /home/tiagorg/repos/'
@ -305,23 +305,26 @@ alias pclean='ls | grep -P "^.+\.(o|elf|map|sym)$" | xargs -d"\n" rm'
alias vpn='sudo snx -s go.ua.pt -u tiago.rgarcia@ua.pt'
alias vpnd='sudo snx -d'
source /home/tiagorg/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source /home/tiagorg/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /home/tiagorg/.dotfiles/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source /home/tiagorg/.dotfiles/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999999'
if [ -d /opt/pic32mx/bin ] ; then
export PATH=$PATH:/opt/pic32mx/bin
fi
if [ -d /opt/pic32mx/include ] ; then
export PATH=$PATH:/opt/pic32mx/include
fi
eval "$(zoxide init --cmd cd zsh)"
# Set up path to check personal bin, include and lib directory
export PATH=/home/tiagorg/.local/bin:$PATH
export CPATH=/home/tiagorg/.local/include:/opt/pic32mx/include:$CPATH
export PATH=/home/tiagorg/.dotfiles/.local/bin:$PATH
export CPATH=/home/tiagorg/.dotfiles/.local/include:$CPATH
# For C only: C_INCLUDE_PATH
# For C++ only: CPLUS_INCLUDE_PATH
# For Obj-C: OBJC_INCLUDE_PATH
export LIBRARY_PATH=/home/tiagorg/.local/lib:$LIBRARY_PATH
export LIBRARY_PATH=/home/tiagorg/.dotfiles/.local/lib:$LIBRARY_PATH
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh

View File

@ -1,10 +1,42 @@
# Dotfiles
## Repository with my dotfiles and some configurations
Repository with my dotfiles and some configurations
### Installation
## Requirements
```console
git clone https://github.com/TiagoRG/dotfiles --depth 1 ~
bash setup
For everything to work properly, the following packages must be installed.
#### Arch Linux
```sh
sudo pacman -S git stow vim neovim zsh clang
```
## Installation
Clone the repo using one of the methods.
#### Using HTTPS
```sh
git clone https://github.com/TiagoRG/.dotfiles.git
```
#### Using SSH
```sh
git clone git@github.com:TiagoRG/.dotfiles.git
```
#### Using GitHub CLI
```sh
gh repo clone TiagoRG/.dotfiles
```
Setup stow's symlinks.
```sh
cd .dotfiles
stow .
```

87
setup
View File

@ -1,87 +0,0 @@
#!/bin/bash
# Exit if ran using sh
if [ ! "$BASH_VERSION" ] ; then
printf "\033[0;31mPlease run the script using 'bash' instead of 'sh'\033[0m\n"
exit
fi
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P )
cd "$parent_path" || exit
# ------------------- Config functions -------------------
setup_nvim() {
echo -e "\033[0;33mSetting up neovim...\033[0m"
sudo pacman -S neovim
# Install packer.nvim
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
# Install plugins
nvim --headless -c 'source ~/.config/nvim/lua/tiagorg/packer.lua' -c 'PackerSync'
echo -e "\033[0;32mNeovim setup complete!\033[0m"
}
setup_zsh() {
echo -e "\033[0;33mSetting up zsh...\033[0m"
git submodule update --init .zsh/zsh-autosuggestions
git submodule update --init .zsh/zsh-syntax-highlighting
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"
}
# ------------------- End of config functions -------------------
# ------------------- Main -------------------
# Menu to choose the config_option
config_option=$(zenity --list \
--title="TiagoRG Dotfiles" \
--column="Selected the config option" \
"Full setup" \
"Neovim" \
"zshrc" \
--width=500 --height=400)
# Check if the user selected an option
if [ -z "$config_option" ]; then
echo -e "\033[0;31mNo option selected. Exiting...\033[0m"
exit
fi
echo -e "\033[0;33mSelected option: $config_option\033[0m"
# Check which option was selected
case $config_option in
"Full setup")
setup_nvim
setup_zsh
setup_gnome_shell
;;
"Neovim")
setup_nvim
;;
"zshrc")
setup_zsh
;;
"gnome-shell")
setup_gnome_shell
;;
*)
echo -e "\033[0;31mInvalid option. Exiting...\033[0m"
exit
;;
esac
echo -e "\033[0;32mSetup complete!\033[0m"
# ------------------- End of Main -------------------