arandr | ARandR source code ; for issues and pull requests
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
- Saves the layout to a file
- Save to a file
- Load the template from a file
- Create a file dialog
- Trigger click
- Show an error message
- Set the active state
- Create a context menu
- Run the script
- Returns an iterator over the positions of the given item
- Split an item by item
- Displays event handler
- Draw the circuit
- Called when a drag action is triggered
- Suggests a given position
- Implements the xRandR method
- Raise an exception if there is an active monitor
- Callback triggered when the drag button is clicked
- Opens the script dialog
- Called when the drag drop callback is clicked
- Open a file dialog
- Callback called when the drag end of a drag
- Set the factor
arandr Key Features
arandr Examples and Code Snippets
Community Discussions
Trending Discussions on arandr
QUESTION
The title is self explanatory... I was configuring AwesomeWM and suddenly realised that none of my dropdown menus were working (they were working fine before). Actually, I noticed that they were working, but are completely invisible. This happens in application menus (like the top menu on pcmanfm) and in desktop, when I right click. For example, in Notepadqq, if click on the Search menu on the top, nothing appears, but I can move down the mouse, left click, and the search tool appears; the same occurs in desktop, where I can can right click and nothing will show up, but moving the mouse to where the apps would appear and left clicking, the selected app opens. The menu is there, I can click stuff, but I don't know what I'm clicking. The only one that is normal is Vivaldi's menu. I really don't know what I did to cause that, and would appreciate any help.
I don't think there's something wrong with my rc.lua
file, but here is a part of it:
ANSWER
Answered 2021-Oct-14 at 21:38This is probably due to using a compositing manager like compton or picom. You can either try another compositing manager, update your graphics driver.
You can also try to start Awesome with --no-argb
. This will disable some features like true transparency in the titlebars, but is closer to what other window manager use, so tends to trigger less bugs in the graphics driver or compositing managers.
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:
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
Gentoo_:: emerge arandr
Fedora_:: yum install arandr
OpenSUSE_:: zypper in arandr
Slackware: see slackbuilds.org_
From source:
Fetch either
the `latest release`_:: wget http://christian.amsuess.com/tools/arandr/files/arandr-0.1.10.tar.gz tar xzf arandr-0.1.10.tar.gz cd arandr-0.1.10
or get it directly from GIT (`hosted on GitLab`_):: git clone https://gitlab.com/arandr/arandr 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