Compare commits

...

2 Commits

Author SHA1 Message Date
Alex 373cbb591a add option to pass container to open as first arg to open-terminal.sh 2023-06-25 13:07:08 -05:00
Alex 09394cce23 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
2023-06-25 12:22:13 -05:00
3 changed files with 37 additions and 21 deletions

View File

@ -16,7 +16,7 @@ Torrent"
rss() {
#sfeed
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 "}" >> ~/.config/sfeed/sfeedrc
@ -29,7 +29,7 @@ ydl() {
OPT="default
select"
SEL="$( echo "$OPT" | bemenu)"
SEL="$( echo "$OPT" | rofi -dmenu)"
LOC="$HOME/media/audio/"
@ -52,7 +52,7 @@ select"
sel() {
SEL="$( echo "$OPTS" | bemenu)"
SEL="$( echo "$OPTS" | rofi -dmenu)"
case "$SEL" in

View File

@ -1,32 +1,29 @@
#!/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 install htop radeontop
sudo dnf -y install lf mpv ncmpcpp yt-dlp yt-dlp-zsh-completion chafa imv neovim p7zip p7zip-plugins unrar-free
sudo dnf -y install htop radeontop
sudo dnf install mpd --allowerasing
sudo dnf -y install mpd --allowerasing
#background stuff needed for scripts, etc.
sudo dnf install ImageMagick bat ffmpegthumbnailer
sudo dnf -y install ImageMagick bat ffmpegthumbnailer
#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
sudo dnf install foot-terminfo iputils
sudo dnf -y install foot-terminfo iputils
#development stuff
sudo dnf install git python3-pip g++
sudo dnf groupinstall "Development Tools" "Development Libraries"
sudo dnf install man-db
sudo dnf -y install git python3-pip g++
sudo dnf -y groupinstall "Development Tools" "Development Libraries"
sudo dnf -y install man-db
sudo dnf install rofi-wayland
sudo dnf copr enable derisis13/ani-cli
sudo dnf install ani-cli
sudo dnf install p7zip p7zip-plugins unrar-free
#install dbus-daemon to get flatpaks to work inside distrobox
sudo dnf -y install dbus-daemon
sudo mkdir /run/dbus
# run: "sudo dbus-daemon --system" before running a flatpak

19
open-terminal.sh Executable file
View File

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