avivace / dotfiles

i3 + Plasma: using the i3 window manager on the top of KDE Plasma and other dotfiles, configurations, scripts, workarounds and practises from my Debian Sid machines.
https://www.reddit.com/r/unixporn/comments/64mihc/i3_kde_plasma_a_match_made_in_heaven/
GNU General Public License v3.0
784 stars 46 forks source link

Plugging additional video outputs glitches the wallpaper #29

Open avivace opened 4 years ago

avivace commented 4 years ago

feh must be re-run every time another xrandr output is enabled. Find a way to do this automatically?

DuongTyler commented 4 years ago

You can attach a script to an acpi event using acpid. I have a script attached to a dock event on my thinkpad that reruns feh every time I disconnect or reconnect it to the dock.

avivace commented 4 years ago

Thanks @DuongTyler , didn't know about acpid. This is useful also for optimising the script printing some informations on the status bar via AwesomeWidgets (currently it's constatly polling data, triggering updates via events should be more cleaner).