![]() ![]() Nevertheless I will leave the old answer here for future visitors. That way, XFCE would execute them on login and all programs could see them. So the correct solution actually was to put the modifications of $LD_LIBRARY_PATH in. List of manual pages en cmus(1) en cmus-remote(1) en cmus-tutorial(7) Powered by archmanweb, using mandoc for the conversion of manual pages. a launcher or Alt+F2) and not from a terminal would not see the modified $LD_LIBRARY_PATH, thus missing some libraries. So any program started directly from the GUI (e.g. Hi all, when i start to play a song in cmus or switch to another song, the user interface gets broken: It happens with the current arch package (cmus 2.0.2) and also with the latest version (cmus 2.1.0, arch package by me). However, this did not happen when logging into my GUI session (XFCE). bashrc I had changed $LD_LIBRARY_PATH, which was necessary for xdotool to run. The nice thing about the XF86AudioPlay method is, that it also works for pausing Youtube videos playing in the background in Firefox, for example. on the task bar) with the following command: bash -i -c 'xdotool key XF86AudioPlay'Īs soon as you remove the -i switch, thus making bash non-interactive, it stops working. Install cmus music player and optional dependency for mp3 playback. Also, RAM is steadily increasing at about 700 MB which never happened before. Setting up Arch Linux with persistent changes on USB key. wav files just fine when I had Chromium however. ![]() And funny enough, I got it to work in keyboard shortcuts and launcher icons (e.g. wav files arent playing anymore but I am not sure if that has anything to do with this issue. So I concluded that xdotool only works when executed from an interactive shell. I found the same as you: The command xdotool key XF86AudioPlay works from a shell, but not from a shortcut or application launcher. I usually listen to music on rhytmbox music play. How do I get the command that XFCE executes when I press the default play/pause button on my laptop keyboard because that seems to play/pause any media playing in the background. Now because I knew a bit of C/C++ I created this wrapper program which does exactly the same thingĪnd mapped the shortcut to execute this program but Alas!! it still doesn't work. I confirmed this by changing the command the shortcuts executes to exo-open -launch WebBrowser which as you might have thought opens my web browser when I press Super+F11. When I press the keyboard shortcut which I have set to Super+F11 my CPU usage rises a bit which means that the shortcut is working. The command is xdotool key XF86AudioPlay but when I make a keyboard shortcut out of this by going to Settings > Keyboard > Application Shortcuts. I found this page which shows a command to simulate media keys from the terminal. Till now I have managed to make keyboard shortcuts for volume control. With this keyboard however I have to create my own keyboard shortcuts to do that because of the absence of media keys. So I bought this keyboard for my laptop that doesn't have media keys on it and I am very used to pressing the play/pause button on my laptop to pause any media playing in the background. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |