diff --git a/020_ghostty-terminal.sh b/020_ghostty-terminal.sh new file mode 100644 index 0000000..3ef9ea9 --- /dev/null +++ b/020_ghostty-terminal.sh @@ -0,0 +1,80 @@ +#!/usr/bin/env bash + +DEST=${1:-/etc/skel} +GHOSTTY_HOME=${DEST}/.config/ghostty + +sudo apt update +sudo apt install ghostty + +# https://ghostty.org/docs/config/reference + +mkdir -p "${GHOSTTY_HOME}" + +# https://gist.githubusercontent.com/adibhanna/c552c452fb244b3b721e3c2432e85cde/raw/a7540b1bfe1d653df303ed2aecf943bc15515752/config +# https://www.youtube.com/watch?v=jWuQxU4bDeU&t=7s +conf_print_ghostty_config() { + cat <r=reload_config +keybind = cmd+s>x=close_surface + +keybind = cmd+s>n=new_window + +# tabs +keybind = cmd+s>c=new_tab +keybind = cmd+s>shift+l=next_tab +keybind = cmd+s>shift+h=previous_tab +keybind = cmd+s>comma=move_tab:-1 +keybind = cmd+s>period=move_tab:1 + +# quick tab switch +keybind = cmd+s>1=goto_tab:1 +keybind = cmd+s>2=goto_tab:2 +keybind = cmd+s>3=goto_tab:3 +keybind = cmd+s>4=goto_tab:4 +keybind = cmd+s>5=goto_tab:5 +keybind = cmd+s>6=goto_tab:6 +keybind = cmd+s>7=goto_tab:7 +keybind = cmd+s>8=goto_tab:8 +keybind = cmd+s>9=goto_tab:9 + +# split +keybind = cmd+s>\=new_split:right +keybind = cmd+s>-=new_split:down + +keybind = cmd+s>j=goto_split:bottom +keybind = cmd+s>k=goto_split:top +keybind = cmd+s>h=goto_split:left +keybind = cmd+s>l=goto_split:right + +keybind = cmd+s>z=toggle_split_zoom + +keybind = cmd+s>e=equalize_splits + +# other +copy-on-select = clipboard +EOF +} +conf_print_ghostty_config | tee "${GHOSTTY_HOME}/config.yaml" + +ghostty +validate-config diff --git a/020_mint-x-apps.sh b/020_mint-x-apps.sh new file mode 100644 index 0000000..882b4df --- /dev/null +++ b/020_mint-x-apps.sh @@ -0,0 +1,78 @@ +#!/usr/bin/env bash +set -x + +# xapp gathers the components which are common to multiple GTK desktop +# environments (Cinnamon, MATE and Xfce) and required to implement cross-DE solutions. + +# Xreader is a document viewer capable of displaying multiple and single page +# document formats like PDF and Postscript. +# https://github.com/linuxmint/xreader + +# Xviewer is a simple image viewer which uses the gdk-pixbuf library. +# https://github.com/linuxmint/xviewer + +AUTOMATE_HOME="/var/tmp/automate" +SCRIPT="build_deb_from_dsc_with_update.sh" +BUILD_DIR="/var/tmp/build_xapp" + +# https://github.com/linuxmint/xapp +# DSC_FILE="http://packages.linuxmint.com/pool/main/x/xapp/xapp_1.0.0-1.dsc" + +# Source: xapp +# Binary: xapps-common, libxapp1, libxapp-dev, gir1.2-xapp-1.0, libxapp-dbg, xapps-doc + +# https://github.com/linuxmint/xapps-common +# DSC_FILE="http://packages.linuxmint.com/pool/main/x/xapps-common/xapps-common_1.0.0.dsc" + +# Source: xapps-common +# Binary: xapps-common +# https://github.com/linuxmint/xplayer +# DSC_FILE="http://packages.linuxmint.com/pool/main/x/xplayer/xplayer_1.4.3+betsy.dsc" + +# Source: xplayer +# Binary: libxplayer0, xplayer, xplayer-mozilla, xplayer-common, xplayer-dbg, xplayer-plugins, xplayer-plugins-extra, gir1.2-xplayer-1.0, libxplayer-dev + +# https://github.com/linuxmint/xreader +# DSC_FILE="http://packages.linuxmint.com/pool/main/x/xreader/xreader_1.4.4+betsy.dsc" + +# Source: xreader +# Binary: xreader, xreader-dbg, xreader-common, libxreaderview3, libxreaderview-dev, libxreaderview3-dbg, libxreaderdocument3, libxreaderdocument-dev, libxreaderdocument3-dbg, gir1.2-xreader + +# https://github.com/linuxmint/xviewer +# DSC_FILE="http://packages.linuxmint.com/pool/main/x/xviewer/xviewer_1.4.3+betsy.dsc" + +# Source: xviewer +# Binary: xviewer, xviewer-dbg, xviewer-dev + +print_conf_watch() { + local XAPP="$1" + cat <", function() change_scale_factor(0.1) end, { desc = "Increase scale" }) + vim.keymap.set("n", "", function() change_scale_factor(-0.1) end, { desc = "Decrease scale" }) + vim.keymap.set("n", "", function() vim.g.neovide_scale_factor = 1.0 end, { desc = "Reset scale" }) + + -- Ctrl+Scrollwheel font size up/down like Nvy or VSCode. + vim.keymap.set({ "n", "v" }, "", ":lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + 0.1") + vim.keymap.set({ "n", "v" }, "", ":lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1") + end, +} +EOF +} +conf_print_neovide_lua | tee "${NVIM_PLUGINS_HOME}/neovide_scaling.lua" + +conf_print_zsh_shell_wrapper() { + cat <