From 19b508a5271b3382138065ed664d9f14c1633cc3 Mon Sep 17 00:00:00 2001 From: Tipragot Date: Thu, 11 Jul 2024 14:31:14 +0200 Subject: [PATCH] Adding Editor --- packages/tos-desktop-core/PKGBUILD | 4 +- packages/tos-desktop-editor/PKGBUILD | 16 ++++ packages/tos-desktop-editor/config.toml | 103 ++++++++++++++++++++++++ packages/tos-desktop-terminal/PKGBUILD | 6 +- packages/tos-prism/PKGBUILD | 25 ------ packages/tos-tools/PKGBUILD | 9 --- 6 files changed, 125 insertions(+), 38 deletions(-) create mode 100644 packages/tos-desktop-editor/PKGBUILD create mode 100644 packages/tos-desktop-editor/config.toml delete mode 100644 packages/tos-prism/PKGBUILD delete mode 100644 packages/tos-tools/PKGBUILD diff --git a/packages/tos-desktop-core/PKGBUILD b/packages/tos-desktop-core/PKGBUILD index 8445349..812ed69 100644 --- a/packages/tos-desktop-core/PKGBUILD +++ b/packages/tos-desktop-core/PKGBUILD @@ -4,9 +4,9 @@ arch=('any') url='https://git.tipragot.fr/tipragot/tos' license=('MIT') -pkgver='0.1.3' +pkgver='0.1.4' pkgrel='1' -depends=('tos-core' 'xorg-server' 'tos-fonts' 'tos-tools') +depends=('tos-core' 'xorg-server' 'tos-fonts') source=('tos-desktop.conf') cksums=('SKIP') diff --git a/packages/tos-desktop-editor/PKGBUILD b/packages/tos-desktop-editor/PKGBUILD new file mode 100644 index 0000000..5ed42b1 --- /dev/null +++ b/packages/tos-desktop-editor/PKGBUILD @@ -0,0 +1,16 @@ +pkgname='tos-desktop-editor' +pkgdesc='Editor for Tipragot OS' +arch=('any') +url='https://git.tipragot.fr/tipragot/tos' +license=('MIT') + +pkgver='0.1.0' +pkgrel='1' +depends=('helix') +source=('config.toml') +cksums=('SKIP') + +package() { + mkdir -p ${pkgdir}/etc/tos/dotfiles/.config/helix + cp ${srcdir}/config.toml ${pkgdir}/etc/tos/dotfiles/.config/helix/config.toml +} diff --git a/packages/tos-desktop-editor/config.toml b/packages/tos-desktop-editor/config.toml new file mode 100644 index 0000000..5b31dfd --- /dev/null +++ b/packages/tos-desktop-editor/config.toml @@ -0,0 +1,103 @@ +theme = "dark_plus" + +[editor] +mouse = false + +[editor.cursor-shape] +insert = "bar" +normal = "block" +select = "underline" + +[keys.normal] +n = "move_char_left" +e = "move_line_down" +i = "move_line_up" +o = "move_char_right" + +h = "insert_mode" +H = "insert_at_line_start" + +l = "open_below" +L = "open_above" + +k = "move_next_word_end" +K = "move_next_long_word_end" + +j = "search_next" +J = "search_prev" + +E = "join_selections" +"A-E" = "join_selections_space" + +I = "keep_selections" +"A-I" = "remove_selections" + +[keys.normal.g] +n = "goto_line_start" +e = "move_line_down" +i = "move_line_up" +o = "goto_line_end" + +[keys.normal.C-w] +n = "jump_view_left" +e = "jump_view_down" +i = "jump_view_up" +o = "jump_view_right" + +N = "swap_view_left" +E = "swap_view_down" +I = "swap_view_up" +O = "swap_view_right" + +h = "vsplit_new" +H = "hsplit_new" + +a = "wonly" + +[keys.insert] +"C-n" = "kill_to_line_start" +"C-o" = "kill_to_line_end" +"C-e" = "insert_newline" + +[keys.select] +n = "move_char_left" +e = "move_line_down" +i = "move_line_up" +o = "move_char_right" + +h = "insert_mode" +H = "insert_at_line_start" + +l = "open_below" +L = "open_above" + +k = "move_next_word_end" +K = "move_next_long_word_end" + +j = "extend_search_next" +J = "extend_search_prev" + +E = "join_selections" +"A-E" = "join_selections_space" + +I = "keep_selections" +"A-I" = "remove_selections" + +[keys.normal.z] +e = "scroll_down" +i = "scroll_up" + +[keys.normal.Z] +e = "scroll_down" +i = "scroll_up" + +[keys.normal.space.w] +n = "jump_view_left" +e = "jump_view_down" +i = "jump_view_up" +o = "jump_view_right" + +N = "swap_view_left" +E = "swap_view_down" +I = "swap_view_up" +O = "swap_view_right" diff --git a/packages/tos-desktop-terminal/PKGBUILD b/packages/tos-desktop-terminal/PKGBUILD index 7970352..11e835a 100644 --- a/packages/tos-desktop-terminal/PKGBUILD +++ b/packages/tos-desktop-terminal/PKGBUILD @@ -4,9 +4,11 @@ arch=('any') url='https://git.tipragot.fr/tipragot/tos' license=('MIT') -pkgver='0.2.7' +pkgver='0.2.8' pkgrel='1' -depends=('tos-desktop-core' 'alacritty' 'fish' 'bat' 'exa' 'zoxide' 'fzf') +depends=( + 'tos-desktop-core' 'alacritty' 'tos-desktop-editor' 'fish' 'bat' 'exa' 'zoxide' 'fzf' 'base-devel' 'openssh' 'git' +) source=('config.toml' 'config.fish') cksums=('SKIP' 'SKIP') diff --git a/packages/tos-prism/PKGBUILD b/packages/tos-prism/PKGBUILD deleted file mode 100644 index 42f4ff9..0000000 --- a/packages/tos-prism/PKGBUILD +++ /dev/null @@ -1,25 +0,0 @@ -pkgname=tos-prism -pkgver=7.3 -pkgrel=1 -pkgdesc="Minecraft launcher with ability to manage multiple instances." -arch=('x86_64') -url="https://prismlauncher.org" -license=('GPL3') -depends=('java-runtime=17' 'libgl' 'qt5-base' 'qt5-svg' 'qt5-imageformats' 'zlib' 'hicolor-icon-theme') -provides=('prismlauncher' 'prismlauncher-qt5') -conflicts=('prismlauncher' 'prismlauncher-qt5') -optdepends=('glfw: to use system GLFW libraries' - 'openal: to use system OpenAL libraries' - 'visualvm: Profiling support' - 'xorg-xrandr: for older minecraft versions' - 'java-runtime=8: support for Minecraft versions < 1.17' -) -source=("https://github.com/PrismLauncher/PrismLauncher/releases/download/7.2/PrismLauncher-Linux-7.2.tar.gz") -noextract=("PrismLauncher-Linux-7.2.tar.gz") -sha256sums=('6faffe40f978c65cf2f7806393e5563eaf299fd0e963b783f861e5b9087486b1') - -package() { - install -d "${pkgdir}/usr" - tar -C "${pkgdir}/usr" -xvf PrismLauncher-Linux-7.2.tar.gz - chown -R root:root "${pkgdir}/usr" # files in tarball are not owned by root -} \ No newline at end of file diff --git a/packages/tos-tools/PKGBUILD b/packages/tos-tools/PKGBUILD deleted file mode 100644 index 7713642..0000000 --- a/packages/tos-tools/PKGBUILD +++ /dev/null @@ -1,9 +0,0 @@ -pkgname='tos-tools' -pkgdesc='Rust version of GNU tools' -arch=('any') -url='https://git.tipragot.fr/tipragot/tos' -license=('MIT') - -pkgver='0.1.2' -pkgrel='1' -depends=('tos-core' 'base-devel' 'openssh' 'git')