Dont rely on the shortcut where it might not be properly set

This commit is contained in:
David Heinemeier Hansson 2024-06-03 16:38:59 -07:00
parent 09c2721e3e
commit 0786909669
10 changed files with 14 additions and 14 deletions

View File

@ -1,7 +1,7 @@
if [ -n "$FORCE" ] || ! command -v alacritty &>/dev/null; then
sudo apt install -y alacritty
mkdir -p ~/.config/alacritty
cp $OMAKUB_PATH/configs/alacritty.toml ~/.config/alacritty/alacritty.toml
cp $OMAKUB_PATH/configs/alacritty/theme.toml ~/.config/alacritty/theme.toml
cp $OMAKUB_PATH/configs/alacritty/font.toml ~/.config/alacritty/font.toml
cp ~/.local/share/omakub/configs/alacritty.toml ~/.config/alacritty/alacritty.toml
cp ~/.local/share/omakub/configs/alacritty/theme.toml ~/.config/alacritty/theme.toml
cp ~/.local/share/omakub/configs/alacritty/font.toml ~/.config/alacritty/font.toml
fi

View File

@ -1,5 +1,5 @@
if [ -n "$FORCE" ] || [ ! -f "~/.XCompose" ]; then
cp $OMAKUB_PATH/configs/xcompose ~/.XCompose
cp ~/.local/share/omakub/configs/xcompose ~/.XCompose
ibus restart
gsettings set org.gnome.desktop.input-sources xkb-options "['compose:caps']"
fi

View File

@ -3,5 +3,5 @@ if [ -n "$FORCE" ] || ! command -v neovim &>/dev/null; then
sudo apt update -y
sudo apt install -y neovim
git clone https://github.com/LazyVim/starter ~/.config/nvim
cp $OMAKUB_PATH/themes/neovim/tokyo-night.lua ~/.config/nvim/lua/plugins/theme.lua
cp ~/.local/share/omakub/themes/neovim/tokyo-night.lua ~/.config/nvim/lua/plugins/theme.lua
fi

View File

@ -1,2 +1,2 @@
# Setup default theme
source $OMAKUB_PATH/themes/gnome/tokyo-night.sh
source ~/.local/share/omakub/themes/gnome/tokyo-night.sh

View File

@ -6,8 +6,8 @@ if [ -n "$FORCE" ] || ! command -v ulauncher &>/dev/null; then
# Start ulauncher to have it populate config before we overwrite
mkdir -p ~/.config/autostart/
cp $OMAKUB_PATH/configs/ulauncher.desktop ~/.config/autostart/ulauncher.desktop
cp ~/.local/share/omakub/configs/ulauncher.desktop ~/.config/autostart/ulauncher.desktop
gtk-launch ulauncher.desktop
sleep 2 # ensure enough time for ulauncher to set defaults
cp $OMAKUB_PATH/configs/ulauncher.json ~/.config/ulauncher/settings.json
cp ~/.local/share/omakub/configs/ulauncher.json ~/.config/ulauncher/settings.json
fi

View File

@ -1,7 +1,7 @@
if [ -n "$FORCE" ] || ! command -v code &>/dev/null; then
sudo snap install code --classic
mkdir -p ~/.config/Code/User
cp $OMAKUB_PATH/configs/vscode.json ~/.config/Code/User/settings.json
cp ~/.local/share/omakub/configs/vscode.json ~/.config/Code/User/settings.json
# Install default supported themes
code --install-extension enkia.tokyo-night

View File

@ -1 +1 @@
for script in $OMAKUB_PATH/web-apps/*.sh; do source $script; done
for script in ~/.local/share/omakub/web-apps/*.sh; do source $script; done

View File

@ -1,6 +1,6 @@
if [ -n "$FORCE" ] || ! command -v zellij &>/dev/null; then
sudo snap install zellij --classic
mkdir -p ~/.config/zellij/
cp $OMAKUB_PATH/configs/zellij.kdl ~/.config/zellij/config.kdl
ln -s $OMAKUB_PATH/themes/zellij ~/.config/zellij/themes
cp ~/.local/share/omakub/configs/zellij.kdl ~/.config/zellij/config.kdl
ln -s ~/.local/share/omakub/themes/zellij ~/.config/zellij/themes
fi

View File

@ -3,7 +3,7 @@ gsettings set org.gnome.desktop.interface cursor-theme 'Yaru'
gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-magenta-dark'
gsettings set org.gnome.desktop.interface icon-theme 'Yaru-magenta'
OMAKUB_DEFAULT_BACKGROUND_IMAGE_PATH="$OMAKUB_PATH/backgrounds/catppuccintotoro.png"
OMAKUB_DEFAULT_BACKGROUND_IMAGE_PATH="$HOME/.local/share/omakub/backgrounds/catppuccintotoro.png"
gsettings set org.gnome.desktop.background picture-uri $OMAKUB_DEFAULT_BACKGROUND_IMAGE_PATH
gsettings set org.gnome.desktop.background picture-uri-dark $OMAKUB_DEFAULT_BACKGROUND_IMAGE_PATH
gsettings set org.gnome.desktop.background picture-options 'zoom'

View File

@ -3,7 +3,7 @@ gsettings set org.gnome.desktop.interface cursor-theme 'Yaru'
gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-sage-dark'
gsettings set org.gnome.desktop.interface icon-theme 'Yaru-sage'
OMAKUB_DEFAULT_BACKGROUND_IMAGE_PATH="$OMAKUB_PATH/backgrounds/ferns-green.jpg"
OMAKUB_DEFAULT_BACKGROUND_IMAGE_PATH="$HOME/.local/share/omakub/backgrounds/ferns-green.jpg"
gsettings set org.gnome.desktop.background picture-uri $OMAKUB_DEFAULT_BACKGROUND_IMAGE_PATH
gsettings set org.gnome.desktop.background picture-uri-dark $OMAKUB_DEFAULT_BACKGROUND_IMAGE_PATH
gsettings set org.gnome.desktop.background picture-options 'zoom'