This commit is contained in:
Alexander Gehrke 2026-01-11 15:35:26 +01:00
parent fd643852d4
commit 639b2ce632
2 changed files with 16 additions and 6 deletions

View file

@ -11,4 +11,7 @@ profile_dir=${XDG_DATA_HOME:-$HOME/.local/share}/jails/webapp-$profile
mkdir -p $profile_dir
exec firejail ${XAUTHORITY:+--whitelist=$XAUTHORITY} --private=$profile_dir chromium --restore-last-session=false --class=$profile "$@"
exec firejail ${XAUTHORITY:+--whitelist=$XAUTHORITY} \
--dbus-user=filter \
--private=$profile_dir \
chromium --restore-last-session=false --class=$profile "$@"

View file

@ -30,10 +30,18 @@ HELP
source ${$(realpath "$0"):h:h}/lib/common.zsh
if [[ -n $WAYLAND_DISPLAY ]]; then
function get_primary() { wl-paste -p }
function get_clipboard() { wl-paste }
function set_primary() { wl-copy -p }
function set_clipboard() { wl-copy }
else
function get_primary() { xclip -o -selection primary }
function get_clipboard() { xclip -o -selection clipboard }
function set_primary() { xclip -i -selection primary }
function set_clipboard() { xclip -i -selection clipboard }
fi
function show_both() {
printf "\e[1;94mPrimary\e[0m\n"
get_primary
@ -95,4 +103,3 @@ case "${0:t}" in
esac
;;
esac