Skip to content

Instantly share code, notes, and snippets.

@vith
Created July 19, 2016 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vith/8c0883df79386cd5372cf49927368db4 to your computer and use it in GitHub Desktop.
Save vith/8c0883df79386cd5372cf49927368db4 to your computer and use it in GitHub Desktop.
arch xdg-screensaver missing deps terminal log
~
❯ plexWindowID="$(xprop -name 'Plex Media Player' _NET_WM_USER_TIME_WINDOW | grep -Po '(?<=window id # )0x[0-9a-f]+')"
xdg-screensaver suspend "$plexWindowID"
~
❯ Can't locate Net/DBus.pm in @INC (you may need to install the Net::DBus module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at -e line 5.
BEGIN failed--compilation aborted at -e line 5.
~
❯ pacaur -S --asdeps --needed perl-net-dbus
resolving dependencies...
looking for conflicting packages...
Packages (2) perl-xml-twig-3.49-1 perl-net-dbus-1.1.0-3
Total Installed Size: 1.15 MiB
:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring [#########################################################################] 100%
(2/2) checking package integrity [#########################################################################] 100%
(2/2) loading package files [#########################################################################] 100%
(2/2) checking for file conflicts [#########################################################################] 100%
(2/2) checking available disk space [#########################################################################] 100%
:: Processing package changes...
(1/2) installing perl-xml-twig [#########################################################################] 100%
(2/2) installing perl-net-dbus [#########################################################################] 100%
:: Running post-transaction hooks...
(1/1) Updating manpage index...
~
❯ plexWindowID="$(xprop -name 'Plex Media Player' _NET_WM_USER_TIME_WINDOW | grep -Po '(?<=window id # )0x[0-9a-f]+')"
xdg-screensaver suspend "$plexWindowID"
~
❯ Can't locate X11/Protocol.pm in @INC (you may need to install the X11::Protocol module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at -e line 6.
BEGIN failed--compilation aborted at -e line 6.
~
❯ pacaur -S --asdeps --needed perl-x11-protocol
resolving dependencies...
looking for conflicting packages...
Packages (1) perl-x11-protocol-0.56-6
Total Installed Size: 0.34 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [#########################################################################] 100%
(1/1) checking package integrity [#########################################################################] 100%
(1/1) loading package files [#########################################################################] 100%
(1/1) checking for file conflicts [#########################################################################] 100%
(1/1) checking available disk space [#########################################################################] 100%
:: Processing package changes...
(1/1) installing perl-x11-protocol [#########################################################################] 100%
:: Running post-transaction hooks...
(1/1) Updating manpage index...
~
❯ plexWindowID="$(xprop -name 'Plex Media Player' _NET_WM_USER_TIME_WINDOW | grep -Po '(?<=window id # )0x[0-9a-f]+')"
xdg-screensaver suspend "$plexWindowID"
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment