From 748d826d121cbaa05da86b2d49311557d3b0e845 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 27 May 2024 16:46:33 -0700 Subject: [PATCH] Placeholders for commands --- bin/omakub-font | 20 ++++++++++++++++++++ bin/omakub-help | 3 +++ bin/omakub-install | 4 ++++ bin/omakub-theme | 4 ++++ 4 files changed, 31 insertions(+) create mode 100755 bin/omakub-font create mode 100755 bin/omakub-help create mode 100644 bin/omakub-install create mode 100644 bin/omakub-theme diff --git a/bin/omakub-font b/bin/omakub-font new file mode 100755 index 0000000..b5cd3e8 --- /dev/null +++ b/bin/omakub-font @@ -0,0 +1,20 @@ +#!/bin/bash +set -e + +mkdir -p ~/.local/share/fonts + +# Pick a preselected font + +if ! [ -f "$HOME/.local/share/fonts/CaskaydiaMonoNerdFont-Regular.ttf" ]; then + cd ~/Downloads + wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/CascadiaMono.zip + unzip CascadiaMono.zip -d CascadiaFont + mkdir -p ~/.local/share/fonts + cp CascadiaFont/*.ttf ~/.local/share/fonts + rm -rf CascadiaMono.zip CascadiaFont + fc-cache + cd - +fi + +# Replace font = { family: X } +gsettings set org.gnome.desktop.interface monospace-font-name 'CaskaydiaMono Nerd Font 10' diff --git a/bin/omakub-help b/bin/omakub-help new file mode 100755 index 0000000..9684dda --- /dev/null +++ b/bin/omakub-help @@ -0,0 +1,3 @@ +#!/bin/bash + +batcat ~/.local/share/omakub/help/hotkeys.md diff --git a/bin/omakub-install b/bin/omakub-install new file mode 100644 index 0000000..c57e4cd --- /dev/null +++ b/bin/omakub-install @@ -0,0 +1,4 @@ +#!/bin/bash + +source ~/.local/share/omakub/install/gh.sh +source ~/.local/share/omakub/install/optional/virtualbox.sh diff --git a/bin/omakub-theme b/bin/omakub-theme new file mode 100644 index 0000000..b26a312 --- /dev/null +++ b/bin/omakub-theme @@ -0,0 +1,4 @@ +#!/bin/bash +set -e + +# Pick a preconfigured theme