Open Heart1010 opened 6 months ago
Hi Hert1010 !
Thank you for your feedback, it is very important to me to improve volumouse.
There is a new release: V0.0.2, it should solve your problem.
Let me know if there is still a bug
Enjoy ;-) !
Perfect - with latest version it works 👍
One small thing - at the end of the configure there is....
Configuration completed, you can now run the command : python3 'volumouse.py'
Press any key to quit
u
so only ENTER
quits the config dialog with any other key nothing happens.
And can I ask for a new feature?
Why not add another option beside the 4 edges? So what about adding an option for the task panel? So whenever the mouse is in the task bar region the mouse wheel changes the volume.
Hi Heart1010, Thank you for your feedback.
"Press any key to quit"
to
"Press Enter to quit"
"Please provide a size for the area's detection in the corners: Default size is 30"
to
"Please provide a height for the area's detection in the TOP LEFT corner: Default height is 30 (minimum 1 - maximum (center of the screen to define)) "
...
"Please provide a width for the area's detection in the TOP LEFT corner: Default width is 30 (minimum 1 - maximum (center of the screen to define))"
etc...
Could it be better like this?
Thanks for the ideas ;-)
Please enter the number of the sound card you want to use for the 'Top Right' corner's side of the screen: 0- No Sound card 1- Active sound card 2- alsa_output.pci-0000_00_1f.3.analog-stereo
I will let you know when it will be done, but not immediately, I have a lot of work
Hello @Heart1010
I have added other functionalities to Volumouse : volumouse.py.zip
Could you test it and tell me if it's what you wanted ?
Thanks!
I've marked a few things below in my configure lines (with # <----- my text
).
I siwtched to a new monitor and using the pivot function (horizontal layout) - so 1080x1920 is correct.
Eventually you can tell me which settings I should use/change when I want to have the complete bottom bar/panel to react to the mouse wheel to adjust the volume?
$ python3 ~/volumouse/volumouse.py --configure
Do you want to configure the screen resolution ? (Y/n)
(It's required if you didn't configure it before...)
y
Do you want to use the default screen resolution which is : (1080, 1920) ? (Y/n)
y
Resolution stored in /home/autodarts/volumouse/temp/screen_resolution.txt
Do you want to configure the selection zone areas ? (Y/n)
(It's required if you didn't configure it before...)
y
Please provide the thickness of the selection zones area : # <----- space too much after 'area' (shouldn't it be 'selection zone areas'?)
(Height or Width for the detection area on the four sides of the screen)
Default size is 30 (minimum : 1; maximum : 200)
75
You have entered : 75
Corner's size stored in /home/autodarts/volumouse/temp/thickness_area.txt
Please provide the length of the CORNER selection zones area:
(Length and Width for the detection square area on the four corner sides of the screen)
Default size is 30 (minimum : 1; maximum : 538)
538
You have entered : 538
Corner's size stored in /home/autodarts/volumouse/temp/corner_area_lenght.txt
Please provide the length of the horizontal top and bottom CENTER selection zone areas: # <----- I don't understand it 100% what is meant here?
(Length for the detection areas on the horizontal top and bottom center of the screen)
Default size is 550 (minimum : 1; maximum : 2) # <----- Default 550 but min 1, max 2?!
1
You have entered : 1
Corner's size stored in /home/autodarts/volumouse/temp/center_horizontal_area_lenght.txt
Please provide the length of the vertical top and bottom CENTER selection zone areas: # <----- I don't understand it 100% what is meant here?
(Length for the detection areas on the vertical top and bottom center of the screen)
Default size is 300 (minimum : 1; maximum : 842) # <----- where this 842 is coming from?
842
You have entered : 842
Corner's size stored in /home/autodarts/volumouse/temp/center_vertical_area_lenght.txt
Which zone would you like to configure ?
Restart 'volumouse.py' -c if you want to update this page :
0- EXIT configuration of the areas
1- Top Right Corner : no_soundcard, no_action
2- Bottom Right Corner : no_soundcard, no_action
3- Top Left Corner : no_soundcard, no_action
4- Bottom Left Corner : no_soundcard, no_action
5- Top Right Center area : no_soundcard, no_action
6- Top Left Center area : no_soundcard, no_action
7- Top Right Middle area : no_soundcard, no_action
8- Top Left Middle area : no_soundcard, no_action
9- Bottom Right Center area : no_soundcard, no_action
10- Bottom Left Center area : no_soundcard, no_action
11- Bottom Right Middle area : no_soundcard, no_action
12- Bottom Left Middle area : no_soundcard, no_action
4
Please enter the number of the card you want to use for the Bottom Left Corner side side of the screen :
0- No Sound card, or other functions : show desktop, switch to the last active window, switch between workspaces, personal command
1- Active sound card
2- alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1
1
You have selected the default used card
What is the maximum volume you want for the Bottom Left Corner side ? (Default is 150%).
Enter a number without '%'...
150
Which zone would you like to configure ?
Restart 'volumouse.py' -c if you want to update this page :
0- EXIT configuration of the areas
1- Top Right Corner : no_soundcard, no_action
2- Bottom Right Corner : no_soundcard, no_action
3- Top Left Corner : no_soundcard, no_action
4- Bottom Left Corner : no_soundcard, no_action # <----- should this be now 'Active sound card' (set above)?
5- Top Right Center area : no_soundcard, no_action
6- Top Left Center area : no_soundcard, no_action
7- Top Right Middle area : no_soundcard, no_action
8- Top Left Middle area : no_soundcard, no_action
9- Bottom Right Center area : no_soundcard, no_action
10- Bottom Left Center area : no_soundcard, no_action
11- Bottom Right Middle area : no_soundcard, no_action
12- Bottom Left Middle area : no_soundcard, no_action
0
Exit the configuration of the areas
Do you want to create an autostart entry for volumouse ? (Y/n)
(Volumouse will automatically start when the computer start)
If not, volumouse autostart entry will be removed ...
y
An autostart entry has been created, reboot the computer and volumouse will start automatically ;-)
Configuration completed, you can now run the command : python3 'volumouse.py'
Press ENTER key to quit
Hello @Heart1010 ,
Thanks for the feedback.
<----- I don't understand it 100% what is meant here?
I have improved the configuration. I hope you will understand this time.
2.
Which zone would you like to configure ? Restart 'volumouse.py' -c if you want to update this page : 0- EXIT configuration of the areas 1- Top Right Corner : no_soundcard, no_action 2- Bottom Right Corner : no_soundcard, no_action 3- Top Left Corner : no_soundcard, no_action 4- Bottom Left Corner : no_soundcard, no_action # <----- should this be now 'Active sound card' (set above)?
Now the text is updated when we modify the configuration according to the last answer
Here is the new version of Volumouse : volumouse.py.zip
I hope you will find it as expected. Do not hesitate to tell me if you find a misunderstanding or a bug.
Thanks
Texts are better now ;)
Now the text is updated when we modify the configuration according to the last answer
For zone 12 (bottom left middle area) this didn't work here for example (rest was ok)
The volume goes up/down 10% per mouse wheel? (can I change that to 5% for example?)
Hi @Heart1010 ,
Thank you for your feedback.
Here is my to-do list before proposing volumouse v1.0.0:
volumouse -c
to be informed of volumouse updates by integrating the version in the script in addition to __version__.py
(in case the user only downloads volumouse.py)Thank you for reporting the bugs to me.
Feel free to provide any suggestions or modifications to be made.
Altough in the code +/-5% is hardcoded right now my volume changes +/-10% with latest zip version 🤔
subprocess.run("pactl set-sink-volume "+soundcard+" +5% & pid=$!",shell=True)
if you run in a terminal pactl set-sink-volume @DEFAULT_SINK@ +5%
the volume changes +5% ?
Did you tried to remove all the files in the volumouse/temp folder and restart the configuration : volumouse -c
?
In which area do you find this bug ?
Did you tried to execute volumouse.py
in a terminal to see the output when you change the volume ?
Did you tried to modify the line to : subprocess.run("pactl set-sink-volume "+soundcard+" +2.5% & pid=$!",shell=True)
?
The volume changes +10% in all areas ?
Sorry, problem was only when using the mouse wheel directly above the vol icon in the task panel from Linux Mint (Cinnamon). This switches the volume by 10% - all other configured areas from volumouse work as expected (by 5%) 👍
I want volumouse to only work in bottom right corner, so I think I have to set
0
to the questionPlease enter the number of the card you want to use for the 'Top Right' corner's side of the screen :
But that ends in an error - see below...