This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_configs.sh
executable file
·101 lines (85 loc) · 3.03 KB
/
my_configs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash
# a simple script that takes care of:
# creating basic folders, important symlinks and configurations
set -o nounset # error when referencing undefined variable
set -o errexit # exit when command fail
# make repos folder and cd into it
cd ~
mkdir repos
cd repos
# install helix editor
git clone https://github.com/helix-editor/helix
cd helix
cargo install --path helix-term --locked
# install paru
sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
# install paru apps
cd ~
echo " "
echo "...installing brave, dprint, trashy, ttf-mononoki"
paru brave-bin dprint ttf-mononoki
# ssh key to github so i can download dotfiles
echo " "
ssh-keygen -t ecdsa -b 521
echo " "
echo "Add this public key, to you're GitHub account before continuing"
echo " "
cat ~/.ssh/id_ecdsa.pub
echo " "
echo "Press [ENTER] when you are ready to continue"
read y
# cloning dotfiles and creating symlinks
cd ~
echo " "
echo "...starting cloning dotfiles and creating symlinks"
# for the HOME folder
git clone git@github.com:jokyv/dotfiles ~/dot
ln -s ~/dot/bash/.bashrc ~/
ln -s ~/dot/bash/.bash_profile ~/
# for the .config/ folder
ln -s ~/dot/alacritty ~/.config/
ln -s ~/dot/fd ~/.config/
ln -s ~/dot/git ~/.config/
ln -s ~/dot/starship/starship.toml ~/.config/
## Niri wm settings
# Make a link to wallpaper:
echo " "
echo ":: Wallpapers and pics"
echo "...creating pics folder and adding my wallpapers repo"
mkdir pics
cd pics
git clone git@github.com:jokyv/wallpapers.git ~/pics/wallpapaers/
ln -sf ~/pics/wallpapers/purple_view.png ~/.config/niri/wallpaper
# Needed services for Niri wm:
mkdir -p ~/.config/systemd/user/niri.service.wants
ln -s /usr/lib/systemd/user/waybar.service ~/.config/systemd/user/niri.service.wants/
ln -s ~/.config/systemd/user/cliphist.service ~/.config/systemd/user/niri.service.wants/
ln -s /usr/lib/systemd/user/mako.service ~/.config/systemd/user/niri.service.wants/
ln -s ~/.config/systemd/user/swaybg.service ~/.config/systemd/user/niri.service.wants/
ln -s ~/.config/systemd/user/darkman.service ~/.config/systemd/user/niri.service.wants/
ln -s /usr/lib/systemd/user/gnome-polkit-agent.service ~/.config/systemd/user/niri.service.wants/
ln -s ~/.config/systemd/user/playctld.service ~/.config/systemd/user/niri.service.wants/
ln -s ~/.config/systemd/user/wlsunset.service ~/.config/systemd/user/niri.service.wants/
ln -s ~/.config/systemd/user/ydotool.service ~/.config/systemd/user/niri.service.wants/
echo "...lets source all the config files"
# source ~/.profile
# symlink your favourtie fonts
cd ~
echo " "
echo "...symlink my favourite fonts to ~/.local/share/"
# ln -s ~/dot/fonts/ ~/.local/share/
# personal projects
cd ~
echo " "
echo "...adding all personal-private repos"
git clone git@github.com:jokyv/notes.git ~/repos/
## OPTIONAL INSTALLATIONS
# # TMUX
# echo " "
# echo ":: Tmux"
# ln -s ~/dot/tmux/ ~/.config/
echo " "
echo "...all configurations are now done!"