Fix duplicates optional

This commit is contained in:
Digital Studium 2024-03-02 13:44:33 +00:00
parent 011bec4eae
commit eff7cb4674
1 changed files with 24 additions and 18 deletions

View File

@ -1,7 +1,10 @@
#!/bin/bash
# ubuntu hangs if network interface is not optional
if ! sudo grep -r optional /etc/netplan
then
sudo sed -i '/dhcp4/a\ optional: yes' /etc/netplan/00-installer-config-wifi.yaml
sudo sed -i '/dhcp4/a\ optional: yes' /etc/netplan/00-installer-config.yaml
fi
# Add firefox repo
echo "deb [trusted=yes] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
# By default ubuntu installs firefox from snap, so I want to disable it
@ -25,10 +28,12 @@ suckless-tools `# for dmenu` \
ncdu `# for disk usage analysys` \
brightnessctl `# for keyboard backlight` \
xcompmgr `# for st opacity` \
telegram-desktop \
slack \
xwallpaper `# for background` \
ubuntu-wallpapers-jammy `# backgrounds` \
xfe `# classic file manager` \
surf `# suckless browser` \
telegram-desktop \
slack \
firefox \
python3
@ -81,5 +86,6 @@ echo "firefox &" > $HOME/.dwm/autostart.sh
echo "xcompmgr &" >> $HOME/.dwm/autostart.sh
echo "telegram-desktop &" >> $HOME/.dwm/autostart.sh
echo "st &" >> $HOME/.dwm/autostart.sh
echo "DISPLAY=:0 xhost +local:" >> $HOME/.dwm/autostart.sh # give permissions to display
echo "xhost +local:" >> $HOME/.dwm/autostart.sh # give permissions to display
echo "xwallpaper --stretch /usr/share/backgrounds/Blue_flower_by_Elena_Stravoravdi.jpg" >> $HOME/.dwm/autostart.sh # give permissions to display
chmod +x $HOME/.dwm/autostart.sh