Skip to content
Snippets Groups Projects
Commit 2c67b0e9 authored by CALIN Alexis's avatar CALIN Alexis
Browse files

update xinitrc

parent 5691d742
No related branches found
No related tags found
No related merge requests found
......@@ -3,14 +3,16 @@ echo 'Create xinitrc for dwm'
echo '#keyboard config
setxkbmap fr
dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY &
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
# shellcheck source=/dev/null
[ -x "$f" ] && . "$f"
done
unset f
fi
# if [ -d /etc/X11/xinit/xinitrc.d ] ; then
# for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
# # shellcheck source=/dev/null
# [ -x "$f" ] && . "$f"
# done
# unset f
# fi
# Statusbar loop
while true; do
......
tui.sh 0 → 100755
#!/bin/bash
distro=""
yn=""
# ncurses tui menu
distro=$(whiptail --inputbox "What GNU/Linux distribution are you using ? Enter 'Debian' or 'Arch'" 8 78 --title "GNU/Linux Distribution" 3>&1 1>&2 2>&3)
if [ "$distro" == "Debian" ]; then
sudo apt update
yn=$(whiptail --yesno "Install and setup DWM ?" 8 78 --title "DWM Installation" 3>&1 1>&2 2>&3)
if [ "$yn" == 0 ]; then
# dwm dependencies
sudo apt install build-essential libx11-dev libxft-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev\
xbacklight alsa-utils
./install-dwm.sh
./fix-screen-tearing.sh
fi
yn=$(whiptail --yesno "Install recommended programs ?" 8 78 --title "Programs Installation" 3>&1 1>&2 2>&3)
if [ "$yn" == 0 ]; then
# programs
sudo apt install network-manager chromium newsboat thunderbird libreoffice pandoc texlive-full xss-lock slock xbacklight neofetch ranger htop
sudo systemctl enable --now NetworkManager
yn=$(whiptail --yesno "Install VScode ?" 8 78 --title "VScode Installation" 3>&1 1>&2 2>&3)
if [ "$yn" == 0 ]; then
# vscode
curl https://go.microsoft.com/fwlink/?LinkID=760868 && sudo apt install ./code*.deb
fi
yn=$(whiptail --yesno "Install Mullvad VPN ?" 8 78 --title "Mullvad Installation" 3>&1 1>&2 2>&3)
if [ "$yn" == 0 ]; then
# mullvad
curl https://mullvad.net/download/app/deb/latest/ && sudo apt install ./Mullvad*.deb && sudo systemctl enable --now mullvad-daemon
fi
fi
elif [ "$distro" == "Arch" ]; then
sudo pacman -Sy
sudo pacman -S base-devel libx11 libxft libxinerama freetype2 fontconfig
else
echo "Non recognized distribution"
echo "Quitting"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment