summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebian Live user <user@debian-BULLSEYE-live-builder-AMD64>2023-04-29 16:29:34 -0400
committerDebian Live user <user@debian-BULLSEYE-live-builder-AMD64>2023-04-29 16:29:34 -0400
commit00d390947b9ec98d6adb04deaa42a3cadf645548 (patch)
treee895609b7ac462486900205bc2543c4c953aa19a
parent288b45976e7b1c8fd70d3e69164f49a4f5d1d6ab (diff)
xsession: improved firestartx support
-rw-r--r--dot/xsession25
1 files changed, 21 insertions, 4 deletions
diff --git a/dot/xsession b/dot/xsession
index 077702a..c7905fc 100644
--- a/dot/xsession
+++ b/dot/xsession
@@ -16,7 +16,7 @@ xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Tapping Enabled' 1
16 16
17if [ -r ~/.Xresources.local ] 17if [ -r ~/.Xresources.local ]
18then 18then
19 xrdb -merge ~/.Xresources.local 19 xrdb -merge ~/.Xresources.local
20fi 20fi
21 21
22if [ "${DISPLAY%.*}" = :0 ] 22if [ "${DISPLAY%.*}" = :0 ]
@@ -24,8 +24,8 @@ then
24 /usr/lib/notification-daemon/notification-daemon & 24 /usr/lib/notification-daemon/notification-daemon &
25 xterm -e tmux attach & 25 xterm -e tmux attach &
26 quassel & 26 quassel &
27 firestartx &
28fi 27fi
28
29for wm in xmonad i3 29for wm in xmonad i3
30do 30do
31 command -v "$wm" >/dev/null || continue 31 command -v "$wm" >/dev/null || continue
@@ -34,9 +34,26 @@ done
34 34
35if [ -x ~/.xsession.local ] 35if [ -x ~/.xsession.local ]
36then 36then
37 ~/.xsession.local 37 ~/.xsession.local
38fi
39
40if [ "${DISPLAY%.*}" = :0 ]
41then
42 if [ "$XSESSION_DISPLAY0_FIRESTART_RAW" ]
43 then
44 if systemctl --user --quiet is-active firefox@$DISPLAY
45 then
46 systemctl --user stop firefox@$DISPLAY
47 fi
48 firestart &
49 else
50 firestartx &
51 fi
52elif [ "$XSESSION_IS_FIRESTARTX" ]
53then
54 firestart &
38fi 55fi
39 56
40exec perl -e 'wait while 1' 57exec perl -MPOSIX -e 'wait while pause'
41xterm # if exec fails 58xterm # if exec fails
42 59