mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Update for better external tools
This commit is contained in:
parent
3e000a9087
commit
73eb94d18a
2 changed files with 19 additions and 6 deletions
|
|
@ -30,17 +30,25 @@ if test -n "$DISPLAY" && test -d /etc/X11/xinit/xinitrc.d;
|
|||
then
|
||||
for f in /etc/X11/xinit/xinitrc.d/*.sh;
|
||||
do
|
||||
test -f "$f" && . "$f"
|
||||
test -r "$f" && . "$f"
|
||||
done
|
||||
fi
|
||||
|
||||
# Get the preferred terminal from GNOME (if you use mostly GTK apps)
|
||||
TERMINAL=$(gsettings get org.gnome.desktop.default-applications.terminal exec | tr -d \')
|
||||
# Emerging standard, used by i.a. modern GTK versions instead of the obsolete
|
||||
# org.gnome.default-applications.terminal.exec gsetting (which is now ignored)
|
||||
# https://github.com/Vladimir-csp/xdg-terminal-exec (or create a symlink to
|
||||
# your preferred terminal emulator)
|
||||
TERMINAL=xdg-terminal-exec
|
||||
# Get the preferred terminal from KDE (if you use mostly Qt apps)
|
||||
#TERMINAL=$(kreadconfig5 --file kdeglobals --group General --key TerminalApplication --default "konsole")
|
||||
# Or just set it hard:
|
||||
#TERMINAL=kitty
|
||||
export TERMINAL
|
||||
|
||||
if command -v xdg-autostart >/dev/null 2>&1;
|
||||
then
|
||||
export XDG_CURRENT_DESTKOP=OPENBOX
|
||||
else
|
||||
# Use autostart scripts for these environments
|
||||
export WB_AUTOSTART_ENVIRONMENT=GNOME:KDE
|
||||
export WB_AUTOSTART_ENVIRONMENT=GNOME:KDE:OPENBOX
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -60,7 +60,12 @@ then
|
|||
fi
|
||||
|
||||
# And the XDG autostart script
|
||||
if test -x $WB_USER_CONF_DIR/xdg-autostart;
|
||||
if command -v xdg-autostart >/dev/null 2>&1;
|
||||
then
|
||||
# Probably what you want instead of my simple shell script.
|
||||
# https://gitlab.com/somini/xdg-autostart/
|
||||
WB_XDG_AUTOSTART="xdg-autostart"
|
||||
elif test -x $WB_USER_CONF_DIR/xdg-autostart;
|
||||
then
|
||||
WB_XDG_AUTOSTART=$WB_USER_CONF_DIR/xdg-autostart;
|
||||
elif test -x $WB_SYS_CONF_DIR/xdg-autostart;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue