You are not logged in.

#1 2018-09-09 09:01:26

harry.nguyen1597
Member
Registered: 2018-09-09
Posts: 6

[SOLVED] i3 is not started in full-screen for the first time `startx`

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

#2 2018-09-10 03:43:06

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

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

#3 2018-09-10 16:37:13

harry.nguyen1597
Member
Registered: 2018-09-09
Posts: 6

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

Here is the video that describes my problem.

https://drive.google.com/file/d/1m_kWfq … sp=sharing

Thank you!

Offline

#4 2018-09-10 17:00:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

Can you post your modified xinitrc file within [ code ] tags?

Offline

#5 2018-09-11 01:12:09

harry.nguyen1597
Member
Registered: 2018-09-09
Posts: 6

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

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 login

Offline

#6 2018-09-11 01:32:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

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

#7 2018-09-11 01:55:04

harry.nguyen1597
Member
Registered: 2018-09-09
Posts: 6

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

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

#8 2018-09-11 02:12:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

Where are you running VBoxClient?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2018-09-11 02:21:49

harry.nguyen1597
Member
Registered: 2018-09-09
Posts: 6

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

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-all

in ~./.config/i3/config and it's launched in full screen. But the wallpaper is not automatically widespread. [Shown as below]

2r7r880.png

Last edited by harry.nguyen1597 (2018-09-11 02:47:43)

Offline

#10 2018-09-11 02:48:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

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

#11 2018-09-11 03:17:50

harry.nguyen1597
Member
Registered: 2018-09-09
Posts: 6

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

I added VBoxClient-all before i3 in .xinitrc file and it works.

Thank you all.

Offline

#12 2018-09-11 03:30:22

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] i3 is not started in full-screen for the first time `startx`

I'm glad you got it working smile
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

Board footer

Powered by FluxBB