hhannine / superpaper

A cross-platform multi monitor wallpaper manager.
MIT License
1.12k stars 46 forks source link

[feature-request] use hotkeys in use? #77

Closed eskoONE closed 3 years ago

eskoONE commented 3 years ago

is it possible to use hotkeys that are already in use? from this log,

use_hotkeys: True
hk_binding_next: ('control', 'super', 'w')
hk_binding_pause: ('control', 'super', 'shift', 'p')
get_display_data output: NUM_DISPLAYS = 2, RES_ARR = [(1920, 1080), (1280, 1024)], OFF_ARR = [(0, 0), (1920, 53)]
Display(resolution=(1920, 1080), digital_offset=(0, 0), phys_size_mm=(521, 293), detected_phys_size_mm=(521, 293), ppi=93.6046065259117, ppi_norm_resolution=None, ppi_norm_offset=None, ppi_norm_bezels=(0, 0), perspective_angles=(0, 0), name='\\\\.\\DISPLAY2')
Display(resolution=(1280, 1024), digital_offset=(1920, 53), phys_size_mm=(338, 270), detected_phys_size_mm=(338, 270), ppi=96.18934911242603, ppi_norm_resolution=None, ppi_norm_offset=None, ppi_norm_bezels=(0, 0), perspective_angles=(0, 0), name='\\\\.\\DISPLAY1')
config.sections: ['7517038262619213854']
load: system not found with hash -3909916811144697124
START Listing profiles for menu.
hkBinding: ('control', 'shift', '2')
perspective preset: default
Listed profile: dual
hkBinding: ('control', 'shift', '3')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
END Listing profiles for menu.
read profile name from 'running_profile': dual
hkBinding: ('control', 'shift', '2')
perspective preset: default
get_display_data output: NUM_DISPLAYS = 2, RES_ARR = [(1920, 1080), (1280, 1024)], OFF_ARR = [(0, 0), (1920, 53)]
Display(resolution=(1920, 1080), digital_offset=(0, 0), phys_size_mm=(521, 293), detected_phys_size_mm=(521, 293), ppi=93.6046065259117, ppi_norm_resolution=None, ppi_norm_offset=None, ppi_norm_bezels=(0, 0), perspective_angles=(0, 0), name='\\\\.\\DISPLAY2')
Display(resolution=(1280, 1024), digital_offset=(1920, 53), phys_size_mm=(338, 270), detected_phys_size_mm=(338, 270), ppi=96.18934911242603, ppi_norm_resolution=None, ppi_norm_offset=None, ppi_norm_bezels=(0, 0), perspective_angles=(0, 0), name='\\\\.\\DISPLAY1')
config.sections: ['7517038262619213854']
load: system not found with hash -3909916811144697124
running profile job with profile: dual
Running a one-off wallpaper change.
['E:\\Backup\\Wallpapers\\wallhaven-6oqy97_3840x1920.png']
hkBinding: ('control', 'shift', '2')
perspective preset: default
Listed profile: dual
hkBinding: ('control', 'shift', '3')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
Registering binding:                                 ('control', 'shift', '2') for profile: dual
Registering binding:                                 ('control', 'shift', '3') for profile: triple
Registering binding:                                 ('control', 'shift', '1') for profile: tv
get_ppi_norm_offsets: [(0, 0), (1973, 43)]
get_ppi_norm_crops: [(0, 0, 1973, 1110), (1973, 43, 3253, 1067)]
G_A_DSYS.use_perspective: True, prof.perspective: default
Canvas size: [3200, 1080]
Uncaught exception type: <class 'system_hotkey.system_hotkey.SystemRegisterError'>
NoneType: None
Exception: The bind could be in use elsewhere: 2
NoneType: None
<traceback object at 0x00000285FEFDE088>
NoneType: None

im taking away it is not, hence this is a feature request. is this even possible on windows? im trying to use it in conjunction with monitor profile switcher, which is a command line tool that also has a gui to set up things.

any help/work arould regarding this would be nice. ty.

hhannine commented 3 years ago

So you'd want to use the hotkey ('control', 'shift', '2') so that the same key combination would be bound to some other program as well? And you would want to run two different things with the same key combo?

If I understood you correctly, I don't think this would be possible to accomplish from superpaper but on Windows I think you could bodge something together with Autohotkey. I would try to make a hotkey script with Autohotkey that is bound to the combo you want to use and then from the script send simulated key combination presses that triggers the different software actions, which would need to be different.

Does this help at all?

eskoONE commented 3 years ago

Does this help at all?

yes, it does, thank you. another problem im just facing now, no hotkey actually changes the wallpaper. am i doing something wrong?

