Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8403395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:19:54+00:00 2026-06-09T22:19:54+00:00

Given: I have Firefox with the [Firefox Page Title] page open on my Ubuntu

  • 0

Given:

I have Firefox with the [Firefox Page Title] page open on my Ubuntu computer.

Here is my command:

xdotool search "[Firefox Page Title]" windowactivate --sync key --clearmodifiers ctrl+r

Documentation:

xdotool website with documentation/examples is here.

Example straight from the xdotool website:

# As of version 2.20100623, you can do this simpler version of above:
xdotool search "Mozilla Firefox" windowactivate --sync key --clearmodifiers ctrl+l

Notes:

I’m using xdotool version 2.20110530.1.

The command correctly focuses my screen to whatever window title I choose, but it doesn’t send the ctrl+r key to the window, as the website doesn’t refresh. I receive no error messages from the command. (Refresh shortcut in Firefox is ctrl+r)

Wanted Behavior:

The command will hopefully (when it works) be applied to a web server statistics page that is open 24/7 on my server computer, I’d like it to refresh the page automatically so I can view new traffic to my website without me having to do anything.

EDIT: I’m open to using other applications that can provide this functionality, if you know of something else that’s easy/similar, please provide it as an answer! If I can’t get this working I’ll default to the next best thing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:19:56+00:00Added an answer on June 9, 2026 at 10:19 pm

    After trying several different approaches to get xdotool to work correctly, I’m inclined to believe that xdotool itself is the issue. Here is what I tried, none worked.

    • Running the command (and variations – removing/adding args) from Terminal.
    • Running the command (and variations – removing/adding args) from a SH script.
    • Changing between F5 and ctrl+r keys, as they should both refresh a Firefox page.
    • Trying other parameters, such as:
      • –window to set the window the keys are to be sent to.
      • –delay to add a delay before the key is sent, after the window is focused.
      • Adding a sleep before the key is sent, after the window is focused.

    I also tried these commands in a script, as the frontpage for xdotool recommends, although it states this is the “older” version, as it is separated into multiple commands. The “new” version was the version I was trying to execute before and is a single command (see question).

    WID=`xdotool search "Firefox Page Title"`
    xdotool windowactivate --sync $WID
    xdotool key --clearmodifiers ctrl+r
    

    All of the above attempts ALWAYS correctly focused to the window I wanted, but it does not send the key whether it was F5 or ctrl+r.

    However, the following worked correctly:

    xdotool selectwindow key ctrl+r
    

    OR

    xdotool selectwindow key F5
    

    The selectwindow command, when executed, turns your cursor into a rectangular selection tool at which point you can select the window you want to be focused and, in this case, what window to send either the ctrl+r or F5 key to. Unfortunately, this is not what I was looking for, as it requires user input to work correctly.

    Final Solution:

    My solution (since I was attempting to use xdotool to constantly refresh a web-page) was to use the ReloadEvery Firefox add-on, which refreshes any page you set it on in any time interval you choose. It is intended to be a replica of the Opera browser’s built-in automatic page refresh feature, and thus far, it works well.

    For those of you who use Chrome and are looking for a similar solution, there are plenty of add-ons available for you too. https://chrome.google.com/webstore/search/auto%20refresh

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I normally use Firefox and have had no problems with the admin page on
please have a look at this web page Click Here The page looks fine
I have an HTML page with some <code> segments, and I have given them
I have uploaded a landing page that our company has contracted out, and Firefox
I have a xul:panel on my firefox extension. I give the position to display
Given I have an integer value of, e.g., 10 . How can I create
Given I have table with some data... I have a query which is used
Given I have a master branch and a other branch. In the other branch
Given I have two File objects I can think of the following implementation: public
given i have the following block of code (function(){ var mb = { abc:function(){

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.