restart tint2


Buat file  “tint2restart.sh”  (nama bebas)

$ nano /home/ariyasa/bash-scripts_folder/tint2restart.sh     (disesuaikan saja)
#!/bin/bash

(killall -e tint2) &

(sleep 1s && tint2) &

(sleep 5s && exit )

rubah permissions,

$ chmod +x   tint2restart.sh

agar ringkas, buat “alias command”

$ sudo nano /etc/bash.bashrc  (archlinux)
$ sudo nano ~/.bashrc  (debian)

tambahkan pada baris terakhir

alias tint2restart='sh /home/ariyasa/bash-scripts_folder/tint2restart.sh'

akses terminal

$ source /etc/bash.bashrc (arclinux)
$ source ~/.bashrc (debian)

jalankan via terminal

$ tint2restart

selesai……… CMIIW  :)
sumber : http://crunchbang.org/forums/viewtopic.php?id=7449

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s