arandr | ARandR : Another XRandR GUI | Text Editor library
kandi X-RAY | arandr Summary
kandi X-RAY | arandr Summary
ARandR: Another XRandR GUI. ARandR is designed to provide a simple visual front end for XRandR_. Relative monitor positions are shown graphically and can be changed in a drag-and-drop way.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Loads the configuration from the screen
- Parse the screenline
- Run the xrandr command
- Return an iterator over the positions of the given item
- Split an item into chunks
- Create a new Size instance
- Return a new Geometry instance
- Parse the command line output
- Load from a string
- Create a new Position instance
- Load from xrandr
- Load the current configuration from x
- Handle keypress events
- Update the label
- Invoked when the button is clicked
- Toggle widget
- Updates the config
- Suggests a position based on the tolerance
- Called when the button is clicked
arandr Key Features
arandr Examples and Code Snippets
Community Discussions
Trending Discussions on arandr
QUESTION
I'm using manjaro-linux-i3 with polybar and I'm currently working on my multiple monitor setup. I have a TV which I normally use with the amplifier it is connected to. In addition I have my desk with a triple monitor setup which I normally use with my headphones for audio output. One of my screens is in portrait orientation which always messes up my login screen.
I'm able to change my audio ouput and my active monitor as I wish. But I want it to be more efficient. At the moment I'm using arandr to change my monitor and pavucontrol to change my audio output when needed.
I want that my login manager(lightdm) is always displayed correctly on my monitors(even on the portrait one). It would be nice if anybody could give me way how to combine changing monitors and the audio output in one blow. So that I don't have to this every time manually.
...ANSWER
Answered 2021-Apr-27 at 14:00I have similar setup and I got everything working what you might want if I understood you corretely.
If you setup everything right, then your loginmanager should always be displayed on the monitor which is active at boot and you can switch your monitors&sink with a simple keybind.
First, you can add a script to lightdm to config your monitors so that everything is displayed correctely. But be aware that a broken script can leed to the effect that your loginmanager won't be loaded correctly (blackscrren).
in /etc/lightdm/lightdm.conf
you can define a script at #greeter-setup-script=
. Simply uncomment the line and add the path to your script.
An easy way to config your monitors the way you want is to use arandr. Simply config your monitor the ways you want and save the setup. You will be saving an usual xrandr command, which can be used in your script.
Here is my script. It is very basic and actually only checks if a monitor of my desk is active. If so, it initialises the monitors of my desk. If not, it initialises my tv. It also sets the audio output I use with those monitors.
To get a list of all active monitors use this command:
xrandr --listactivemonitors | awk '!/Monitors/ {print $4}'
To get a list off all sinks(audio output) use this command:
pacmd list-sinks | grep -e 'name:' -e 'index:' | awk '{print $2}'| awk '{print substr($0, 2, length($0) - 2)}'
Now you can change my commands (sink and monitor names) with the onces you need. You can execute the script in the terminal so get feedback of the choosen sink and monitor (for testing). Don't forget to make your script executable else it won't work.
I got a similar script to manually change between my tv and my desk (mirroring scrrens, duplicate, tv-only, ect)
It too changes the sink according to the selected monitors. As you are using polybar too, you might notice that I relaunch polybar with sh /home/lluks/.config/polybar/launch.sh
This is the script.
It ensures that my applets are displayed on the main monitor as poylbar can only display them on one monitor. This is archieved by using a 2 diffrent bars for poylbar.
For this script to work, you need dmenu and rofi. If I remember corretely, you also need Font Awesome for the icons.
QUESTION
Installed Ubuntu Studio 20.04 on an ASUS PN50 mini-PC with Ryzen 7 4800. Upgraded to 20.04.2, kernel 5.8.0-44-lowlatency. Memory 32 GB 3200 MHz. Installation itself was smooth. The box only runs Radeon graphics. There is no NVIDIA. The desktop is Xfce 4.14.
I may be mixing apples and oranges, but since I can't tell (I'm not a hw freak) I'll report more than one issue. They may or may not be related, please bear with me.
Prelude: After installation the system didn't seem to boot. Stuck with Ubuntu splash screen.
On closer look lightdm wouldn't start. This fact kept the system waiting indefinitely.
I modified /etc/default/grub, deleted "quiet splash", added "nomodeset". The system now boots to text. After logging in I do a manual "startx" and the box generally seems to behave well. Graphics look good, snappy response. Later I added "amdgpu.exp_hw_support=1" to grub, but I haven't noticed any difference. The gpumanager log ends with "Nothing to do".
I'm not sure what lightdm does, but it is the default display manager:
/etc/X11/default-display-manager: /usr/sbin/lightdm
Here is systemctl status lightdm.service
output. I'm not sure what it's telling me.
ANSWER
Answered 2021-Mar-17 at 08:34After two days of lightdm crash course, here is the answer, and it has nothing to do with Ryzen.
One file was missing from the lightdm configuration. This is an installation from scratch, so either it's missing from the Ubuntu Studio distribution, or maybe I unwittingly deleted it myself somehow.
The file is: /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf
:
QUESTION
I’m running the latest version of Manjaro ARM i3 on a Raspberry Pi3 (Image: Raspberry Pi 4 I3 20.10). I can’t for the love of me get the screen to rotate. I recently switched from Manjaro Wayland to this version because of Synergy support.
What I tried:
- Using
xrandr
to rotate the screen. xrandr only sees a “Default” screen and when I try to rotate it I get the error: ...
ANSWER
Answered 2021-Mar-01 at 16:15I was able to solve this by disabling the vc4-fkms-v3d
drivers. You can do this using the following steps:
- Open you config file at
/boot/config.txt
- Using a
#
, comment out the line:vc4-fkms-v3d
- Add the rotation to the config like:
display_rotate=1
- for 90 degree rotationdisplay_rotate=2
- for 180 degree rotationdisplay_rotate=3
- for 270 degree rotation
- Reboot
Your screen should now be rotated. Please note that this disables the vc4-fkms-v3d
video card drivers which could have other unforeseen effects. Also keep in mind that this is the case for a RPi3.
QUESTION
I'm customizing my awesome-wm taskbar and what I'm trying to achieve is :
- have a tasklist with fixed items width, which can shrink if there is not enough space
- have a button right after the tasklist to open a program launcher on click (rofi), this button should never shrink
For debugging purpose, the button was replace by the red textbox
This is how it looks when there is only few items, exactly what I want :
When there is a lot of clients, the tasklist items shrink as expected, but the textfield too :
here is my complete rc.lua, which is mainly the same as the default one :
...ANSWER
Answered 2020-Sep-28 at 16:03Random drive-by idea that I am too lazy to test:
QUESTION
I recently installed Manjaro i3 on my laptop and tried to connect an external Monitor, with the idea being that it extends the main Screen when it is plugged in and just uses single monitor mode when not.
This seams to mostly work using arandr. Unfortunately I have to reapply the arandr settings again everytime to get my layout back, since it gets reset everytime.
I have tried exporting the arandr commands to .xinitrc and /root/xinitrc, I have tried editing the xorg confs and I have tried putting it into .screenlayout, but with no result.
So how can I permanently set my i3 resolution.
ANSWER
Answered 2019-Jun-16 at 14:06I case somebody comes across this question:
1. open arandr
2. Set your desired layout
3. Export it
4. open /etc/lightdm/xsession
5. Add the exported code before the last line
6. reboot
QUESTION
I use awesome wm with an external monitor on my laptop but sometimes I move and take the laptop only.
My question is: what happens with the clients opened in the external monitor when I disconnect it to move the laptop?
Is there a way to make awesome remember the layout of the screens? currently I'm using arandr every time I plug the screen but it is very annoying to do that every time I move the laptop.
In general any tips about how to handle a setup with an external display and a laptop is what I'm looking for.
Thanks!
...ANSWER
Answered 2017-Aug-03 at 13:37Nothing happens! All your applications stay open as they were when you had your monitor connected. When you reconnect the monitor everythingi will still be the same.
Take note that this means that you can still go with your mous on the disconnected screen. Your mouse will simply disappear ath the edge of your monitor because awesome still thinks that there are two screens.
If you want awesome to realize that there is only one screen remaining you have to reload the awesome-config. Once you do that, all open clients will be distributed according to your client rules on the available tags.
QUESTION
I have installed pyinstaller in my Linux in order to create an executable to my Python script, which runs normaly with the command:
...ANSWER
Answered 2018-Dec-08 at 13:46your project is python3 but pyinstaller running on python2.7 remove the package from 2.7 install for python3
uninstall pyinstaller from python2.7
QUESTION
I'm trying to get X to use 3 external monitors from my laptop.
TLDR; It works 10% of the time. arandr
shows a light gray box that contains the monitors (see image). When the monitors don't all fit, I get errors.
What is the light gray background box called in X's configuration (see image)? How can I set the size of the light-gray box?
This works 10% of the time:
- 1x laptop screen eDP1 (1920x1080),
- 2x external DVI-I-1 and DVI-I-2 (1920x1080) via this USB3 device
- 1x external HDMI1 (1680x900)
Here's the script arandr built (added linebreaks for readibility).
...ANSWER
Answered 2017-Jan-31 at 22:21I tracked this down to an issue with the intel chip resizing the display improperly.
I upgraded to ubuntu GNOME 16.04 (from Mint 14.04) and it worked. I think it upgraded the intel driver. Anyways, its not perfect, but more stable.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install arandr
Using your distribution’s installer:
Debian_ / Ubuntu_:: aptitude install arandr
archlinux_:: pacman -S arandr
Slackware using a `slackbuild by PhantomX`_:: wget http://cloud.github.com/downloads/PhantomX/slackbuilds/arandr-0.1.4.tar.bz2 tar xjf arandr-0.1.4.tar.bz2 cd arandr ./arandr.SlackBuild 2>&1 | tee build.log
Gentoo_:: emerge arandr
Fedora_:: yum install arandr
From source:
Fetch either
the `latest release`_:: wget http://christian.amsuess.com/tools/arandr/files/arandr-0.1.7.1.tar.gz tar xzf arandr-0.1.7.1.tar.gz cd arandr-0.1.7.1
or get it directly from GIT (`hosted on gitorious`_):: git clone git://gitorious.org/arandr/arandr.git cd arandr
and start it using:: ./arandr
or install it:: sudo ./setup.py install
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page