splitting config for work or home

This commit is contained in:
2024-09-10 10:16:14 +02:00
parent bc9300ece8
commit 744a7b01b8
9 changed files with 182 additions and 11 deletions

View File

@@ -2,6 +2,24 @@
https://gta.grandbesancon.fr (Etempo)
http://s-ipam-p1 (Ipam)
https://teams.microsoft.com (Teams)
https://support.grandbesancon.fr (Glpi)
https://courrier.grandbesancon.fr/owa (Xchange)
https://web.openrainbow.com (Rainbow)
https://dokuwiki.grandbesancon.fr (Dokuwiki)
https://172.18.228.25:8445 (ISMSVA)
https://s-vcenter6-p1.ville.besancon (VSphere)
https://s-ocum-p1.ville.besancon (Ocum)
https://172.18.227.110 (Netapp)
https://supervision.grandbesancon.fr (Centrifion)
https://s-trenddeep-p1:4119 (Trend)
http://s-aptcacher-p1:3142 (Aptcacher)
https://kemp.grandbesancon.fr/ (Kemp)
https://proxyint.grandbesancon.fr (Proxyint)
https://proxyext.grandbesancon.fr (Proxyext)
https://git.grandbesancon.fr/ (Gitea)
https://wiki.grandbesancon.fr/ (WikiJS)
https://orchestrator.grandbesancon.fr (Semaphore)
https://portainer.grandbesancon.fr (Portainer)
### Unixyourbrain bookmarks
https://unixyourbrain.org (Heimdall)
https://accounts.unixyourbrain.org (Authelia)
@@ -15,7 +33,7 @@ https://passbolt.unixyourbrain.org (Passbolt)
https://wiki.unixyourbrain.org (Wikijs)
https://git.unixyourbrain.org (Gitea)
https://rutorrent.unixyourbrain.org (Rutorrent)
http://10.0.0.1:4447 (Downloads)
http://10.0.0.1:2013 (Downloads)
https://nextcloud.unixyourbrain.org (Nextcloud)
http://192.168.0.254/ (Freebox)
###

View File

@@ -29,4 +29,4 @@ if [[ "$_RESULT" =~ .*/$ ]]; then
exit 0
fi
mpv "http://10.0.0.1:4447/$_RESULT"
mpv "http://10.0.0.1:2013/$_RESULT"

View File

@@ -9,7 +9,7 @@ source ./scripts/functions
### Global variables
_DIRNAME="$(pwd)"
_PACKAGES=(arc-icon-theme chromium code curl discord dmenu dunst egl-wayland feh flameshot flatpak firefox htop hyprland i3lock i3-wm imagemagick lxappearance mpv nwg-look otf-comicshanns-nerd pavucontrol pipewire pipewire-jack pipewire-pulse polybar neofetch numlockx papirus-icon-theme picom plocate polybar remmina ttf-dejavu-nerd wget wireguard-tools xdg-desktop-portal xorg xorg-xinit)
_PACKAGES=(arc-gtk-theme chromium code curl discord dmenu dunst egl-wayland feh flameshot flatpak firefox htop hyprland i3lock i3-wm imagemagick lxappearance mpv nwg-look otf-comicshanns-nerd pavucontrol pipewire pipewire-jack pipewire-pulse polybar neofetch numlockx papirus-icon-theme picom plocate polybar remmina ttf-dejavu-nerd wget wireguard-tools xdg-desktop-portal xorg xorg-xinit)
### Configure pacman and install needeed packages
_info "Configuring and updateing packages"
@@ -82,9 +82,23 @@ mkdir -p ~/.config/kitty
ln -sf "$_DIRNAME/links/kitty/kitty.conf" ~/.config/kitty/kitty.conf
ln -sf "$_DIRNAME/links/kitty/current-theme.conf" ~/.config/kitty/current-theme.conf
### work vs home include home or work
#https://i3wm.org/docs/userguide.html#include
#https://github.com/polybar/polybar/wiki/Configuration#file-inclusion
### Qwerty fr
cp /usr/share/X11/xkb/symbols/us /usr/share/X11/xkb/symbols/us_qwerty-fr
curl https://raw.githubusercontent.com/qwerty-fr/qwerty-fr/master/linux/us_qwerty-fr >> /usr/share/X11/xkb/symbols/us_qwerty-fr
if [[ $_LOCATION == "work" ]]
then
_info "Configuring for work"
sed -i "s|^include /etc/i3.*|include /etc/i3/work|" ./links/i3wm/config
sed -i "s|^include-file = /etc/polybar/home.ini|include-file = /etc/polybar/work.ini|" ./links/polybar/config.ini
fi
if [[ $_LOCATION == "home" ]]
then
_info "Configuring for work"
sed -i "s|^include /etc/i3.*|include /etc/i3/home|" ./links/i3wm/config
sed -i "s|^include-file = /etc/polybar/work.ini|include-file = /etc/polybar/home.ini|" ./links/polybar/config.ini
fi
### nvidia vs amd
### Print kernel cmdline

View File

@@ -1,4 +1,6 @@
### Globals
# Location home|work
_LOCATION=
# GPU : nvidia|amd
_GPU=
### Colors