added arandr to arsenal of tools

This commit is contained in:
tomit4 2022-06-11 18:19:32 -07:00
parent 0ebe70b57b
commit 47848e0b5e
2 changed files with 24 additions and 26 deletions

View file

@ -0,0 +1,22 @@
You'll eventually be setting up a second monitor (ideally a widescreen monitor set up vertically for working on largish code bases). In preparation for when that day comes, I have already installed arandr, a tool for generating a startup script which will assist bspwm in locating and properly rendering a secondary monitor with workspaces. While there is good documentation on setting up bspwm for this purpose (see Brodie Robertson and DT's youtube tutorials on bspwm), I have found this simple two person exchange on the Arch Linux Forums that might be useful:
-------------------------------
I've been having a lot of trouble getting bspwm to play nicely with my second monitor. I have tried using arandr to generate a config and while it does fix the problem of xorg thinking my second screen is on the right, it doesn't rectify the issue of the HUGE mouse cursor on the smaller screen. The greater problem, however, is that after hardcoding in my bspwmrc what the monitors should be, my workspaces no longer work (no longer able to swap between them). I've also checked the workspace names using bspc and it shows that they are both just named "Desktop", which is reflected by polybar showing that as the workspace name.
I ended up not using arandr because from what I understand
monitor $(monitor) -n center/etc
is supposed to accomplish what I was wanting from arandr. Though that is not solving the problem of xorg thinking that the monitor is on the wrong side.
-------------------------------
This is my display.sh created by arandr. My layout has my external monitor above my laptop. It's located in ~/.screenlayout/display.sh
#!/bin/sh
xrandr --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-0 --off --output DP-1 --off --output eDP1 --primary --mode 1920x1080 --pos 0x1080 --rotate normal --output VIRTUAL1 --off
Make sure you make it executable with chmod +x /home/your user name/,screenlayout/display.sh
Then add this path to your .xinitrc file: $HOME/.screenlayout/display.sh
Then reboot.

View file

@ -14,31 +14,7 @@ add notation about using pick to parse through output, and pipe that using xargs
example:
ls | pick | xargs bat # will give you a choice of the files from ls, pick displays a menu to "pick" the file, which then is parsed to xargs bat (invokes bat on choice from ls | pick)
Install pipewire:
Install arandr (tool for multi-monitor setup, you'll need this eventually).
doas pacman -S pipewire pipewire-pulse pipewire-jack wireplumber lib32-pipewire lib32-pipwire-jack lib32-pipewire-v4l2 qastools
doas pacman -S arandr
Copy .xinitrc which now calls pipewire
cp ~/Documents/notes/xinitrc.txt ~/.xinitrc
Update neovim:
cp ~/Documents/notes/nvim/lua/packages.lua ~/.config/nvim/lua/
cp ~/Documents/notes/nvim/lua/keybindings.lua ~/.config/nvim/lua/
nvim
:PackerSync
Update shell project:
cproj
git pull
Install hwinfo and hdparm and pfetch
doas pacman -S hwinfo hdparm pfetch
Install sku (tui sudoku game written in go):
paru sku