i3wm – Enable Autostart
Today we want to enable our Autostart Scripts by starting i3wm.

Find i3 Config File

Fist we need to find our i3 Config File register a Script, witch runs when we start i3. It is most likely located at ~/.config/i3/config

Run Script on Start of i3

Now we just tell i3 to run a Bash Script autostart.sh located at ~/.config/i3/ on start. We add this line to our ~/.config/i3/config File:

exec --no-startup-id bash ~/.config/i3/autostart.sh

Setup the Bash Script

Last but not least we create the Bash Script autostart.sh located at ~/.config/i3/ containing:

#!/bin/bash
grep -rh Exec ~/.config/autostart | while read -r line ; do 
   ${line:5} &
done

This will look in our Directory ~/.config/autostart for executable Script Paths and run them.

(optional) /etc/xdg/autostart

We can also add our /etc/xdg/autostart to our Bash Script autostart.sh, if we wish to execute it as well. We add to our Bash Script autostart.sh:

grep -rh Exec /etc/xdg/autostart | while read -r line ; do 
   ${line:5} &
done
暂无评论

发送评论 编辑评论

|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