mirror of https://github.com/ericonr/dotfiles.git
Move wayland-vars to compositor launch time.
Add wayfire start.
This commit is contained in:
parent
e3f61dde74
commit
ff22dceb83
|
@ -1,7 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# ericonr's script for launching applications
|
||||||
# ericonr's script for launching applications with the appropriate env
|
|
||||||
|
|
||||||
. "$HOME/.local/bin/wayland-vars"
|
|
||||||
|
|
||||||
exec generic-launcher /bin/bash -c 'compgen -c | sort -u | fzf --border | xargs lnch'
|
exec generic-launcher /bin/bash -c 'compgen -c | sort -u | fzf --border | xargs lnch'
|
||||||
|
|
|
@ -1,21 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# created by elogind, usually
|
|
||||||
if test -z "${XDG_RUNTIME_DIR}"; then
|
|
||||||
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
|
|
||||||
if ! test -d "${XDG_RUNTIME_DIR}"; then
|
|
||||||
mkdir "${XDG_RUNTIME_DIR}"
|
|
||||||
chmod 0700 "${XDG_RUNTIME_DIR}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
export XDG_SESSION_TYPE=wayland
|
|
||||||
. ~/.local/bin/wayland-vars
|
. ~/.local/bin/wayland-vars
|
||||||
|
launch_compositor sway --my-next-gpu-wont-be-nvidia -d -V
|
||||||
# catch crashes
|
|
||||||
ulimit -c unlimited
|
|
||||||
|
|
||||||
# start the compositor itself
|
|
||||||
WLR_DRM_DEVICES=/dev/dri/card0 exec dbus-run-session \
|
|
||||||
sway --my-next-gpu-wont-be-nvidia -d -V 2>&1 \
|
|
||||||
> "${XDG_RUNTIME_DIR}/sway-$(date "+%Y-%m-%d").log"
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. ~/.local/bin/wayland-vars
|
||||||
|
launch_compositor wayfire
|
|
@ -1,20 +1,36 @@
|
||||||
# ericonr's environment for launching applications
|
# ericonr's environment for launching wayland compositors
|
||||||
|
|
||||||
if [ "$XDG_SESSION_TYPE" = wayland ]
|
# created by elogind, usually
|
||||||
then
|
if test -z "${XDG_RUNTIME_DIR}"; then
|
||||||
# Qt
|
export XDG_RUNTIME_DIR="/tmp/$(mktemp -d ${UID}-runtime-XXXXXX)"
|
||||||
export QT_QPA_PLATFORM=wayland-egl
|
if ! test -d "${XDG_RUNTIME_DIR}"; then
|
||||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
mkdir "${XDG_RUNTIME_DIR}"
|
||||||
# Firefox
|
chmod 0700 "${XDG_RUNTIME_DIR}"
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
fi
|
||||||
# Java
|
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
||||||
# SDL - not working for most games
|
|
||||||
#export SDL_VIDEODRIVER=wayland
|
|
||||||
# Vulkan should use the Intel GPU
|
|
||||||
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json
|
|
||||||
export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json
|
|
||||||
else
|
|
||||||
# useful for KDE
|
|
||||||
export GTK_USE_PORTAL=1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Session
|
||||||
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
|
||||||
|
# Qt
|
||||||
|
export QT_QPA_PLATFORM=wayland-egl
|
||||||
|
# Firefox
|
||||||
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
# Java
|
||||||
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||||
|
# SDL - not working for most games
|
||||||
|
#export SDL_VIDEODRIVER=wayland
|
||||||
|
|
||||||
|
# Vulkan should use the Intel GPU
|
||||||
|
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json
|
||||||
|
# EGL should use the Mesa driver -> segfaults with Nvidia on musl
|
||||||
|
export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json
|
||||||
|
# Pass Intel GPU wlroots - hope naming doesn't change
|
||||||
|
export WLR_DRM_DEVICES=/dev/dri/card0
|
||||||
|
|
||||||
|
# catch crashes
|
||||||
|
ulimit -c unlimited
|
||||||
|
|
||||||
|
launch_compositor() {
|
||||||
|
exec dbus-run-session "$@" > "${XDG_RUNTIME_DIR}/$1-$(date "+%Y-%m-%d").log" 2>&1
|
||||||
|
}
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# ericonr's script for launching applications
|
||||||
# ericonr's script for launching applications with the appropriate env
|
|
||||||
|
|
||||||
. "$HOME/.local/bin/wayland-vars"
|
|
||||||
|
|
||||||
export GTK_THEME=Breeze
|
|
||||||
|
|
||||||
exec wofi -i -t alacritty "$@"
|
exec wofi -i -t alacritty "$@"
|
||||||
|
|
Loading…
Reference in New Issue