I was trying to do fullscreen on my second monitor but it’s always stick to 10% of my monitor.
After Fullscreen
I was trying to do fullscreen on my second monitor but it’s always stick to 10% of my monitor.
After Fullscreen
Hi @Pascal and welcome.
Still can’t grasp the problem from that picture. Resolution wise it looks fine. Could you please be more specific about the 10% problem?.
Say, it’s the tint2 panel? Wallpaper distribution?
Regards.
Welcome @Pascal to the forum,
$ scrot -m screenshot.png
it only shows up on 10% of my second screen when i click on the fullscreen button on my second monitor, but it works just fine on my primary screen screen
Here is the screenshot i took from scrot
Sorry, you mean when a window is full screen on HDMI-1,
the window shows half on one display and one half on the other display.
I cannot reproduce your situation as i have just one display at the moment.
Are the dimentions of HDMI-1 right.
please show output of…
$ xrandr
It looks like, both display’s are set as one display.
Output
I’m sorry, here is the output.
eDP-1 connected primary 1366x768+0+1080 (normal left inverted right x axis y axis) 309mm x 173mm
1366x768 60.06*+ 40.04
1280x720 60.00 59.99 60.06 59.86 59.74
1024x768 60.04 60.06 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.06 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
700x525 59.98
800x450 59.95 59.82
640x512 60.02
700x450 59.96 59.88
640x480 60.06 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
640x400 59.88 59.98
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1060mm x 626mm
1920x1080 60.00*+ 59.96 50.00 59.94 59.93 30.00 25.00 24.00 29.97 23.98
1680x1050 59.95 59.88
1400x1050 74.76 59.98
1600x900 59.94 59.95 60.00 59.82
1280x1024 75.02 60.02
1440x900 59.90
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1366x768 59.79
1280x800 59.99 59.97 59.81 59.91
1152x864 75.00
1280x720 60.00 59.99 59.86 60.00 50.00 59.94 59.74
1024x768 75.05 60.04 75.03 70.07 60.00
960x720 75.00 60.00
928x696 75.00 60.05
896x672 75.05 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
832x624 74.55
960x540 59.96 59.99 59.63 59.82
800x600 75.00 70.00 65.00 60.00 72.19 75.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
720x576 50.00
700x525 74.76 59.98
800x450 59.95 59.82
720x480 60.00 59.94
640x512 75.02 60.02
700x450 59.96 59.88
640x480 60.00 75.00 72.81 75.00 66.67 60.00 59.94
720x405 59.51 58.99
720x400 70.08
684x384 59.88 59.85
640x400 59.88 59.98
576x432 75.00
640x360 59.86 59.83 59.84 59.32
512x384 75.03 70.07 60.00
512x288 60.00 59.92
416x312 74.66
480x270 59.63 59.82
400x300 72.19 75.12 60.32 56.34
432x243 59.92 59.57
320x240 72.81 75.00 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
What happens when you use this. Copy paste in terminal.
xrandr --output eDP-1 --primary --mode 1366x768 --pos 0x1080 --output HDMI-1 --mode 1920x1080 --pos 0x0
Guessing eDp-1 is your primary.
If this works. Let it start at startup. ~/.config/openbox/autostart
example autostart : script_display.sh &
#!/bin/bash
# eDP-1 is primary
xrandr --output eDP-1 --auto --primary
xrandr --output HDMI-1 --auto --above eDP-1
$ xrandr --help
--left-of <output>
--right-of <output>
--above <output>
--below <output>
When i tried it, this is the output
/home/pascal/.gtkrc-2.0:4: Unable to find include file: "~/.gtkrc-2.0.mine"
(nitrogen:126657): Gtk-WARNING **: 19:45:55.381: Unable to locate theme engine in module_path: "clearlooks",
(nitrogen:126657): Gtk-WARNING **: 19:45:55.381: Unable to locate theme engine in module_path: "clearlooks",
/home/pascal/.gtkrc-2.0:4: Unable to find include file: "~/.gtkrc-2.0.mine"
(nitrogen:126657): Gtk-WARNING **: 19:45:55.485: Unable to locate theme engine in module_path: "clearlooks",
(nitrogen:126657): Gtk-WARNING **: 19:45:55.485: Unable to locate theme engine in module_path: "clearlooks",
(nitrogen:126657): GLib-GObject-CRITICAL **: 19:45:55.490: Attempting to freeze the notification queue for object GtkSettings[0x55eb25f476d0]; Property notification does not work during instance finalization.
(nitrogen:126657): GLib-GObject-CRITICAL **: 19:45:55.490: Attempting to thaw the notification queue for object GtkSettings[0x55eb25f476d0]; Property notification does not work during instance finalization.
1056
1057
1058
1081
also should i put the !/bin/bash inside the autostart file
Create script named let say : display_set.sh
with the following. (complete code)
#!/bin/bash
# eDP-1 is primary
xrandr --output eDP-1 --auto --primary
xrandr --output HDMI-1 --auto --above eDP-1
Make executable
$ chmod +x display_set.sh
Run script like.
$ ./display_set.sh
(first test if this script is working before putting in the autostart)
Info:
#!/bin/bash
or can look like #!/bin/env bash
or etc…
This is how a bash script begins and make scripts executable with chmod +x
.
[EDITS many]
It uses your mbwallpaper_dir.
#!/bin/bash
CONFIG_DIR="$HOME/.config/mbwallpaper"
CONF_FILE="$CONFIG_DIR/mbwallpaper.conf"
# Source the configuration file to load variables like wallpaper_dir
source "$CONF_FILE"
# Get a random image from the wallpaper directory
NEW_WP_FILE=$(find "$wallpaper_dir" -type f | shuf -n 1)
echo "Selected wallpaper: $NEW_WP_FILE"
# Get a random image from the wallpaper directory 2
NEW_WP_FILE2=$(find "$wallpaper_dir" -type f | shuf -n 1)
echo "Selected wallpaper: $NEW_WP_FILE2"
# Set wallpaper for all connected monitors
echo "Setting wallpaper for all monitors."
nitrogen --head=0 --set-scaled --save "$NEW_WP_FILE"
nitrogen --head=1 --set-scaled --save "$NEW_WP_FILE2"
Make executable
chmod +x script
Run like
./script
Change :
–Head=1 --set-scaled --save “$NEW_WP_FILE2”
to
–Head=1 --set-scaled --save “$NEW_WP_FILE”
If this works for you, it can be placed let say as button/click for tint2 panel.
comment: Mabox is focussed on one monitor. A bit of self exploration is needed.