updated fedora container setup

modified browser.sh to use brave flatpak

added open-terminal.sh script that will open terminals with a menu to
select the distrobox to use
master
Alex 2023-06-25 12:22:13 -05:00
parent 992a388711
commit 09394cce23
3 changed files with 28 additions and 21 deletions

View File

@ -16,7 +16,7 @@ Torrent"
rss() { rss() {
#sfeed #sfeed
sed -i '$d' ~/.config/sfeed/sfeedrc sed -i '$d' ~/.config/sfeed/sfeedrc
FEED_NAME="$(echo "" | bemenu -p "Feed Name: ")" FEED_NAME="$(echo "" | rofi -dmenu -p "Feed Name: ")"
echo "feed \"$FEED_NAME\" \"$1\"" >> ~/.config/sfeed/sfeedrc echo "feed \"$FEED_NAME\" \"$1\"" >> ~/.config/sfeed/sfeedrc
echo "}" >> ~/.config/sfeed/sfeedrc echo "}" >> ~/.config/sfeed/sfeedrc
@ -29,7 +29,7 @@ ydl() {
OPT="default OPT="default
select" select"
SEL="$( echo "$OPT" | bemenu)" SEL="$( echo "$OPT" | rofi -dmenu)"
LOC="$HOME/media/audio/" LOC="$HOME/media/audio/"
@ -52,7 +52,7 @@ select"
sel() { sel() {
SEL="$( echo "$OPTS" | bemenu)" SEL="$( echo "$OPTS" | rofi -dmenu)"
case "$SEL" in case "$SEL" in

View File

@ -1,32 +1,29 @@
#!/bin/sh #!/bin/sh
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-"$(rpm -E %fedora)".noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-"$(rpm -E %fedora)".noarch.rpm sudo dnf -y install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-"$(rpm -E %fedora)".noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-"$(rpm -E %fedora)".noarch.rpm
sudo dnf copr enable pennbauman/ports sudo dnf -y copr enable pennbauman/ports
sudo dnf install lf mpv ncmpcpp yt-dlp yt-dlp-zsh-completion chafa imv neovim p7zip sudo dnf -y install lf mpv ncmpcpp yt-dlp yt-dlp-zsh-completion chafa imv neovim p7zip p7zip-plugins unrar-free
sudo dnf install htop radeontop sudo dnf -y install htop radeontop
sudo dnf install mpd --allowerasing sudo dnf -y install mpd --allowerasing
#background stuff needed for scripts, etc. #background stuff needed for scripts, etc.
sudo dnf install ImageMagick bat ffmpegthumbnailer sudo dnf -y install ImageMagick bat ffmpegthumbnailer
#gui programs #gui programs
sudo dnf install zathura zathura-cb zathura-djvu zathura-pdf-mupdf sudo dnf -y install zathura zathura-cb zathura-djvu zathura-pdf-mupdf
#misc #misc
sudo dnf install foot-terminfo iputils sudo dnf -y install foot-terminfo iputils
#development stuff #development stuff
sudo dnf install git python3-pip g++ sudo dnf -y install git python3-pip g++
sudo dnf groupinstall "Development Tools" "Development Libraries" sudo dnf -y groupinstall "Development Tools" "Development Libraries"
sudo dnf install man-db sudo dnf -y install man-db
#install dbus-daemon to get flatpaks to work inside distrobox
sudo dnf install rofi-wayland sudo dnf -y install dbus-daemon
sudo mkdir /run/dbus
sudo dnf copr enable derisis13/ani-cli # run: "sudo dbus-daemon --system" before running a flatpak
sudo dnf install ani-cli
sudo dnf install p7zip p7zip-plugins unrar-free

10
open-terminal.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
SEL="$(distrobox list | awk '{if (NR>1) {print $3}}' | rofi -dmenu -p "Select Distrobox ")"
if [ "$SEL" ]; then
echo "selected $SEL"
#distrobox enter "$SEL"
foot -e distrobox enter $SEL --additional-flags "--env TERM=xterm-256color"
else
foot
fi