小编nma*_*max的帖子

Ubuntu 17.10 Wayland 上的文本扩展

因为AutokeySnippyTexpander都依赖于 X11 窗口系统(或间接依赖于 xdotool),所以它们不能在 Artful 的默认 Wayland 会话中完全发挥作用。

是否有任何替代软件可以提供 1)简单的文本扩展,即 2)系统范围(浏览器、外壳、编辑器等)?

automation wayland 17.10

11
推荐指数
1
解决办法
701
查看次数

如何强制 nmcli 重新连接到不同的 uuid?

我有一个 bash 脚本来检查我的网络环境并相应地安装共享。如果我在工作并且有到 LAN 的硬线连接,那么我想为我办公室的无线设备激活热点连接。

这是脚本:

#!/bin/bash
# are we at home?
if [ "$(ping -q -c1 00.00.00.00)" ]; then
  mount <home shares>
# well then are we on campus?
elif [ "$(ping -q -c1 00.00.00.00)" ]; then
  mount <work shares>
  # if we're on campus, then are we connected to an ethernet cable?
  if [ "$(nmcli dev list iface eth0 | grep GENERAL.CONNECTION)" != "GENERAL.CONNECTION:                     not connected" ]; then
  nmcli con up uuid <uuid> iface wlan0
  fi
fi
Run Code Online (Sandbox Code Playgroud)

nmcli …

bash scripts network-manager wireless networking

5
推荐指数
0
解决办法
1419
查看次数