summaryrefslogtreecommitdiff
path: root/firestartx
diff options
context:
space:
mode:
Diffstat (limited to 'firestartx')
-rwxr-xr-xfirestartx10
1 files changed, 9 insertions, 1 deletions
diff --git a/firestartx b/firestartx
index 748b9dd..636fc84 100755
--- a/firestartx
+++ b/firestartx
@@ -22,6 +22,7 @@ fi
22 22
23# TITLE=$* # lol, startx doesn't support arguments with spaces 23# TITLE=$* # lol, startx doesn't support arguments with spaces
24TITLE=$1 24TITLE=$1
25TITLE= # blank title documents the screen grab keys in the title
25 26
26if [ "$1" != firestart ] 27if [ "$1" != firestart ]
27then 28then
@@ -41,7 +42,14 @@ then
41 xinit "$@" -- $(which Xephyr) "$NEW_DISPLAY" -resizeable -p 0 -terminate ${TITLE:+ -title "$TITLE"} 42 xinit "$@" -- $(which Xephyr) "$NEW_DISPLAY" -resizeable -p 0 -terminate ${TITLE:+ -title "$TITLE"}
42else 43else
43 set -x 44 set -x
44 startx -- $(which Xephyr) "$NEW_DISPLAY" -resizeable -p 0 -terminate ${TITLE:+ -title "$TITLE"} & 45 dpi=$(xrdb -query | sed -n -e 's/^Xft.dpi:[ \t]*//p')
46 startx -- "$(which Xephyr)" "$NEW_DISPLAY" \
47 -resizeable \
48 -p 0 \
49 -terminate \
50 ${TITLE:+ -title "$TITLE"} \
51 ${dpi:+ -dpi "$dpi"} \
52 &
45 if [ $# -gt 0 ] 53 if [ $# -gt 0 ]
46 then 54 then
47 DISPLAY=$NEW_DISPLAY "$@" & 55 DISPLAY=$NEW_DISPLAY "$@" &