mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-02-01 22:58:37 +00:00
Compare commits
4 commits
d2b4817609
...
2586e88f82
Author | SHA1 | Date | |
---|---|---|---|
2586e88f82 | |||
f0d8c7e093 | |||
52639fee8b | |||
9630f4b9de |
25 changed files with 120 additions and 25 deletions
8
.profile
8
.profile
|
@ -1,7 +1,3 @@
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
|
||||||
export DENO_INSTALL_ROOT="${HOME}/.local"
|
|
||||||
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
|
|
||||||
[ -n "$BASH_VERSION" ] && . "$HOME/.bashrc"
|
|
||||||
if [ -d /usr/local/Homebrew ]; then
|
if [ -d /usr/local/Homebrew ]; then
|
||||||
export HOMEBREW_PREFIX="/usr/local"
|
export HOMEBREW_PREFIX="/usr/local"
|
||||||
export HOMEBREW_CELLAR="/usr/local/Cellar"
|
export HOMEBREW_CELLAR="/usr/local/Cellar"
|
||||||
|
@ -17,3 +13,7 @@ else
|
||||||
export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:"
|
export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:"
|
||||||
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"
|
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"
|
||||||
fi
|
fi
|
||||||
|
[ -n "$BASH_VERSION" ] && . "$HOME/.bashrc"
|
||||||
|
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
|
||||||
|
export DENO_INSTALL_ROOT="${HOME}/.local"
|
||||||
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
|
45
Makefile
Normal file
45
Makefile
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
|
||||||
|
.PHONY: help
|
||||||
|
help:
|
||||||
|
@cat README.md
|
||||||
|
|
||||||
|
.PHONY: keyrings
|
||||||
|
keyrings: \
|
||||||
|
desktop/etc/apt/keyrings/google-archive-keyring.gpg \
|
||||||
|
desktop/etc/apt/keyrings/microsoft-archive-keyring.gpg \
|
||||||
|
desktop/etc/apt/keyrings/slack-archive-keyring.gpg \
|
||||||
|
desktop/etc/apt/keyrings/syncthing-archive-keyring.gpg \
|
||||||
|
etc/apt/keyrings/cloudflare-archive-keyring.gpg \
|
||||||
|
etc/apt/keyrings/docker-archive-keyring.gpg \
|
||||||
|
etc/apt/keyrings/nodesource-archive-keyring.gpg \
|
||||||
|
etc/apt/keyrings/tailscale-archive-keyring.gpg \
|
||||||
|
|
||||||
|
desktop/etc/apt/keyrings/google-archive-keyring.gpg:
|
||||||
|
curl -sSf --tlsv1.3 https://dl.google.com/linux/linux_signing_key.pub \
|
||||||
|
| gpg --dearmor >$@
|
||||||
|
|
||||||
|
desktop/etc/apt/keyrings/microsoft-archive-keyring.gpg:
|
||||||
|
curl -sSf --tlsv1.3 https://packages.microsoft.com/keys/microsoft.asc \
|
||||||
|
| gpg --dearmor >$@
|
||||||
|
|
||||||
|
desktop/etc/apt/keyrings/slack-archive-keyring.gpg:
|
||||||
|
curl -sSfL --tlsv1.2 https://packagecloud.io/slacktechnologies/slack/gpgkey \
|
||||||
|
| gpg --dearmor >$@
|
||||||
|
|
||||||
|
desktop/etc/apt/keyrings/syncthing-archive-keyring.gpg:
|
||||||
|
curl -sSf --tlsv1.3 -o $@ https://syncthing.net/release-key.gpg
|
||||||
|
|
||||||
|
etc/apt/keyrings/cloudflare-archive-keyring.gpg:
|
||||||
|
curl -sSf --tlsv1.3 https://pkg.cloudflare.com/cloudflare-main.gpg \
|
||||||
|
| gpg --dearmor >$@
|
||||||
|
|
||||||
|
etc/apt/keyrings/docker-archive-keyring.gpg:
|
||||||
|
curl -sSf --tlsv1.3 https://download.docker.com/linux/ubuntu/gpg \
|
||||||
|
| gpg --dearmor >$@
|
||||||
|
|
||||||
|
etc/apt/keyrings/nodesource-archive-keyring.gpg:
|
||||||
|
curl -sSf --tlsv1.3 https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
|
||||||
|
| gpg --dearmor >$@
|
||||||
|
|
||||||
|
etc/apt/keyrings/tailscale-archive-keyring.gpg:
|
||||||
|
curl -sSf --tlsv1.3 -o $@ https://pkgs.tailscale.com/stable/ubuntu/noble.noarmor.gpg
|
|
@ -1 +0,0 @@
|
||||||
deb [arch=amd64 signed-by=/usr/share/keyrings/google-archive-keyring.gpg] https://dl.google.com/linux/chrome/deb/ stable main
|
|
6
desktop/etc/apt/sources.list.d/google-chrome.sources
Normal file
6
desktop/etc/apt/sources.list.d/google-chrome.sources
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Types: deb
|
||||||
|
URIs: https://dl.google.com/linux/chrome/deb/
|
||||||
|
Suites: stable
|
||||||
|
Components: main
|
||||||
|
Signed-By: /usr/share/keyrings/google-archive-keyring.gpg
|
||||||
|
Architectures: amd64
|
|
@ -1 +0,0 @@
|
||||||
deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-archive-keyring.gpg] https://packages.microsoft.com/repos/edge stable main
|
|
6
desktop/etc/apt/sources.list.d/microsoft-edge.sources
Normal file
6
desktop/etc/apt/sources.list.d/microsoft-edge.sources
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Types: deb
|
||||||
|
URIs: https://packages.microsoft.com/repos/edge
|
||||||
|
Suites: stable
|
||||||
|
Components: main
|
||||||
|
Signed-By: /usr/share/keyrings/microsoft-archive-keyring.gpg
|
||||||
|
Architectures: amd64
|
|
@ -1 +0,0 @@
|
||||||
deb [signed-by=/usr/share/keyrings/slack-archive-keyring.gpg] https://packagecloud.io/slacktechnologies/slack/debian/ jessie main
|
|
6
desktop/etc/apt/sources.list.d/slack-archive.sources
Normal file
6
desktop/etc/apt/sources.list.d/slack-archive.sources
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Types: deb
|
||||||
|
URIs: https://packagecloud.io/slacktechnologies/slack/debian/
|
||||||
|
Suites: jessie
|
||||||
|
Components: main
|
||||||
|
Signed-By: /usr/share/keyrings/slack-archive-keyring.gpg
|
||||||
|
Architectures: amd64
|
|
@ -1 +0,0 @@
|
||||||
deb [arch=amd64 signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable
|
|
6
desktop/etc/apt/sources.list.d/syncthing.sources
Normal file
6
desktop/etc/apt/sources.list.d/syncthing.sources
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Types: deb
|
||||||
|
URIs: https://apt.syncthing.net/
|
||||||
|
Suites: syncthing
|
||||||
|
Components: stable
|
||||||
|
Signed-By: /usr/share/keyrings/syncthing-archive-keyring.gpg
|
||||||
|
Architectures: amd64
|
|
@ -1 +0,0 @@
|
||||||
deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-archive-keyring.gpg] https://packages.microsoft.com/repos/code stable main
|
|
6
desktop/etc/apt/sources.list.d/vscode.sources
Normal file
6
desktop/etc/apt/sources.list.d/vscode.sources
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Types: deb
|
||||||
|
URIs: https://packages.microsoft.com/repos/code
|
||||||
|
Suites: stable
|
||||||
|
Components: main
|
||||||
|
Signed-By: /usr/share/keyrings/microsoft-archive-keyring.gpg
|
||||||
|
Architectures: amd64
|
|
@ -6,7 +6,7 @@
|
||||||
<string>monospace</string>
|
<string>monospace</string>
|
||||||
</test>
|
</test>
|
||||||
<edit name="family" mode="prepend" binding="strong">
|
<edit name="family" mode="prepend" binding="strong">
|
||||||
<string>Source Han Mono</string>
|
<string>Noto Mono</string>
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
</fontconfig>
|
</fontconfig>
|
|
@ -15,20 +15,14 @@ function install_gsettings() {
|
||||||
dconf load "$gsettings_dir"
|
dconf load "$gsettings_dir"
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_source_han_mono_fonts() {
|
function install_fonts() {
|
||||||
local uid
|
local uid
|
||||||
local home
|
local home
|
||||||
local fonts_dir
|
|
||||||
local fontconfig_dir
|
local fontconfig_dir
|
||||||
uid=${SUDO_UID:-$(id -u)}
|
uid=${SUDO_UID:-$(id -u)}
|
||||||
home=$(eval "echo ~${SUDO_USER:-}")
|
home=$(eval "echo ~${SUDO_USER:-}")
|
||||||
fonts_dir="$home/.local/share/fonts"
|
|
||||||
fontconfig_dir="$home/.config/fontconfig/conf.d"
|
fontconfig_dir="$home/.config/fontconfig/conf.d"
|
||||||
sudo --user="#$uid" mkdir -p "$fonts_dir" "$fontconfig_dir"
|
sudo --user="#$uid" mkdir -p "$fontconfig_dir"
|
||||||
sudo --user="#$uid" \
|
|
||||||
curl \
|
|
||||||
-fsSL https://github.com/adobe-fonts/source-han-mono/releases/download/1.002/SourceHanMono.ttc \
|
|
||||||
-o "$fonts_dir/SourceHanMono.ttc"
|
|
||||||
sudo --user="#$uid" \
|
sudo --user="#$uid" \
|
||||||
rsync -rv fontconfig/ "$fontconfig_dir/"
|
rsync -rv fontconfig/ "$fontconfig_dir/"
|
||||||
fc-cache
|
fc-cache
|
||||||
|
@ -50,5 +44,5 @@ function install_environment_d() {
|
||||||
install_apt_packages
|
install_apt_packages
|
||||||
install_gsettings settings.ini /
|
install_gsettings settings.ini /
|
||||||
install_gsettings terminal-settings.ini "/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/"
|
install_gsettings terminal-settings.ini "/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/"
|
||||||
install_source_han_mono_fonts
|
install_fonts
|
||||||
install_environment_d
|
install_environment_d
|
||||||
|
|
|
@ -41,8 +41,15 @@ remove-old-trash-files=true
|
||||||
# キーボードの設定
|
# キーボードの設定
|
||||||
xkb-options=['ctrl:nocaps']
|
xkb-options=['ctrl:nocaps']
|
||||||
|
|
||||||
|
# [キーボード] > [キーボードショートカット]
|
||||||
|
[org/gnome/mutter/keybindings]
|
||||||
|
# 画面左半分に表示する
|
||||||
|
toggle-tiled-left=['<Super>comma']
|
||||||
|
# 画面右半分に表示する
|
||||||
|
toggle-tiled-right=['<Super>period']
|
||||||
|
|
||||||
# IBusの設定 絵文字の無効化
|
# IBusの設定 絵文字の無効化
|
||||||
[org/freedesktop/ibus/panel/emoji]
|
[desktop/ibus/panel/emoji]
|
||||||
hotkey=@as []
|
hotkey=@as []
|
||||||
|
|
||||||
# [マウスとタッチパッド] > [マウス]
|
# [マウスとタッチパッド] > [マウス]
|
||||||
|
@ -62,4 +69,4 @@ show-banners=false
|
||||||
|
|
||||||
# Dockのお気に入りの設定
|
# Dockのお気に入りの設定
|
||||||
[org/gnome/shell]
|
[org/gnome/shell]
|
||||||
favorite-apps=['firefox_firefox.desktop', 'thunderbird.desktop','slack.desktop', 'code.desktop', 'org.gnome.Nautilus.desktop']
|
favorite-apps=['firefox_firefox.desktop', 'slack.desktop', 'thunderbird_thunderbird.desktop', 'code.desktop', 'org.gnome.Nautilus.desktop']
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
deb [signed-by=/usr/share/keyrings/cloudflare-archive-keyring.gpg] https://pkg.cloudflare.com/cloudflared jammy main
|
|
6
etc/apt/sources.list.d/cloudflare.sources
Normal file
6
etc/apt/sources.list.d/cloudflare.sources
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Types: deb
|
||||||
|
URIs: https://pkg.cloudflare.com/cloudflared
|
||||||
|
Suites: jammy
|
||||||
|
Components: main
|
||||||
|
Signed-By: /usr/share/keyrings/cloudflare-archive-keyring.gpg
|
||||||
|
Architectures: amd64
|
|
@ -1 +0,0 @@
|
||||||
deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu jammy stable
|
|
6
etc/apt/sources.list.d/docker.sources
Normal file
6
etc/apt/sources.list.d/docker.sources
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Types: deb
|
||||||
|
URIs: https://download.docker.com/linux/ubuntu
|
||||||
|
Suites: noble
|
||||||
|
Components: stable
|
||||||
|
Signed-By: /usr/share/keyrings/docker-archive-keyring.gpg
|
||||||
|
Architectures: amd64
|
|
@ -1 +0,0 @@
|
||||||
deb [signed-by=/usr/share/keyrings/nodesource-archive-keyring.gpg] https://deb.nodesource.com/node_22.x nodistro main
|
|
6
etc/apt/sources.list.d/nodesource.sources
Normal file
6
etc/apt/sources.list.d/nodesource.sources
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Types: deb
|
||||||
|
URIs: https://deb.nodesource.com/node_22.x
|
||||||
|
Suites: nodistro
|
||||||
|
Components: main
|
||||||
|
Signed-By: /usr/share/keyrings/nodesource-archive-keyring.gpg
|
||||||
|
Architectures: amd64
|
|
@ -1 +0,0 @@
|
||||||
deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/ubuntu jammy main
|
|
6
etc/apt/sources.list.d/tailscale.sources
Normal file
6
etc/apt/sources.list.d/tailscale.sources
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Types: deb
|
||||||
|
URIs: https://pkgs.tailscale.com/stable/ubuntu
|
||||||
|
Suites: noble
|
||||||
|
Components: main
|
||||||
|
Signed-By: /usr/share/keyrings/tailscale-archive-keyring.gpg
|
||||||
|
Architectures: amd64
|
2
mod.bash
2
mod.bash
|
@ -18,6 +18,8 @@ function install_apt_packages() {
|
||||||
local apt_sources_dir
|
local apt_sources_dir
|
||||||
. packages.bash
|
. packages.bash
|
||||||
eval "$(apt-config shell apt_sources_dir 'Dir::Etc::sourceparts/d')"
|
eval "$(apt-config shell apt_sources_dir 'Dir::Etc::sourceparts/d')"
|
||||||
|
apt update
|
||||||
|
apt install -y rsync
|
||||||
rsync -rv etc/apt/keyrings/ /usr/share/keyrings/
|
rsync -rv etc/apt/keyrings/ /usr/share/keyrings/
|
||||||
rsync -rv etc/apt/sources.list.d/ "$apt_sources_dir"
|
rsync -rv etc/apt/sources.list.d/ "$apt_sources_dir"
|
||||||
[[ -d etc/default ]] &&
|
[[ -d etc/default ]] &&
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
packages=(
|
packages=(
|
||||||
|
bash-completion
|
||||||
build-essential
|
build-essential
|
||||||
cloudflared
|
cloudflared
|
||||||
curl
|
curl
|
||||||
|
@ -10,6 +11,7 @@ git-crypt
|
||||||
imagemagick
|
imagemagick
|
||||||
jq
|
jq
|
||||||
knot-dnsutils
|
knot-dnsutils
|
||||||
|
nano
|
||||||
nodejs
|
nodejs
|
||||||
qemu-user-static
|
qemu-user-static
|
||||||
screen
|
screen
|
||||||
|
|
Loading…
Add table
Reference in a new issue