Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dots
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CALIN Alexis
Dots
Commits
2c67b0e9
Commit
2c67b0e9
authored
2 years ago
by
CALIN Alexis
Browse files
Options
Downloads
Patches
Plain Diff
update xinitrc
parent
5691d742
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
install-dwm.sh
+9
-7
9 additions, 7 deletions
install-dwm.sh
tui.sh
+46
-0
46 additions, 0 deletions
tui.sh
with
55 additions
and
7 deletions
install-dwm.sh
+
9
−
7
View file @
2c67b0e9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
tui.sh
0 → 100755
+
46
−
0
View file @
2c67b0e9
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment