You are not logged in.
Hello everyone,
I'm currently playing around with i3 WM. After modifying my /etc/X11/xinit/xinitrc file, I managed to start i3 by startx. However, it's not started in full-screen for the first time (I am using VirtualBox and i3 shows up with the same size as tty screen which is 1024x768). I have to exit i3, and type startx again to make it full-screen. This problem only happens when I shutdown Arch. When rebooting, i3 is launched in full screen normally.
This is the first time I ask question in our forum, so if my question has any problems, please let me know.
Thank you.
Last edited by harry.nguyen1597 (2018-09-11 04:16:31)
Offline
Err, are you talking about resolution or window size?
Are you referring to i3's full-screen mode or something else? Please post a screenshot or a video of the issue.
Offline
Here is the video that describes my problem.
https://drive.google.com/file/d/1m_kWfq … sp=sharing
Thank you!
Offline
Can you post your modified xinitrc file within [ code ] tags?
Offline
This is my modified .xinitrc file:
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec /usr/bin/i3
#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name loginOffline
This has nothing to do with i3, this is just a virtualbox setup issue:
https://wiki.archlinux.org/index.php/Vi … _Additions
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I followed the instructions. However, when I add video=1920x1080 to kernel parameter (but instead of TAB, I pressed 'e' during grub), it seems not taking permanent effect.
Offline
Where are you running VBoxClient?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Sorry for silly question, but what do you mean by "where"?
Edited: after startx, I ran VBoxClient-all in i3, and it is in full screen amazingly. But I still don't know how to autostart .desktop file in i3.
Edited: I added
exec --no-startup-id VBoxClient-allin ~./.config/i3/config and it's launched in full screen. But the wallpaper is not automatically widespread. [Shown as below]

Last edited by harry.nguyen1597 (2018-09-11 02:47:43)
Offline
I don't have much experience with virtualbox, but if it were me I'd run the VBoxClient-all command in ~/.xinitrc before i3. As the wiki doesn't mention this approach there may be a reason it could fail - but I couldn't imagine what the reason could be: X is up and running before xinitrc is executed, so it should be a perfectly good place to run VBoxClient-all.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I added VBoxClient-all before i3 in .xinitrc file and it works.
Thank you all.
Offline
I'm glad you got it working ![]()
Please remember to mark your thread as [SOLVED] so that it can benefit others. https://wiki.archlinux.org/index.php/Co … ow_to_post
Offline