HDMI is ontop of EDP monitor. task bar should be on eDP-1, however it keeps place on HDMI-1… xrandr --output eDP-1 --primary --below HDMI-1
run this command above, but the task bar still on HDMI monitor…
Any idea how to in commandline make taskbar on eDP-1 monitor ?
Try to put --primary at the end of the command. I’m not sure this will make a difference, but it works for me, so…
EDIT: take a look at my script. I have a shortcut assigned to it. As you can see, --primary is always at the end.
#!/bin/bash
## Script for switching between monitor configs
#
## Author: Luís Coimbra
## Creation date: 2023-04-04
## Last modification: 2023-04-04
# Get current number of monitors
xList=$(xrandr --listmonitors)
word=${xList%%':'*} #first delimiter before number of monitors
len=${#word} #length until first delimiter
nMon=${xList:len+2:1}
# Set monitor config according to the number of monitors
if [ $nMon = 1 ]; then
# Aplicar configuração para 2 monitores
xrandr --fb 3000x1920 --output DVI-D-0 --mode 1920x1080 --pos 0x0 --rotate left --output HDMI-A-1 --mode 1920x1080 --rate 100 --pos 1080x0 --primary
else
# Aplicar configuração para 1 monitor
xrandr --fb 1920x1080 --output DVI-D-0 --off --output HDMI-A-1 --mode 1920x1080 --rate 100 --pos 0x0 --primary
fi
I just tried, xrandr --output eDP-1 --below HDMI-1 --primary … it is the same, the task bar still on HDMI-1 monitor. This cmd some how changes the initially rounded floating taskbar (original from boot iso) to this taskbar as shown in photo. Issue never solve…
I wonder why no other people ever voice out this issue ? only I have this issue ??
what do you meant screenshots are useless ? it proves what i claimed it is … means i am not lying or mislead people around.
I posted the screenshot to show the location of the taskbar…
I would think that unlocking the Panel and dragging it to the other monitor should work. I remember doing this when first connecting a second monitor, but this was some time ago. (Or create a new Panel on the other monitor, then delete the other one if desired).
This is assuming the mouse pointer correctly moves between the monitors as they are set up now.
Note that I have my monitors side by side and have put panels on each monitor.
yes, I know how to do that with GUI. but i wash to do it in cmdline. because i will be stuck with boot image for a while, while learning how to fix the broken os. Since live image does not support “suspend into ram” i will have to shut it down each night… then the next day when i power on, i will need to adjust it again. Also, when i bring laptop to other person house, when plug into her hdmi tv, the task bar will jump to the tv again… i will have to set it up by messing around in gui…
I see what you mean; I’d forgotten that bit. Sorry, not sure why this is the issue, or an “easy” workaround for working off Live .ISOs, but what happens if you set the other monitor as “primary”? Counter-intuitive, I know. But I see your browser is on the top display, guess you moved it there.
You can first turn off the HDMI one to set the eDP as primary, and the reactivate it. But, honestly, I think it may be easier to do it through GUI. Plasma 6 made it really easy to do it. Right-click on the panel, enter edit mode and then select “Manage Screens and Panels” (or however it is written in english).