This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## 変数 | |
working_directory=/tmp/build_aur | |
export_directory=$(pwd) | |
## Rootチェック | |
if [[ $UID = 0 ]]; then | |
echo "Rootで実行しないでください。" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 初期化 | |
function window () { | |
zenity \ | |
--title="ArchLinux 日本語入力 インストーラー" \ | |
--window-icon="/usr/share/icons/Papirus-Dark/16x16/apps/mozc.svg" \ | |
--width="500" \ | |
--height="100" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## 変数 | |
working_directory=/tmp/build | |
export_directory=/tmp | |
## Rootチェック | |
if [[ $UID = 0 ]]; then | |
echo "Rootで実行しないでください。" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ ! -d $1 || -z $1 ]]; then | |
echo "ディレクトリを指定してください。" | |
exit 1 | |
fi | |
if [[ -z $2 ]]; then | |
echo "検索する語句がありません。" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ ! -d $1 || -z $1 ]]; then | |
echo "ディレクトリを指定してください。" | |
exit 1 | |
fi | |
if [[ -z $2 ]]; then | |
echo "検索する語句がありません。" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#-- 設定 --# | |
eg_installer="/usr/bin/eg-installer" | |
#-- 関数定義 --# | |
# ウィンドウの基本型 | |
function window () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ -z $(dpkg --get-selections | awk '{pirnt $1}' | grep pacapt) ]]; then | |
curl -sL -o /tmp/pacapt-installer.sh https://raw.githubusercontent.com/Hayao0819/pacapt-installer/master/pacapt-installer.bash | |
chmod +x /tmp/pacapt-installer.sh | |
sudo /tmp/pacapt-installer.sh 2 | |
sudo apt --yes install jq zenity | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# 設定 | |
setting="$HOME/.mouse-speed" | |
# setting="$HOME/Desktop/config" | |
# 現在のマウスの一覧を取得 | |
mouse_list=$(xfconf-query -c pointers -vl | grep Acceleration | awk '{print $1}') | |
mouse_list=${mouse_list//\/Acceleration//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export PS1="女の子 < " | |
function sudo () { | |
echo "You are not in the sudoers file" 1>&2 | |
return 1 | |
} | |
function 好きです!付き合ってください () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#-- CUI --# | |
# 赤(エラー時) | |
function echo_r () { | |
echo -e "\033[1;31m$@\033[0;39m" >&2 | |
return 0 | |
} |
OlderNewer