所以我使用xdotool来解决这个问题。 解决方案 先安装所需软件包 sudo pacman -S xdotool 利用xdotool映射键盘到TIM或者QQ(2种命令) # 可以打开terminal使用下面命令测试效果 # 提取消息 第一种( TIM) xdotool search --name "TIM" key "ctrl+alt+z" # 截图 第一种(TIM) xdotool search --name "TIM" key "ctrl +alt+a" # ============================== # 提取消息 第二种(TIM) xdotool key --window $(xdotool search --limit 还有一定要安装xdotool软件后脚本才能生效。
sudo apt install libinput-tools sudo apt install xdotool sudo apt install ruby 2.3. 配置示例 swipe: 3: left: command: "xdotool key alt+Right" # History forward right : command: "xdotool key alt+Left" # History back up: command: "xdotool key super : "xdotool key ctrl+alt+Down" # Switch to next workspace right: command: "xdotool key ctrl : "xdotool keydown ctrl click 5 keyup ctrl" # Zoom out 4.
解决办法 $ sudo apt-get install xdotool $ export WINDOWID=$(xdotool getwindowfocus) 祝你成功
run.sh 分辨率调整(1080p屏幕请忽略) 1 env WINEPREFIX="$HOME/.ukylin-wine/wechat" /usr/bin/ukylin-wine winecfg xdotool 依赖报错 如果出现 xdotool 依赖报错 123 dpkg: dependency problems prevent configuration of ukylin-wechat:ukylin-wechat depends on xdotool; however:Package xdotool is not installed.
=1;id<${#IDlist[*]};id++)) do # 从1 开始,是不关闭开始打开的登录页面 echo "xdotool windowclose ${IDlist[$id]} " xdotool windowclose ${IDlist[$id]} ; sleep 0.1 echo "break 将其注释掉,会一直跑" # break # 将其注释掉,会一直跑 fi done# sudo apt-get install xdotool wmctrl -y # wmctrl -l # 查询打开的窗口# xdotool windowclose 0x04b84012 # 关闭窗口 0x04b84012 # window_id=$(xdotool getactivewindow)# 获取当前动态窗口ID
Ubuntu下还有一个叫做xdotool,可以获取到当前鼠标位置,这样一来,你就可以算出你要录像区域的坐标位置了。 安装xdotool: sudo apt-get install xdotool 命令行输入: xdotool getmouselocation 把鼠标移到要录入的位置
这里主要用到xdotool,xdotool是模拟键盘/鼠标输入和窗口管理等的命令行工具。libinput-gestures依赖xdotool。 笔者根据自己的需要修改了相关配置,如下: # Switch to next desktop gesture swipe right 4 xdotool key ctrl+F1 # Switch to prev desktop gesture swipe left 4 xdotool key ctrl+F2# Present windows (current desktop) gesture swipe down 3 xdotool key ctrl+F9 # Present windows (all desktop) gesture swipe down 4 xdotool key ctrl+F10 # Show desktop gesture swipe up 3 xdotool key super+d # Show desktops grid gesture swipe up 4 xdotool
1.570033, "_source":{"message":"218.30.103.62 - - [04/Jan/2015:05:27:36 +0000] \"GET /projects/xdotool /xdotool.xhtml HTTP/1.1\" 304 - \"-\" \"Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm ","ident":"-","auth":"-","timestamp":"04/Jan/2015:05:27:36 +0000","verb":"GET","request":"/projects/xdotool /xdotool.xhtml","httpversion":"1.1","response":"304","referrer":"\"-\"","agent":"\"Sogou web spider/4.0
具体安装方式请参阅下方「Linux 说明」 Linux 说明 文本输入工具 为了在 Linux 上获得稳定可靠的文本输入体验,请根据你所使用的显示服务器安装合适的工具: 显示服务器 推荐工具 安装命令 X11 xdotool sudo apt install xdotool Wayland wtype sudo apt install wtype 两者皆可 dotool sudo apt install dotool(需要加入 input 用户组) 补充说明: •X11:安装 xdotool 后,可同时支持直接输入和剪贴板粘贴•Wayland:推荐使用 wtype,也可使用 dotool•dotool 配置:需要将当前用户加入
clang libxcb-devel libXfixes-devel cmake alsa-lib-devel gstreamer-devel gstreamer-plugins-base-devel xdotool-devel Manjaro) sudo pacman -Syu --needed unzip git cmake gcc curl wget yasm nasm zip make pkg-config clang gtk3 xdotool
Jan/2015:05:30:37 +0000] \"GET /style2.css HTTP/1.1\" 200 4877 \"http://www.semicomplete.com/projects/xdotool Jan/2015:05:30:37 +0000] \"GET /style2.css HTTP/1.1\" 200 4877 \"http://www.semicomplete.com/projects/xdotool beats_input_codec_plain_applied" ], "referrer" => "\"http://www.semicomplete.com/projects/xdotool Jan/2015:05:30:37 +0000] \"GET /style2.css HTTP/1.1\" 200 4877 \"http://www.semicomplete.com/projects/xdotool beats_input_codec_plain_applied" ], "referrer" => "\"http://www.semicomplete.com/projects/xdotool
echo "[ok] 已经下载: $i " fi echo "正在安装: $i" sudo apt install -y xdotool
此外,还包含一个 bash 脚本,可使用 xdotool 自动将 Unix shell 升级到 PTY。 特征 当前下载/上传/生成/升级命令仅在 Unix shell 上受支持。
多个 DNS 选项 Vera 加密 PeerGuardian(P2P网络安全软件) Bleachbit、Nautilus-wipe、Keepass2xdotool
环境设置 安装必要的依赖项: apt-get install gnome-screenshot xclip xdotool # 对于 Ubuntu 22.04 conda create --name