Enabled logging to file.
use_hotkeys: True
hk_binding_next: ('control', 'super', 'w')
hk_binding_pause: ('control', 'super', 'shift', 'p')
get_display_data output: NUM_DISPLAYS = 2, RES_ARR = [(1920, 1080), (1280, 1024)], OFF_ARR = [(0, 0), (1920, 53)]
Display(resolution=(1920, 1080), digital_offset=(0, 0), phys_size_mm=(521, 293), detected_phys_size_mm=(521, 293), ppi=93.6046065259117, ppi_norm_resolution=None, ppi_norm_offset=None, ppi_norm_bezels=(0, 0), perspective_angles=(0, 0), name='\\\\.\\DISPLAY2')
Display(resolution=(1280, 1024), digital_offset=(1920, 53), phys_size_mm=(338, 270), detected_phys_size_mm=(338, 270), ppi=96.18934911242603, ppi_norm_resolution=None, ppi_norm_offset=None, ppi_norm_bezels=(0, 0), perspective_angles=(0, 0), name='\\\\.\\DISPLAY1')
config.sections: ['7517038262619213854']
load: system not found with hash -3909916811144697124
hkBinding: ('alt', 'd')
perspective preset: default
Listed profile: dual
hkBinding: ('alt', 'h')
perspective preset: default
Listed profile: dual2
hkBinding: ('control', 'shift', 't')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
dual2
single
False
None
None
None
alt+h
['E:\\Backup\\Wallpapers\\wallhaven-lm6jm2_1920x1080.png']
hkBinding: ('alt', 'd')
perspective preset: default
Listed profile: dual
hkBinding: ('alt', 'h')
perspective preset: default
Listed profile: dual2
hkBinding: ('control', 'shift', 't')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
hkBinding: ('alt', 'd')
perspective preset: default
Listed profile: dual
hkBinding: ('alt', 'h')
perspective preset: default
Listed profile: dual2
hkBinding: ('control', 'shift', 't')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
Unreg hotkey ('alt', 'h')
Unreg hotkey ('alt', 'd')
Unreg hotkey ('control', 'shift', 't')
Unreg hotkey ('control', 'shift', '1')
Unreg hotkey ('control', 'super', 'shift', 'p')
Unreg hotkey ('control', 'super', 'w')
hkBinding: ('alt', 'd')
perspective preset: default
Listed profile: dual
hkBinding: ('alt', 'h')
perspective preset: default
Listed profile: dual2
hkBinding: ('control', 'shift', 't')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
Registering binding:                                 ('alt', 'd') for profile: dual
Registering binding:                                 ('alt', 'h') for profile: dual2
Registering binding:                                 ('control', 'shift', 't') for profile: triple
Registering binding:                                 ('control', 'shift', '1') for profile: tv
hkBinding: ('alt', 'h')
perspective preset: default
onApply profile: saved C:\Users\eskoo\Desktop\superpaper-portable\profiles\dual2.profile
hkBinding: ('alt', 'h')
perspective preset: default
hkBinding: ('alt', 'd')
perspective preset: default
Listed profile: dual
hkBinding: ('alt', 'h')
perspective preset: default
Listed profile: dual2
hkBinding: ('control', 'shift', 't')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
Start profile: dual2
Check if the starting profile is already running: dual2
name check: dual2, dual
Running quick profile job with profile: dual2
quickswitch file lookup: ['dual2-a.jpg']
Starting timed profile job with profile: dual2
get_display_data output: NUM_DISPLAYS = 2, RES_ARR = [(1920, 1080), (1280, 1024)], OFF_ARR = [(0, 0), (1920, 53)]
Display(resolution=(1920, 1080), digital_offset=(0, 0), phys_size_mm=(521, 293), detected_phys_size_mm=(521, 293), ppi=93.6046065259117, ppi_norm_resolution=None, ppi_norm_offset=None, ppi_norm_bezels=(0, 0), perspective_angles=(0, 0), name='\\\\.\\DISPLAY2')
Display(resolution=(1280, 1024), digital_offset=(1920, 53), phys_size_mm=(338, 270), detected_phys_size_mm=(338, 270), ppi=96.18934911242603, ppi_norm_resolution=None, ppi_norm_offset=None, ppi_norm_bezels=(0, 0), perspective_angles=(0, 0), name='\\\\.\\DISPLAY1')
config.sections: ['7517038262619213854']
load: system not found with hash -3909916811144697124
running profile job with profile: dual2
Running a one-off wallpaper change.
E:\Backup\Wallpapers\wallhaven-lm6jm2_1920x1080.png
Canvas size: [3200, 1080]
Wrote active profile: dual2
)
perspective preset: default
Listed profile: dual
hkBinding: ('alt', 'h')
perspective preset: default
Listed profile: dual2
hkBinding: ('control', 'shift', 't')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
hkBinding: ('alt', 'd')
perspective preset: default
Listed profile: dual
hkBinding: ('alt', 'h')
perspective preset: default
Listed profile: dual2
hkBinding: ('control', 'shift', 't')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
Unreg hotkey ('alt', 'h')
Unreg hotkey ('alt', 'd')
Unreg hotkey ('control', 'shift', 't')
Unreg hotkey ('control', 'shift', '1')
Unreg hotkey ('control', 'super', 'shift', 'p')
Unreg hotkey ('control', 'super', 'w')
hkBinding: ('alt', 'd')
perspective preset: default
Listed profile: dual
hkBinding: ('alt', 'h')
perspective preset: default
Listed profile: dual2
hkBinding: ('control', 'shift', 't')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
Registering binding:                                 ('alt', 'd') for profile: dual
Registering binding:                                 ('alt', 'h') for profile: dual2
Registering binding:                                 ('control', 'shift', 't') for profile: triple
Registering binding:                                 ('control', 'shift', '1') for profile: tv
hkBinding: ('alt', 'h')
perspective preset: default
onApply profile: saved C:\Users\eskoo\Desktop\superpaper-portable\profiles\dual2.profile
hkBinding: ('alt', 'h')
perspective preset: default
hkBinding: ('alt', 'd')
perspective preset: default
Listed profile: dual
hkBinding: ('alt', 'h')
perspective preset: default
Listed profile: dual2
hkBinding: ('control', 'shift', 't')
perspective preset: default
Listed profile: triple
hkBinding: ('control', 'shift', '1')
Listed profile: tv
Start profile: dual2
Check if the starting profile is already running: dual2
name check: dual2, dual
Running quick profile job with profile: dual2
quickswitch file lookup: ['dual2-a.jpg']
Starting timed profile job with profile: dual2
get_display_data output: NUM_DISPLAYS = 2, RES_ARR = [(1920, 1080), (1280, 1024)], OFF_ARR = [(0, 0), (1920, 53)]
Display(resolution=(1920, 1080), digital_offset=(0, 0), phys_size_mm=(521, 293), detected_phys_size_mm=(521, 293), ppi=93.6046065259117, ppi_norm_resolution=None, ppi_norm_offset=None, ppi_norm_bezels=(0, 0), perspective_angles=(0, 0), name='\\\\.\\DISPLAY2')
Display(resolution=(1280, 1024), digital_offset=(1920, 53), phys_size_mm=(338, 270), detected_phys_size_mm=(338, 270), ppi=96.18934911242603, ppi_norm_resolution=None, ppi_norm_offset=None, ppi_norm_bezels=(0, 0), perspective_angles=(0, 0), name='\\\\.\\DISPLAY1')
config.sections: ['7517038262619213854']
load: system not found with hash -3909916811144697124
running profile job with profile: dual2
Running a one-off wallpaper change.
E:\Backup\Wallpapers\wallhaven-lm6jm2_1920x1080.png
Canvas size: [3200, 1080]
Wrote active profile: dual2
hhannine commented 3 years ago

I can't see any obvious issue in the log. Is the wallpaper applied when you apply it from the GUI? None of the hotkeys work or do anything as far as you can tell?

eskoONE commented 3 years ago

it does apply when in gui, the hotkeys are just not working it seems. im using the portable version btw, im not sure that matters.

i tried some othes combinations like "ctrl+d" or "ctrl+shift+t". changing wallpaper with "ctrl+super+w" seems to be working. im using a different keyboard layout, colemak-dh, but switching to qwerty didnt help either.

hhannine commented 3 years ago

Thanks, I was interested to hear whether the default "control+super+w" was working. How are you entering/formatting the hotkeys that you define?

eskoONE commented 3 years ago

the way its been suggested like here. https://i.imgur.com/Clso9Vf.png

hhannine commented 3 years ago

Thanks. Have you tried restarting Superpaper at all? I think I've run into some issue in the past that the new hotkeys wouldn't actually work until Superpaper was restarted.

If that doesn't help check this: do the profile changes work from the tray applet menu?

eskoONE commented 3 years ago

oh man, restarting the application worked out. im pretty sure i restarted my pc few times before that as well but manually closing and restarting the application did the trick.

as a side note, i also disabled logging.

sry for causing so much trouble and thank you for your help!