Skip to content

sibafb/learn_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gnome_terminal

```
# Ubuntu | ターミナル起動時の表示サイズ・表示位置の指定
# (https://tbpgr.hatenablog.com/entry/20130904/1378306039)
# --geometry=XSIZExYSIZE+XOFFSET+YOFFSET
gnome-terminal --geometry=80x20+0+0

# 新しい「GNOME端末」を開いてコマンドを実行する方法
# https://linuxfan.info/gnome-terminal-with-command
# -- command
gnome-terminal -- top

# gnome-terminal -- bash -c "実行したいコマンド; bash"
gnome-terminal -- bash -c "date; echo; cal; bash"

# Ubuntu:ルーチン化した日々のコマンドを実行するシェルスクリプト
# https://marbles.hatenablog.com/entry/2022/08/30/151236 

gnome-terminal --window --bash $(dirname ${0})/gnome_terminals_tabs.sh
```

display size

```
Xaxis=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1)
Yaxis=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2)

echo "Xaxis" $Xaxis
echo "Yaxis" $Yaxis
```

execute periodically

```
#【Linux入門】while文による繰り返し処理をわかりやすく解説!
# https://www.sejuku.net/blog/53808

while true
do
    echo "Hello"
    sleep 1
done
```

About

learning shell or python scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published