“Linux定时休息脚本”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
第4行: 第4行:
 
<pre>
 
<pre>
  
 +
仅发送通知内容:
  
 +
notify-send "Notification!
 +
 +
 +
发送带标题通知内容:
 +
 +
notify-send "Title" "Notification!"
 +
 +
 +
发送带标题、带图片的通知内容:
 +
 +
notify-send /home/notification.png "title" "Notification!"
  
 
</pre>
 
</pre>
 +
 +
 +
=R=
 +
 +
[https://blog.csdn.net/qq_35503971/article/details/105031099  【护眼】Ubuntu定时休息]
  
 
==我的脚本 ==
 
==我的脚本 ==

2021年11月16日 (二) 02:47的版本

定时休息

notify-send使用方法


仅发送通知内容:

notify-send "Notification!


发送带标题通知内容:

notify-send "Title" "Notification!"


发送带标题、带图片的通知内容:

notify-send /home/notification.png "title" "Notification!"


R

【护眼】Ubuntu定时休息

我的脚本



cat ~/apps/eye.sh 
#!/bin/bash
#50,51  * *  * *  /home/evan/apps/eye.sh

export DISPLAY=:0.0;notify-send -u normal -t 50000 -i appointment-new '1分钟后锁屏' '注意休息,善待眼睛、善待颈椎'