arandr | ARandR source code ; for issues and pull requests

 by   chrysn Python Version: 0.1.10 License: GPL-3.0

kandi X-RAY | arandr Summary

kandi X-RAY | arandr Summary

arandr is a Python library. arandr has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

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

            kandi-support Support

              arandr has a low active ecosystem.
              It has 17 star(s) with 11 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              arandr has no issues reported. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of arandr is 0.1.10

            kandi-Quality Quality

              arandr has 0 bugs and 0 code smells.

            kandi-Security Security

              arandr has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              arandr code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              arandr is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              arandr releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 1383 lines of code, 100 functions and 11 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed arandr and discovered the below as its top functions. This is intended to give you an instant insight into arandr implemented functionality, and help decide if they suit your requirements.
            • 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
            Get all kandi verified functions for this library.

            arandr Key Features

            No Key Features are available at this moment for arandr.

            arandr Examples and Code Snippets

            No Code Snippets are available at this moment for arandr.

            Community Discussions

            QUESTION

            All my dropdown menus (in applications and right click) work, but are invisible in AwesomeWM
            Asked 2021-Oct-14 at 21:38

            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:38

            This 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.

            Source https://stackoverflow.com/questions/69576786

            QUESTION

            Automatically use desired monitor and the corresponding audio ouput
            Asked 2021-Apr-27 at 14:00

            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:00

            I 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.

            Source https://stackoverflow.com/questions/67283736

            QUESTION

            Ryzen 7 4800, Ubuntu 20.04.02: Display and/or USB problems
            Asked 2021-Mar-17 at 08:34

            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:34

            After 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:

            Source https://stackoverflow.com/questions/66642491

            QUESTION

            Can't rotate (Default) screen on Raspberry Pi3 running Manjaro with X11
            Asked 2021-Mar-07 at 16:42

            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:15

            I was able to solve this by disabling the vc4-fkms-v3d drivers. You can do this using the following steps:

            1. Open you config file at /boot/config.txt
            2. Using a #, comment out the line: vc4-fkms-v3d
            3. Add the rotation to the config like:
            • display_rotate=1 - for 90 degree rotation
            • display_rotate=2 - for 180 degree rotation
            • display_rotate=3 - for 270 degree rotation
            1. 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.

            Source https://stackoverflow.com/questions/66256142

            QUESTION

            Prevent content shrinking in awesomewm
            Asked 2020-Sep-29 at 09:50

            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:03

            Random drive-by idea that I am too lazy to test:

            Source https://stackoverflow.com/questions/64087640

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install arandr

            Using your distribution’s installer:.
            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

            There exists a `list of bugs`_ (and feature requests and general wishlist). If there is a problem or you want to request a feature, just `report it`_. New releases are announced as published tags_ and can be subscribed as an `ATOM feed`_.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/chrysn/arandr.git

          • CLI

            gh repo clone chrysn/arandr

          • sshUrl

            git@github.com:chrysn/arandr.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link