Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SCRIPT] Automate Traefik labels with xdotool

Featured Replies

Since adding a bunch of Traefik labels to every container is a pain I created a simple script with xdotool to automate the process

The script is available HERE

You need to install xdotool to run it.

There is currently a bug so for now mouse clicks must be used.
Therefore you need to find the right coordinates yourself like explained in the script header.


Not sure if it works on Windows natively yet, but I guess you can just use WSL to run it.

Have fun with all the time you saved adding labels manually. :)

Edited by Fallen94
Added demo video

thanks for sharing !

  • 1 month later...

Thank you for creating this script!  I'm very interested in getting this working.  Can you please provide a bit more info for how to get this up and running? 


I'm not familiar with xdotool and cannot find a way to install it on unraid.  Every google search I run for the combination of xdotool and unraid lands me on this post or one of your other ones where you were figuring it out. 

 

A video of you using this script would probably be worth 1,000 words as well as it's not totally clear how/where this script is run even once it's installed (or I'm just a neophyte and need a bit more spoon feeding than you originally planned for) :). I'd love to get it working, thanks in advance for the pointers!

  • Author

xdotool lets you simulate keyboard input and mouse activity, move and resize windows, etc. It's not installed on Unraid, it's on your own computer to simulate clicks and keyboard input.
You should run it in your linux terminal. If you use MacOS xdotool should work natively, if you're on Windows then maybe WSL or some other hack to get it working.

@Fallen94, amazing, thank you very much for the reply and video.  makes complete sense now!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.