dotfiles
xdotool
Our great sponsors
dotfiles | xdotool | |
---|---|---|
5 | 38 | |
15 | 3,023 | |
- | - | |
0.0 | 3.5 | |
over 1 year ago | 16 days ago | |
Shell | C | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dotfiles
-
[newsboat] How to update feeds in a cron job/background?
I have done it through a systemd user timer+service unit, where the service runs the command and the timer activates the service at the right times.
-
Mind helping a newbie a qutebrowser with scripts?
I have something like that in my setup for redirecting twitter to nitter. Notice it is a javascript-based greasemonkey userscript which qutebrowser injects on webpages, so it goes in a different folder in the same place as the userscripts folder, just named greasemonkey. The difference is that qutebrowser userscripts are more like custom scripts or programs you can call from qutebrowser using :spawn and similar commands.
-
What tools / utilities have you written that you use regularly?
From my dotfiles ~/bin, I have a few that I use more than once every day:
-
Convertion of youtube links to invidious links when opened in new tab?
I have something like that setup for twitter->nitter, just change them to youtube and invidious in both the greasemonkey script metadata and the code itself.
-
A simple script to convert reddit links to old.reddit links
Now, to answer you question, I made this greasemonkey script that does something similar with twitter converting them to nitter links any time the page starts loading, just change the @match rules to www.reddit.com urls and change the parameters in the replace() to where you want to redirect, and drop it in your greasemonkey script directory.
xdotool
-
autoclicker with multiple locations
Have a look at this: https://github.com/jordansissel/xdotool
-
AMD Ryzen 7 7800X3D: Windows 11 vs. Ubuntu 23.04 Linux Performance
Maybe not AHK exactly, but it essentially does the same: xdotool
-
[Lua] How to set the --geometry parameter in a Lua script?
Use an external tool, like xdotool.
-
gtk-rs: can't get window ID with command inside connect_show or connect_realize
In a gtk-rs application, I'm running a xdotool command to get the id of the application's window. I'm running the command in a connect_show closure (after the window has been shown):
-
My (challenging) experience building a window switcher for Ubuntu
Eventually, I needed to find the ID of windows, move them, and bring them to the front—I realized I couldn't do that with gtk-rs. I needed to interact with the window manager (X11 server). So from inside my application, I ran commands that called xdotool.
-
I cannot take it any longer, please, help!
You might be able to use audacity in the background by setting up an application launcher in the gnome panel that executes xdotool, which can send keyboard signals (like R for record) to running applications: https://github.com/jordansissel/xdotool
-
Focusing/switching X11 windows with a Rust crate
Right now, I'm focusing (switching) X11 windows with a shell command (xdotool) from inside my Rust program:
-
X Window System Basics
Maybe xdotool [0] is what you're looking for.
[0] https://github.com/jordansissel/xdotool/
- Some help writing C extensions
-
Ask HN: What's Your Proudest Hack?
I often create screen recordings for my classes, but it's very boring and time consuming. I'm a perfectionist, and if I mistype a command I prefer to re-record everything. Moreover, every time one of the tools used in the videos gets a significant update, I feel compelled to redo the video.
I have started using xdotool [1] to create bash scripts that send mouse clicks and keystrokes to apps. Interleaving calls to xdotool with the "sleep" command [2] produce a convincing effect. If I need to redo a video to fix typos or after a program update, I just fix the bash script and restart the recording.
Alas, the only thing that is missing in my videos is the sound of keyboard clicks… But nothing is perfect!
[1] https://github.com/jordansissel/xdotool
[2] https://en.wikipedia.org/wiki/Sleep_(command)
What are some alternatives?
enchive - Encrypted personal archives
ydotool - Generic command-line automation tool (no X!)
nbrowser - 🔗 🌐 : an easy way to open links in browsers, mimic the "Open URL with..." dialog on Android, `nbrowser` help you open links in a browser
AutoKey - AutoKey, a desktop automation utility for Linux and X11.
vids - 🔍 🔘 ⏯️ 🔁 - search for videos to play from youtube.com and other platforms...
wtype - xdotool type for wayland
note-keeper - :notebook: A tiny bash tool for taking and organizing notes.
archweb - Arch Linux website code
gitstart - Gitstart automates creating a GitHub repo. The script will create .gitignore, a license.txt, a README.md file and commit with a message. It will create a remote repo and push all the files.
i3-vim-focus - Vim plugin for seamless navigation between i3 and vim
dark-toggle - A small POSIX compliant shell script that toggles between the dark and light variants of a GTK theme.
keepassxc - KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.