mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-01-31 22:38:00 +00:00
Compare commits
3 commits
76a57dcd91
...
51578dbabb
Author | SHA1 | Date | |
---|---|---|---|
51578dbabb | |||
d5bb526d84 | |||
2fae9e358a |
11 changed files with 30 additions and 0 deletions
BIN
desktop/etc/apt/keyrings/makedeb-archive-keyring.gpg
Normal file
BIN
desktop/etc/apt/keyrings/makedeb-archive-keyring.gpg
Normal file
Binary file not shown.
BIN
desktop/etc/apt/keyrings/prebuilt-mpr-archive-keyring.gpg
Normal file
BIN
desktop/etc/apt/keyrings/prebuilt-mpr-archive-keyring.gpg
Normal file
Binary file not shown.
1
desktop/etc/apt/sources.list.d/makedeb.list
Normal file
1
desktop/etc/apt/sources.list.d/makedeb.list
Normal file
|
@ -0,0 +1 @@
|
||||||
|
deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg] https://proget.makedeb.org makedeb jammy
|
1
desktop/etc/apt/sources.list.d/prebuilt-mpr.list
Normal file
1
desktop/etc/apt/sources.list.d/prebuilt-mpr.list
Normal file
|
@ -0,0 +1 @@
|
||||||
|
deb [signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr jammy
|
|
@ -41,3 +41,5 @@ function install_source_han_mono_fonts() {
|
||||||
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_source_han_mono_fonts
|
||||||
|
mist update \
|
||||||
|
&& mist install logseq-bin
|
||||||
|
|
|
@ -4,6 +4,7 @@ code
|
||||||
deja-dup
|
deja-dup
|
||||||
easytag
|
easytag
|
||||||
google-chrome-stable
|
google-chrome-stable
|
||||||
|
mist
|
||||||
mozc-utils-gui
|
mozc-utils-gui
|
||||||
slack-desktop
|
slack-desktop
|
||||||
)
|
)
|
||||||
|
|
1
install
1
install
|
@ -6,5 +6,6 @@ if (($(id -u) == 0)); then
|
||||||
[[ -f /etc/debian_version ]] \
|
[[ -f /etc/debian_version ]] \
|
||||||
&& install_apt_packages
|
&& install_apt_packages
|
||||||
fi
|
fi
|
||||||
|
install_gitconfig
|
||||||
install_dotfiles
|
install_dotfiles
|
||||||
install_addons "$@"
|
install_addons "$@"
|
||||||
|
|
9
mod.bash
9
mod.bash
|
@ -13,6 +13,15 @@ function install_dotfiles() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function install_gitconfig() {
|
||||||
|
if (($(id -u) == 0)); then
|
||||||
|
sudo --user="#${SUDO_UID:-0}" \
|
||||||
|
git config --global --add include.path "$(realpath gitconfig)"
|
||||||
|
else
|
||||||
|
git config --global --add include.path "$(realpath gitconfig)"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function install_apt_packages() {
|
function install_apt_packages() {
|
||||||
local packages
|
local packages
|
||||||
local apt_sources_dir
|
local apt_sources_dir
|
||||||
|
|
|
@ -9,4 +9,11 @@ function install_pkg_packages() {
|
||||||
pkg install -y "${packages[@]}"
|
pkg install -y "${packages[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function install_termux_task() {
|
||||||
|
mkdir -p ~/.shortcuts/tasks
|
||||||
|
install -v "$1" ~/.shortcuts/tasks/
|
||||||
|
}
|
||||||
|
|
||||||
install_pkg_packages
|
install_pkg_packages
|
||||||
|
install_termux_task tasks/logseq-sync
|
||||||
|
termux-setup-storage
|
||||||
|
|
8
termux/tasks/logseq-sync
Executable file
8
termux/tasks/logseq-sync
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
cd ~/storage/shared/logseq
|
||||||
|
git pull
|
||||||
|
git add --all
|
||||||
|
if git commit -m update; then
|
||||||
|
git push
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue