sargon / trayer-srg

trayer fork with multi monitor support, cleaned up codebase and other fancy stuff
Other
223 stars 34 forks source link

Weird behavior with dwm #44

Open ghost opened 4 years ago

ghost commented 4 years ago

dwm-6.2

trayer-srg-1.1.8

trayer launched from ~/.xinitrc before dwm like this:

trayer \
    --edge top \
    --align right \
    --width 80 \
    --widthtype pixel \
    --height 16 \
    --heighttype pixel \
    --expand false \
    --monitor primary&

This is what happens at startup: 1

This is what happens after I start an app that has a systray icon: 2

This is what happens after I close that app and systray becomes empty again: 3

Is there a way to tell trayer-srg launch in the right position from the start? Perhaps some dwm rule for trayer window is needed? I wouldn't like to resort to fooling dwm with ugly hacks like launching a void systray app at startup and quickly close it just for the sake of enforcing trayer's correct position at the edge of the screen, on top of status bar, not under it.