chadwm
chadwm copied to clipboard
Changing tags with two monitors
Update
I'm writing this here in the top to make it easier for anyone finding a solution.
It's an approach that remediates the problem.
For me, it was just a matter of deactivating tag_preview
.
This can be achieved by changing this from 1 to 0 and recompiling.
Expected behavior
Whenever I change tags with opened screens in both monitors, I imagine it should either (or maybe both via configuration? I don't know):
- Change the tag for both monitors;
- Allow me to change the tags for each monitor individually.
What happens
When I'm on my primary monitor (on the right), I can freely change tags.
It's worth mentioning that the left monitor keeps the same tag and screen opened while I change tags on the right monitor.
However, whenever I try to change a tag on my left monitor (not primary) when I have a screen on it, I'm kicked out of the session (logoff) and then when I login again, my primary monitor is changed to be the left one and I'm not able to use the right one. Even after running the autorandr <profile>
command.
I tried to:
- Open a window using both key bindings and
Super + D
to search and open something with the monitor focused; - Move an already opened screen to the other monitor
Super + Shift + Arrow keys
. -
- I tried both arrow keys in case the monitor order has been changed, but that was not the case.
Note: If I reboot
, everything gets back to normal, but I can trigger the issue back anyways.
How to trigger the issue
Using two monitors, try to move to other tags in the monitor that is not the primary one.
Video demonstrating the issue
https://drive.google.com/file/d/1KYiMYOuuZo1P1nQPWPUaik48jBfhofrn/view?usp=sharing
Note: I'm sorry if I sounded weird or if I said something wrong. English is not my native language.
Technical information
I've installed Arco Linux ISO B of ChadWM. Plus, I'm using arandr
and autorandr
to manage my displays.
Here is what ~/.screenlayout/my-layout.sh
looks like:
#!/bin/sh
xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output DP-0 --off --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-1-1 --off --output HDMI-1-2 --mode 1920x1080 --pos 0x0 --rotate normal
Note: I've modified ChadWM's /scripts/run.sh
for the monitor setup. It looks like this:
#!/bin/sh
#xrdb merge ~/.Xresources
#xbacklight -set 10 &
#xset r rate 200 50 &
function run {
if ! pgrep $1 ;
then
$@&
fi
}
run "dex $HOME/.config/autostart/arcolinux-welcome-app.desktop"
#run "xrandr --output VGA-1 --primary --mode 1360x768 --pos 0x0 --rotate normal"
#run "xrandr --output HDMI2 --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output VIRTUAL1 --off"
#run xrandr --output eDP-1 --primary --mode 1368x768 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off
#run xrandr --output LVDS1 --mode 1366x768 --output DP3 --mode 1920x1080 --right-of LVDS1
#run xrandr --output DVI-I-0 --right-of HDMI-0 --auto
#run xrandr --output DVI-1 --right-of DVI-0 --auto
#run xrandr --output DVI-D-1 --right-of DVI-I-1 --auto
#run xrandr --output HDMI2 --right-of HDMI1 --auto
#autorandr horizontal
#run "autorandr horizontal"
run "autorandr two_monitors"
run "nm-applet"
run "pamac-tray"
#run "variety"
run "xfce4-power-manager"
run "blueberry-tray"
run "/usr/lib/xfce4/notifyd/xfce4-notifyd"
run "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
picom -b --config ~/.config/arco-chadwm/picom/picom.conf &
run "numlockx on"
run "volumeicon"
#run "pa-applet"
sxhkd -c ~/.config/arco-chadwm/sxhkd/sxhkdrc &
run "nitrogen --restore"
run "conky -c $HOME/.config/arco-chadwm/conky/system-overview"
#you can set wallpapers in themes as well
#feh --bg-fill /usr/share/backgrounds/archlinux/arch-wallpaper.jpg &
#feh --bg-fill /usr/share/backgrounds/arcolinux/arco-wallpaper.jpg &
#feh --bg-fill ~/.config/arco-chadwm/wallpaper/chadwm.jpg &
#feh --bg-fill ~/.config/arco-chadwm/wallpaper/chadwm1.png &
#feh --randomize --bg-fill /home/erik/Insync/Apps/Wallhaven/*
#nitrogen --set-zoom-fill --random /home/erik/Insync/Apps/Desktoppr/ --head=0
#nitrogen --set-zoom-fill --random /home/erik/Insync/Apps/Desktoppr/ --head=1
#wallpaper for other Arch based systems
#feh --bg-fill /usr/share/archlinux-tweak-tool/data/wallpaper/wallpaper.png &
#run applications from startup
#run "insync start"
#run "spotify"
#run "ckb-next -b"
#run "discord"
#run "telegram-desktop"
#run "dropbox"
pkill bar.sh
~/.config/arco-chadwm/scripts/bar.sh &
while type chadwm >/dev/null; do chadwm && continue || break; done
My neofetch info:
/- hugobsb@hugo-arco
ooo: -----------------
yoooo/ OS: ArcoLinux
yooooooo Host: B360M AORUS Gaming 3
yooooooooo Kernel: 6.1.46-1-lts
yooooooooooo Uptime: 17 mins
.yooooooooooooo Packages: 1707 (pacman)
.oooooooooooooooo Shell: zsh 5.9
.oooooooarcoooooooo Resolution: 1920x1080, 1920x1080
.ooooooooo-oooooooooo DE: chadwm
.ooooooooo- oooooooooo WM: dwm
:ooooooooo. :ooooooooo Theme: Arc-Dark [GTK2/3]
:ooooooooo. :ooooooooo Icons: Sardi-Arc [GTK2/3]
:oooarcooo .oooarcooo Terminal: alacritty
:ooooooooy .ooooooooo CPU: Intel i7-8700 (12) @ 4.600GHz
:ooooooooo /ooooooooooooooooooo GPU: Intel CoffeeLake-S GT2 [UHD Graphics 630]
:ooooooooo .-ooooooooooooooooo. GPU: NVIDIA GeForce RTX 3060
ooooooooo- -ooooooooooooo. Memory: 2.29GiB / 15.48GiB (14%)
ooooooooo- .-oooooooooo. GPU Driver: Gigabyte Technology Co., Ltd CoffeeLake-S GT2 [UHD Graphics 630] [1458:d000]
ooooooooo. -ooooooooo CPU Usage: 8%
Disk (/): 37G / 92G (43%)
Font: Noto Sans 11 [GTK2/3]