slax自启动程序
时间:2019-10-15
本文章向大家介绍slax自启动程序,主要包括slax自启动程序使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。
Fluxbox 本身提供了自启动程序的功能。~/.fluxbox/startup
文件是一个像启动 Fluxbox 一样自启动应用程序的脚本。#
标记是注释。
一个简单的例子:
1 #!/bin/sh 2 # 3 # fluxbox startup-script: 4 # 5 # Lines starting with a '#' are ignored. 6 7 # Change your keymap: 8 xmodmap "/root/.Xmodmap" 9 10 # merge xresource settings 11 xrdb -merge ~/.Xresources 12 13 # set keyboard layout 14 fbsetkb $(cat ~/.fluxbox/kblayout) 15 16 # setup bookmarks for file manager 17 gtk-bookmarks-update 18 19 # Share common directories with guest user. This is necessary 20 # because some apps like chromium must be running under guest 21 for dir in Desktop Documents Downloads Music Pictures Public Templates Videos; do 22 if ! mountpoint /root/$dir; then 23 mount --bind /home/guest/$dir /root/$dir 24 fi 25 done 26 27 # set background color and big wait mouse cursor 28 xsetroot -solid '#111111' 29 xsetroot -xcf /usr/share/icons/breeze_cursors/cursors/watch 37 30 31 # disable screen blanking 32 xset s off 33 xset -dpms 34 35 # volume icon in system tray. Can fail if no soundcard is detected 36 volumeicon & 37 tilda & //add tilda startup 38 39 # preload compton and fluxbox to cache 40 (compton --help; fluxbox --help) >/dev/null 2>&1 41 42 # Keep black screen for first second while the sound plays. 43 # This slows startup a little, but it is nicer effect. 44 SND=/usr/share/sounds/startup.wav 45 if [ -r $SND ]; then 46 cat $SND > /dev/null # preload 47 aplay $SND & 48 sleep 1 & 49 SOUNDPID=$! 50 fi 51 52 # Debian-local change: 53 # - fbautostart has been added with a quick hack to check to see if it 54 # exists. If it does, we'll start it up by default. 55 which fbautostart > /dev/null 56 if [ $? -eq 0 ]; then 57 fbautostart 58 fi 59 60 # We need to postpone compton after fluxbox starts, else it won't set 61 # the transparency of toolbar properly... So we check the fehbg file, 62 # which is created by fluxbox at the phase when it sets background. 63 # Once the file exist, fluxbox-toolbar is already started 64 65 SIGNAL1=~/.fehbg 66 SIGNAL2=~/.fehbg2 67 68 rm -f $SIGNAL1 2>/dev/null 69 rm -f $SIGNAL2 2>/dev/null 70 71 ( 72 while [ ! -e $SIGNAL1 ]; do 73 sleep 0.1 74 done
tilda &
原文地址:https://www.cnblogs.com/guochaoxxl/p/11677047.html
- Spark算子详解及案例分析(分类助记)
- Spark详解07广播变量BroadcastBroadcast
- TensorFlow验证码识别
- python selenium2 开发环境搭建
- 聊聊同步辅助类CountDownLatch
- Java多线程编程笔记之Condition
- python selenium2示例 - 生成 HTMLTestRunner 测试报告
- python selenium2示例 - email发送
- pyhton-----break语句
- python unittest使用基本过程
- 基于unittest集成你的selenium2测试
- Selenium Webdriver Desired Capabilities
- 在Selenium Webdriver中使用XPath Contains、Sibling函数定位
- Python多线程Selenium跨浏览器测试
- JavaScript 教程
- JavaScript 编辑工具
- JavaScript 与HTML
- JavaScript 与Java
- JavaScript 数据结构
- JavaScript 基本数据类型
- JavaScript 特殊数据类型
- JavaScript 运算符
- JavaScript typeof 运算符
- JavaScript 表达式
- JavaScript 类型转换
- JavaScript 基本语法
- JavaScript 注释
- Javascript 基本处理流程
- Javascript 选择结构
- Javascript if 语句
- Javascript if 语句的嵌套
- Javascript switch 语句
- Javascript 循环结构
- Javascript 循环结构实例
- Javascript 跳转语句
- Javascript 控制语句总结
- Javascript 函数介绍
- Javascript 函数的定义
- Javascript 函数调用
- Javascript 几种特殊的函数
- JavaScript 内置函数简介
- Javascript eval() 函数
- Javascript isFinite() 函数
- Javascript isNaN() 函数
- parseInt() 与 parseFloat()
- escape() 与 unescape()
- Javascript 字符串介绍
- Javascript length属性
- javascript 字符串函数
- Javascript 日期对象简介
- Javascript 日期对象用途
- Date 对象属性和方法
- Javascript 数组是什么
- Javascript 创建数组
- Javascript 数组赋值与取值
- Javascript 数组属性和方法
- PHP之认识(二)关于Traits的用法详解
- 详细分析Python可变对象和不可变对象
- spring-boot-route(十二)整合redis做为缓存
- ThinkPHP框架实现的微信支付接口开发完整示例
- spring-boot-route(十三)整合RabbitMQ消息队列
- spring-boot-route(十四)整合Kafka
- laravel 事件/监听器实例代码
- pytorch 多分类问题,计算百分比操作
- spring-boot-route(十五)整合RocketMQ
- spring-boot-route(十六)使用logback生产日志文件
- 你真的知道怎么实现一个延迟队列吗 ?
- 腾讯云容器服务日志采集最佳实践
- 深度剖析Lottie动画原理
- spring-boot-route(十七)使用aop记录操作日志
- spring-boot-route(十八)spring-boot-actuator监控应用