cleanup
This commit is contained in:
parent
fd643852d4
commit
639b2ce632
2 changed files with 16 additions and 6 deletions
|
|
@ -11,4 +11,7 @@ profile_dir=${XDG_DATA_HOME:-$HOME/.local/share}/jails/webapp-$profile
|
||||||
|
|
||||||
mkdir -p $profile_dir
|
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 "$@"
|
||||||
|
|
|
||||||
17
misc/xc
17
misc/xc
|
|
@ -30,10 +30,18 @@ HELP
|
||||||
|
|
||||||
source ${$(realpath "$0"):h:h}/lib/common.zsh
|
source ${$(realpath "$0"):h:h}/lib/common.zsh
|
||||||
|
|
||||||
function get_primary() { xclip -o -selection primary }
|
if [[ -n $WAYLAND_DISPLAY ]]; then
|
||||||
function get_clipboard() { xclip -o -selection clipboard }
|
function get_primary() { wl-paste -p }
|
||||||
function set_primary() { xclip -i -selection primary }
|
function get_clipboard() { wl-paste }
|
||||||
function set_clipboard() { xclip -i -selection clipboard }
|
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() {
|
function show_both() {
|
||||||
printf "\e[1;94mPrimary\e[0m\n"
|
printf "\e[1;94mPrimary\e[0m\n"
|
||||||
get_primary
|
get_primary
|
||||||
|
|
@ -95,4 +103,3 @@ case "${0:t}" in
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue