Skip to content
Snippets Groups Projects
Verified Commit 28e39b87 authored by Andreas Gerlach's avatar Andreas Gerlach
Browse files

[sway] add ueberzug and configure ranger; error handling in chromium_widevine scripts updated

parent 3fc3cffc
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,7 @@ seahorse
simple-scan
silver
system-config-printer
ueberzug
ytop
zathura
zathura-pdf-poppler
......
default_linemode devicons
set show_hidden true
set vcs_aware true
set preview_images true
set preview_images_method ueberzug
......@@ -14,7 +14,7 @@ TEMP_DIR="$(mktemp -p /var/cache/ -td ChromeOS-IMG.XXXXXX)"
# check online connectivity
wget -q --spider https://google.com
CONNECTION_STATUS=$?
if [ $CONNECTION_STATUS -ne 0 ]; then
if [[ $CONNECTION_STATUS -ne 0 ]]; then
echo "You have to establish an online connection first!" 1>&2
exit 1
fi
......@@ -40,12 +40,12 @@ if ! available git; then
pacman -S --noconfirm git
fi
if [ ! -d $CONTAINER_DIR ]; then
if [[ ! -d $CONTAINER_DIR ]]; then
echo Creating base directory for systemd containers $CONTAINER_DIR...
mkdir -p $CONTAINER_DIR
fi
if [ ! -d $CONTAINER_DIR/$CONTAINER_ID ]; then
if [[ ! -d $CONTAINER_DIR/$CONTAINER_ID ]]; then
echo Bootstrap new Debian 10 Buster armhf container
cd $CONTAINER_DIR
debootstrap --include=systemd-container,debconf --components=main,universe --arch=armhf buster $CONTAINER_ID
......
#!/bin/sh
set -e
CONTAINER_DIR=/var/lib/machines/
CONTAINER_ID=chromium_widevine
machinectl -q image-status $CONTAINER_ID >/dev/null 2>&1
IMAGE_STATUS=$?
if [ $IMAGE_STATUS -ne 0 ]; then
if [[ $IMAGE_STATUS -ne 0 ]]; then
echo Please run the install_chromium_widevine script first!
notify-send -u critical "Missing image" "Please run the install_chromium_widevine script!"
exit 1
fi
if [ ! -d $HOME/.local/share/chromium_widevine ]; then
if [[ ! -d $HOME/.local/share/chromium_widevine ]]; then
mkdir -p $HOME/.local/share/chromium_widevine
fi
set -e
# dbus session sharing
if [[ -n $DBUS_SESSION_BUS_ADDRESS ]]; then # remove prefix
host_dbus=${DBUS_SESSION_BUS_ADDRESS#unix:path=};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment