mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Compare commits
11 Commits
593c106d2d
...
ea9f33143d
Author | SHA1 | Date | |
---|---|---|---|
|
ea9f33143d | ||
|
696110eae5 | ||
|
6fb75c73bf | ||
|
6c0dedf8fb | ||
|
e8af79669b | ||
|
e432865e3b | ||
|
5585a22d83 | ||
|
4d7601ed53 | ||
|
eed3967ccb | ||
|
bd6154fbf5 | ||
|
5020e8134f |
19
.github/release.yml
vendored
19
.github/release.yml
vendored
|
@ -1,20 +1,23 @@
|
||||||
changelog:
|
changelog:
|
||||||
categories:
|
categories:
|
||||||
- title: '🚀 Features'
|
- title: '🚀 Features'
|
||||||
labels:
|
label: 'enhancement'
|
||||||
- 'feature'
|
|
||||||
- 'enhancement'
|
|
||||||
- title: '🐛 Bug Fixes'
|
- title: '🐛 Bug Fixes'
|
||||||
labels:
|
label: 'bug'
|
||||||
- 'fix'
|
- title: '⚙️ Refactoring'
|
||||||
- 'bugfix'
|
label: 'refactor'
|
||||||
- 'bug'
|
- title: '🧩 UI/UX'
|
||||||
|
label: 'UI/UX'
|
||||||
- title: '📚 Documentation'
|
- title: '📚 Documentation'
|
||||||
label: 'documentation'
|
label: 'documentation'
|
||||||
- title: '🔒 Security'
|
- title: '🔒 Security'
|
||||||
label: 'security'
|
label: 'security'
|
||||||
- title: '🧰 GitHub Actions'
|
- title: '🧰 GitHub Actions'
|
||||||
label: 'github actions'
|
label: 'github_actions'
|
||||||
|
- title: '🦀 Rust'
|
||||||
|
label: 'rust'
|
||||||
|
- title: '📃 Scripting'
|
||||||
|
label: 'script'
|
||||||
exclude:
|
exclude:
|
||||||
labels:
|
labels:
|
||||||
- 'skip-changelog'
|
- 'skip-changelog'
|
24
Cargo.lock
generated
24
Cargo.lock
generated
|
@ -511,6 +511,7 @@ dependencies = [
|
||||||
"rand",
|
"rand",
|
||||||
"ratatui",
|
"ratatui",
|
||||||
"temp-dir",
|
"temp-dir",
|
||||||
|
"textwrap",
|
||||||
"tree-sitter-bash",
|
"tree-sitter-bash",
|
||||||
"tree-sitter-highlight",
|
"tree-sitter-highlight",
|
||||||
"tui-term",
|
"tui-term",
|
||||||
|
@ -966,6 +967,12 @@ version = "1.13.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
|
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "smawk"
|
||||||
|
version = "0.3.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "static_assertions"
|
name = "static_assertions"
|
||||||
version = "1.1.0"
|
version = "1.1.0"
|
||||||
|
@ -1032,6 +1039,17 @@ dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "textwrap"
|
||||||
|
version = "0.16.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9"
|
||||||
|
dependencies = [
|
||||||
|
"smawk",
|
||||||
|
"unicode-linebreak",
|
||||||
|
"unicode-width 0.1.14",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "thiserror"
|
name = "thiserror"
|
||||||
version = "1.0.64"
|
version = "1.0.64"
|
||||||
|
@ -1144,6 +1162,12 @@ version = "1.0.13"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
|
checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "unicode-linebreak"
|
||||||
|
version = "0.1.5"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "unicode-segmentation"
|
name = "unicode-segmentation"
|
||||||
version = "1.11.0"
|
version = "1.11.0"
|
||||||
|
|
|
@ -11,7 +11,7 @@ task_list = "I"
|
||||||
|
|
||||||
[[data.entries]]
|
[[data.entries]]
|
||||||
name = "Neovim"
|
name = "Neovim"
|
||||||
description = "Neovim is a refactor, and sometimes redactor, in the tradition of Vim.\nIt is not a rewrite but a continuation and extension of Vim.\nThis command configures neovim from CTT's neovim configuration.\nhttps://github.com/ChrisTitusTech/neovim"
|
description = "Neovim is a refactor, and sometimes redactor, in the tradition of Vim. It is not a rewrite but a continuation and extension of Vim. This command configures neovim from CTT's neovim configuration. https://github.com/ChrisTitusTech/neovim"
|
||||||
script = "Developer-tools/neovim-setup.sh"
|
script = "Developer-tools/neovim-setup.sh"
|
||||||
task_list = "I FM"
|
task_list = "I FM"
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ task_list = "I"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Alacritty"
|
name = "Alacritty"
|
||||||
description = "Alacritty is a modern terminal emulator that comes with sensible defaults, but allows for extensive configuration. By integrating with other applications, rather than reimplementing their functionality, it manages to provide a flexible set of features with high performance. The supported platforms currently consist of BSD, Linux, macOS and Windows.\nThis command installs and condifures alacritty terminal emulator."
|
description = "Alacritty is a modern terminal emulator that comes with sensible defaults, but allows for extensive configuration. By integrating with other applications, rather than reimplementing their functionality, it manages to provide a flexible set of features with high performance. The supported platforms currently consist of BSD, Linux, macOS and Windows. This command installs and configures alacritty terminal emulator."
|
||||||
script = "alacritty-setup.sh"
|
script = "alacritty-setup.sh"
|
||||||
task_list = "I FM"
|
task_list = "I FM"
|
||||||
|
|
||||||
|
@ -200,19 +200,19 @@ task_list = "I"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Bash Prompt"
|
name = "Bash Prompt"
|
||||||
description = "The .bashrc file is a script that runs every time a new terminal session is started in Unix-like operating systems.\nIt is used to configure the shell session, set up aliases, define functions, and more, making the terminal easier to use and more powerful.\nThis command configures the key sections and functionalities defined in the .bashrc file from CTT's mybash repository.\nhttps://github.com/ChrisTitusTech/mybash"
|
description = "The .bashrc file is a script that runs every time a new terminal session is started in Unix-like operating systems. It is used to configure the shell session, set up aliases, define functions, and more, making the terminal easier to use and more powerful. This command configures the key sections and functionalities defined in the .bashrc file from CTT's mybash repository. https://github.com/ChrisTitusTech/mybash"
|
||||||
script = "mybash-setup.sh"
|
script = "mybash-setup.sh"
|
||||||
task_list = "I FM"
|
task_list = "I FM"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Bottles"
|
name = "Bottles"
|
||||||
description = "Bottles allows Windows software, like applications and games, to run on Linux.\nBottles also provides tools to categorize, organize and optimize your applications."
|
description = "Bottles allows Windows software, like applications and games, to run on Linux. Bottles also provides tools to categorize, organize and optimize your applications."
|
||||||
script = "bottles-setup.sh"
|
script = "bottles-setup.sh"
|
||||||
task_list = "FI"
|
task_list = "FI"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "DWM-Titus"
|
name = "DWM-Titus"
|
||||||
description = "DWM is a dynamic window manager for X.\nIt manages windows in tiled, monocle and floating layouts.\nAll of the layouts can be applied dynamically, optimising the environment for the application in use and the task performed.\nThis command installs and configures DWM and a desktop manager.\nThe list of patches applied can be found in CTT's DWM repository\nhttps://github.com/ChrisTitusTech/dwm-titus"
|
description = "DWM is a dynamic window manager for X. It manages windows in tiled, monocle and floating layouts. All of the layouts can be applied dynamically, optimising the environment for the application in use and the task performed. This command installs and configures DWM and a desktop manager. The list of patches applied can be found in CTT's DWM repository https://github.com/ChrisTitusTech/dwm-titus"
|
||||||
script = "dwmtitus-setup.sh"
|
script = "dwmtitus-setup.sh"
|
||||||
task_list = "I PFM SS"
|
task_list = "I PFM SS"
|
||||||
|
|
||||||
|
@ -224,13 +224,13 @@ task_list = "I SS"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Fastfetch"
|
name = "Fastfetch"
|
||||||
description = "Fastfetch is a neofetch-like tool for fetching system information and displaying it prettily.\nIt is written mainly in C, with performance and customizability in mind.\nThis command installs fastfetch and configures from CTT's mybash repository.\nhttps://github.com/ChrisTitusTech/mybash"
|
description = "Fastfetch is a neofetch-like tool for fetching system information and displaying it prettily. It is written mainly in C, with performance and customizability in mind. This command installs fastfetch and configures from CTT's mybash repository. https://github.com/ChrisTitusTech/mybash"
|
||||||
script = "fastfetch-setup.sh"
|
script = "fastfetch-setup.sh"
|
||||||
task_list = "I FM"
|
task_list = "I FM"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Flatpak / Flathub"
|
name = "Flatpak / Flathub"
|
||||||
description = "Flatpak is a universal application sandbox for Linux that uses isolated packages from Flathub to prevent conflicts and system alterations, while alleviating dependency concerns.\nThis command installs Flatpak and adds the Flathub repository"
|
description = "Flatpak is a universal application sandbox for Linux that uses isolated packages from Flathub to prevent conflicts and system alterations, while alleviating dependency concerns. This command installs Flatpak and adds the Flathub repository"
|
||||||
script = "setup-flatpak.sh"
|
script = "setup-flatpak.sh"
|
||||||
task_list = "I"
|
task_list = "I"
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ task_list = "PFM"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Kitty"
|
name = "Kitty"
|
||||||
description = "kitty is a free and open-source GPU-accelerated terminal emulator for Linux, macOS, and some BSD distributions, focused on performance and features.\nkitty is written in a mix of C and Python programming languages.\n This command installs and configures kitty."
|
description = "kitty is a free and open-source GPU-accelerated terminal emulator for Linux, macOS, and some BSD distributions, focused on performance and features. kitty is written in a mix of C and Python programming languages. This command installs and configures kitty."
|
||||||
script = "kitty-setup.sh"
|
script = "kitty-setup.sh"
|
||||||
task_list = "I FM"
|
task_list = "I FM"
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ values = [ "linutil" ]
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Rofi"
|
name = "Rofi"
|
||||||
description = "Rofi is a window switcher, run dialog, ssh-launcher and dmenu replacement that started as a clone of simpleswitcher, written by Sean Pringle and later expanded by Dave Davenport.\nThis command installs and configures rofi with configuration from CTT's DWM repo.\nhttps://github.com/ChrisTitusTech/dwm-titus"
|
description = "Rofi is a window switcher, run dialog, ssh-launcher and dmenu replacement that started as a clone of simpleswitcher, written by Sean Pringle and later expanded by Dave Davenport. This command installs and configures rofi with configuration from CTT's DWM repo. https://github.com/ChrisTitusTech/dwm-titus"
|
||||||
script = "rofi-setup.sh"
|
script = "rofi-setup.sh"
|
||||||
task_list = "I FM"
|
task_list = "I FM"
|
||||||
|
|
||||||
|
@ -286,6 +286,6 @@ values = [ "wayland", "Wayland" ]
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "ZSH Prompt"
|
name = "ZSH Prompt"
|
||||||
description = "The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh.\nThis command installs ZSH prompt and provides basic configuration."
|
description = "The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh. This command installs ZSH prompt and provides basic configuration."
|
||||||
script = "zsh-setup.sh"
|
script = "zsh-setup.sh"
|
||||||
task_list = "I FM"
|
task_list = "I FM"
|
||||||
|
|
|
@ -5,6 +5,6 @@ name = "Diablo II Resurrected"
|
||||||
|
|
||||||
[[data.entries]]
|
[[data.entries]]
|
||||||
name = "Loot Filter"
|
name = "Loot Filter"
|
||||||
description = "This is a loot filter for Diablo II Resurrected.\nIt's designed to be a simple, clean, and easy to read loot filter that highlights the most important items.\nWorks on battle.net and single player.\nNo frills, no config, just highlights high runes and other valuable items.\nFor more information visit: https://github.com/ChrisTitusTech/d2r-loot-filter"
|
description = "This is a loot filter for Diablo II Resurrected. It's designed to be a simple, clean, and easy to read loot filter that highlights the most important items. Works on battle.net and single player. No frills, no config, just highlights high runes and other valuable items. For more information visit: https://github.com/ChrisTitusTech/d2r-loot-filter"
|
||||||
script = "diablo-ii/d2r-loot-filters.sh"
|
script = "diablo-ii/d2r-loot-filters.sh"
|
||||||
task_list = "FM"
|
task_list = "FM"
|
||||||
|
|
|
@ -2,6 +2,6 @@ name = "Security"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Firewall Baselines (CTT)"
|
name = "Firewall Baselines (CTT)"
|
||||||
description = "Developed to ease iptables firewall configuration, UFW provides a user friendly way to create an IPv4 or IPv6 host-based firewall.\nThis command installs UFW and configures UFW based on CTT's recommended rules.\nFor more information visit: https://christitus.com/linux-security-mistakes"
|
description = "Developed to ease iptables firewall configuration, UFW provides a user friendly way to create an IPv4 or IPv6 host-based firewall. This command installs UFW and configures UFW based on CTT's recommended rules. For more information visit: https://christitus.com/linux-security-mistakes"
|
||||||
script = "firewall-baselines.sh"
|
script = "firewall-baselines.sh"
|
||||||
task_list = "I SS"
|
task_list = "I SS"
|
||||||
|
|
|
@ -17,13 +17,13 @@ task_list = "SI D"
|
||||||
|
|
||||||
[[data.entries]]
|
[[data.entries]]
|
||||||
name = "Paru AUR Helper"
|
name = "Paru AUR Helper"
|
||||||
description = "Paru is your standard pacman wrapping AUR helper with lots of features and minimal interaction.\nTo know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers"
|
description = "Paru is your standard pacman wrapping AUR helper with lots of features and minimal interaction. To know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers"
|
||||||
script = "arch/paru-setup.sh"
|
script = "arch/paru-setup.sh"
|
||||||
task_list = "I"
|
task_list = "I"
|
||||||
|
|
||||||
[[data.entries]]
|
[[data.entries]]
|
||||||
name = "Yay AUR Helper"
|
name = "Yay AUR Helper"
|
||||||
description = "Yet Another Yogurt - An AUR Helper Written in Go.\nTo know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers"
|
description = "Yet Another Yogurt - An AUR Helper Written in Go. To know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers"
|
||||||
script = "arch/yay-setup.sh"
|
script = "arch/yay-setup.sh"
|
||||||
task_list = "I"
|
task_list = "I"
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ task_list = "I"
|
||||||
|
|
||||||
[[data.entries]]
|
[[data.entries]]
|
||||||
name = "RPM Fusion"
|
name = "RPM Fusion"
|
||||||
description = "RPM Fusion provides software that the Fedora Project or Red Hat doesn't want to ship.\nThat software is provided as precompiled RPMs for all current Fedora versions and current Red Hat Enterprise Linux or clones versions; you can use the RPM Fusion repositories with tools like yum and PackageKit.\nFor more information visit: https://rpmfusion.org/"
|
description = "RPM Fusion provides software that the Fedora Project or Red Hat doesn't want to ship. That software is provided as precompiled RPMs for all current Fedora versions and current Red Hat Enterprise Linux or clones versions; you can use the RPM Fusion repositories with tools like yum and PackageKit. For more information visit: https://rpmfusion.org/"
|
||||||
script = "fedora/rpm-fusion-setup.sh"
|
script = "fedora/rpm-fusion-setup.sh"
|
||||||
task_list = "MP"
|
task_list = "MP"
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,7 @@
|
||||||
### Developer Tools
|
### Developer Tools
|
||||||
|
|
||||||
- **Github Desktop**: GitHub Desktop is a user-friendly application that simplifies the process of managing Git repositories and interacting with GitHub, providing a graphical interface for tasks like committing, branching, and syncing changes.
|
- **Github Desktop**: GitHub Desktop is a user-friendly application that simplifies the process of managing Git repositories and interacting with GitHub, providing a graphical interface for tasks like committing, branching, and syncing changes.
|
||||||
- **Neovim**: Neovim is a refactor, and sometimes redactor, in the tradition of Vim.
|
- **Neovim**: Neovim is a refactor, and sometimes redactor, in the tradition of Vim. It is not a rewrite but a continuation and extension of Vim. This command configures neovim from CTT's neovim configuration. https://github.com/ChrisTitusTech/neovim
|
||||||
It is not a rewrite but a continuation and extension of Vim.
|
|
||||||
This command configures neovim from CTT's neovim configuration.
|
|
||||||
https://github.com/ChrisTitusTech/neovim
|
|
||||||
- **Sublime Text**: Sublime Text is a fast, lightweight, and customizable text editor known for its simplicity, powerful features, and wide range of plugins for various programming languages.
|
- **Sublime Text**: Sublime Text is a fast, lightweight, and customizable text editor known for its simplicity, powerful features, and wide range of plugins for various programming languages.
|
||||||
- **VS Code**: Visual Studio Code (VS Code) is a lightweight, open-source code editor with built-in support for debugging, version control, and extensions for various programming languages and frameworks.
|
- **VS Code**: Visual Studio Code (VS Code) is a lightweight, open-source code editor with built-in support for debugging, version control, and extensions for various programming languages and frameworks.
|
||||||
- **VS Codium**: VSCodium is a free, open-source version of Visual Studio Code (VS Code) that removes Microsoft-specific telemetry and branding.
|
- **VS Codium**: VSCodium is a free, open-source version of Visual Studio Code (VS Code) that removes Microsoft-specific telemetry and branding.
|
||||||
|
@ -43,57 +40,32 @@ https://github.com/ChrisTitusTech/neovim
|
||||||
- **Mozilla Firefox**: Mozilla Firefox is a free and open-source web browser developed by the Mozilla Foundation.
|
- **Mozilla Firefox**: Mozilla Firefox is a free and open-source web browser developed by the Mozilla Foundation.
|
||||||
- **Thorium**: Thorium is a Chromium-based browser focused on privacy and performance.
|
- **Thorium**: Thorium is a Chromium-based browser focused on privacy and performance.
|
||||||
- **Vivaldi**: Vivaldi is a freeware, cross-platform web browser developed by Vivaldi Technologies.
|
- **Vivaldi**: Vivaldi is a freeware, cross-platform web browser developed by Vivaldi Technologies.
|
||||||
- **Alacritty**: Alacritty is a modern terminal emulator that comes with sensible defaults, but allows for extensive configuration. By integrating with other applications, rather than reimplementing their functionality, it manages to provide a flexible set of features with high performance. The supported platforms currently consist of BSD, Linux, macOS and Windows.
|
- **Alacritty**: Alacritty is a modern terminal emulator that comes with sensible defaults, but allows for extensive configuration. By integrating with other applications, rather than reimplementing their functionality, it manages to provide a flexible set of features with high performance. The supported platforms currently consist of BSD, Linux, macOS and Windows. This command installs and configures alacritty terminal emulator.
|
||||||
This command installs and condifures alacritty terminal emulator.
|
|
||||||
- **Android Debloater**: Universal Android Debloater (UAD) is a tool designed to help users remove bloatware and unnecessary pre-installed applications from Android devices, enhancing performance and user experience.
|
- **Android Debloater**: Universal Android Debloater (UAD) is a tool designed to help users remove bloatware and unnecessary pre-installed applications from Android devices, enhancing performance and user experience.
|
||||||
- **Bash Prompt**: The .bashrc file is a script that runs every time a new terminal session is started in Unix-like operating systems.
|
- **Bash Prompt**: The .bashrc file is a script that runs every time a new terminal session is started in Unix-like operating systems. It is used to configure the shell session, set up aliases, define functions, and more, making the terminal easier to use and more powerful. This command configures the key sections and functionalities defined in the .bashrc file from CTT's mybash repository. https://github.com/ChrisTitusTech/mybash
|
||||||
It is used to configure the shell session, set up aliases, define functions, and more, making the terminal easier to use and more powerful.
|
- **Bottles**: Bottles allows Windows software, like applications and games, to run on Linux. Bottles also provides tools to categorize, organize and optimize your applications.
|
||||||
This command configures the key sections and functionalities defined in the .bashrc file from CTT's mybash repository.
|
- **DWM-Titus**: DWM is a dynamic window manager for X. It manages windows in tiled, monocle and floating layouts. All of the layouts can be applied dynamically, optimising the environment for the application in use and the task performed. This command installs and configures DWM and a desktop manager. The list of patches applied can be found in CTT's DWM repository https://github.com/ChrisTitusTech/dwm-titus
|
||||||
https://github.com/ChrisTitusTech/mybash
|
|
||||||
- **Bottles**: Bottles allows Windows software, like applications and games, to run on Linux.
|
|
||||||
Bottles also provides tools to categorize, organize and optimize your applications.
|
|
||||||
- **DWM-Titus**: DWM is a dynamic window manager for X.
|
|
||||||
It manages windows in tiled, monocle and floating layouts.
|
|
||||||
All of the layouts can be applied dynamically, optimising the environment for the application in use and the task performed.
|
|
||||||
This command installs and configures DWM and a desktop manager.
|
|
||||||
The list of patches applied can be found in CTT's DWM repository
|
|
||||||
https://github.com/ChrisTitusTech/dwm-titus
|
|
||||||
- **Docker**: Docker is an open platform that uses OS-level virtualization to deliver software in packages called containers.
|
- **Docker**: Docker is an open platform that uses OS-level virtualization to deliver software in packages called containers.
|
||||||
- **Fastfetch**: Fastfetch is a neofetch-like tool for fetching system information and displaying it prettily.
|
- **Fastfetch**: Fastfetch is a neofetch-like tool for fetching system information and displaying it prettily. It is written mainly in C, with performance and customizability in mind. This command installs fastfetch and configures from CTT's mybash repository. https://github.com/ChrisTitusTech/mybash
|
||||||
It is written mainly in C, with performance and customizability in mind.
|
- **Flatpak / Flathub**: Flatpak is a universal application sandbox for Linux that uses isolated packages from Flathub to prevent conflicts and system alterations, while alleviating dependency concerns. This command installs Flatpak and adds the Flathub repository
|
||||||
This command installs fastfetch and configures from CTT's mybash repository.
|
|
||||||
https://github.com/ChrisTitusTech/mybash
|
|
||||||
- **Flatpak / Flathub**: Flatpak is a universal application sandbox for Linux that uses isolated packages from Flathub to prevent conflicts and system alterations, while alleviating dependency concerns.
|
|
||||||
This command installs Flatpak and adds the Flathub repository
|
|
||||||
- **Grub Theme**: Installs ChrisTitusTech's Top 5 Bootloader Themes script to allow for easy customization of GRUB.
|
- **Grub Theme**: Installs ChrisTitusTech's Top 5 Bootloader Themes script to allow for easy customization of GRUB.
|
||||||
- **Kitty**: kitty is a free and open-source GPU-accelerated terminal emulator for Linux, macOS, and some BSD distributions, focused on performance and features.
|
- **Kitty**: kitty is a free and open-source GPU-accelerated terminal emulator for Linux, macOS, and some BSD distributions, focused on performance and features. kitty is written in a mix of C and Python programming languages. This command installs and configures kitty.
|
||||||
kitty is written in a mix of C and Python programming languages.
|
|
||||||
This command installs and configures kitty.
|
|
||||||
- **Linutil Installer**: Installs a distro-specific Linutil package locally.
|
- **Linutil Installer**: Installs a distro-specific Linutil package locally.
|
||||||
- **Linutil Updater**: Updates your local Linutil crate installation.
|
- **Linutil Updater**: Updates your local Linutil crate installation.
|
||||||
- **Rofi**: Rofi is a window switcher, run dialog, ssh-launcher and dmenu replacement that started as a clone of simpleswitcher, written by Sean Pringle and later expanded by Dave Davenport.
|
- **Rofi**: Rofi is a window switcher, run dialog, ssh-launcher and dmenu replacement that started as a clone of simpleswitcher, written by Sean Pringle and later expanded by Dave Davenport. This command installs and configures rofi with configuration from CTT's DWM repo. https://github.com/ChrisTitusTech/dwm-titus
|
||||||
This command installs and configures rofi with configuration from CTT's DWM repo.
|
|
||||||
https://github.com/ChrisTitusTech/dwm-titus
|
|
||||||
- **Waydroid**: Waydroid is an emulator that allows you to run Android apps and games on Linux.
|
- **Waydroid**: Waydroid is an emulator that allows you to run Android apps and games on Linux.
|
||||||
- **ZSH Prompt**: The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh.
|
- **ZSH Prompt**: The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh. This command installs ZSH prompt and provides basic configuration.
|
||||||
This command installs ZSH prompt and provides basic configuration.
|
|
||||||
|
|
||||||
## Gaming
|
## Gaming
|
||||||
|
|
||||||
|
|
||||||
### Diablo II Resurrected
|
### Diablo II Resurrected
|
||||||
|
|
||||||
- **Loot Filter**: This is a loot filter for Diablo II Resurrected.
|
- **Loot Filter**: This is a loot filter for Diablo II Resurrected. It's designed to be a simple, clean, and easy to read loot filter that highlights the most important items. Works on battle.net and single player. No frills, no config, just highlights high runes and other valuable items. For more information visit: https://github.com/ChrisTitusTech/d2r-loot-filter
|
||||||
It's designed to be a simple, clean, and easy to read loot filter that highlights the most important items.
|
|
||||||
Works on battle.net and single player.
|
|
||||||
No frills, no config, just highlights high runes and other valuable items.
|
|
||||||
For more information visit: https://github.com/ChrisTitusTech/d2r-loot-filter
|
|
||||||
|
|
||||||
## Security
|
## Security
|
||||||
|
|
||||||
- **Firewall Baselines (CTT)**: Developed to ease iptables firewall configuration, UFW provides a user friendly way to create an IPv4 or IPv6 host-based firewall.
|
- **Firewall Baselines (CTT)**: Developed to ease iptables firewall configuration, UFW provides a user friendly way to create an IPv4 or IPv6 host-based firewall. This command installs UFW and configures UFW based on CTT's recommended rules. For more information visit: https://christitus.com/linux-security-mistakes
|
||||||
This command installs UFW and configures UFW based on CTT's recommended rules.
|
|
||||||
For more information visit: https://christitus.com/linux-security-mistakes
|
|
||||||
|
|
||||||
## System Setup
|
## System Setup
|
||||||
|
|
||||||
|
@ -101,19 +73,15 @@ For more information visit: https://christitus.com/linux-security-mistakes
|
||||||
### Arch Linux
|
### Arch Linux
|
||||||
|
|
||||||
- **Arch Server Setup**: This command installs a minimal arch server setup under 5 minutes.
|
- **Arch Server Setup**: This command installs a minimal arch server setup under 5 minutes.
|
||||||
- **Paru AUR Helper**: Paru is your standard pacman wrapping AUR helper with lots of features and minimal interaction.
|
- **Paru AUR Helper**: Paru is your standard pacman wrapping AUR helper with lots of features and minimal interaction. To know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers
|
||||||
To know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers
|
- **Yay AUR Helper**: Yet Another Yogurt - An AUR Helper Written in Go. To know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers
|
||||||
- **Yay AUR Helper**: Yet Another Yogurt - An AUR Helper Written in Go.
|
|
||||||
To know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers
|
|
||||||
|
|
||||||
### Fedora
|
### Fedora
|
||||||
|
|
||||||
- **Configure DNF**: Optimizes DNF for parallel downloads
|
- **Configure DNF**: Optimizes DNF for parallel downloads
|
||||||
- **Multimedia Codecs**: This script is designed to install multimedia codecs, and to ensure RPM Fusion repositories are installed.
|
- **Multimedia Codecs**: This script is designed to install multimedia codecs, and to ensure RPM Fusion repositories are installed.
|
||||||
- **Nvidia Proprietary Drivers**: This script is designed to download the proprietary NVIDIA drivers in Fedora.
|
- **Nvidia Proprietary Drivers**: This script is designed to download the proprietary NVIDIA drivers in Fedora.
|
||||||
- **RPM Fusion**: RPM Fusion provides software that the Fedora Project or Red Hat doesn't want to ship.
|
- **RPM Fusion**: RPM Fusion provides software that the Fedora Project or Red Hat doesn't want to ship. That software is provided as precompiled RPMs for all current Fedora versions and current Red Hat Enterprise Linux or clones versions; you can use the RPM Fusion repositories with tools like yum and PackageKit. For more information visit: https://rpmfusion.org/
|
||||||
That software is provided as precompiled RPMs for all current Fedora versions and current Red Hat Enterprise Linux or clones versions; you can use the RPM Fusion repositories with tools like yum and PackageKit.
|
|
||||||
For more information visit: https://rpmfusion.org/
|
|
||||||
- **Virtualization**: Enables Virtualization through dnf
|
- **Virtualization**: Enables Virtualization through dnf
|
||||||
- **Build Prerequisites**: This script is designed to handle the installation of various software dependencies across different Linux distributions
|
- **Build Prerequisites**: This script is designed to handle the installation of various software dependencies across different Linux distributions
|
||||||
- **Full System Cleanup**: This script is designed to remove unnecessary packages, clean old cache files, remove temporary files, and to empty the trash.
|
- **Full System Cleanup**: This script is designed to remove unnecessary packages, clean old cache files, remove temporary files, and to empty the trash.
|
||||||
|
|
|
@ -28,6 +28,7 @@ rand = { version = "0.8.5", optional = true }
|
||||||
linutil_core = { path = "../core", version = "24.9.28" }
|
linutil_core = { path = "../core", version = "24.9.28" }
|
||||||
tree-sitter-highlight = "0.24.2"
|
tree-sitter-highlight = "0.24.2"
|
||||||
tree-sitter-bash = "0.23.1"
|
tree-sitter-bash = "0.23.1"
|
||||||
|
textwrap = "0.16.1"
|
||||||
anstyle = "1.0.8"
|
anstyle = "1.0.8"
|
||||||
ansi-to-tui = "6.0.0"
|
ansi-to-tui = "6.0.0"
|
||||||
zips = "0.1.7"
|
zips = "0.1.7"
|
||||||
|
|
|
@ -20,16 +20,26 @@ use ratatui::{
|
||||||
|
|
||||||
use ansi_to_tui::IntoText;
|
use ansi_to_tui::IntoText;
|
||||||
|
|
||||||
|
use textwrap::wrap;
|
||||||
use tree_sitter_bash as hl_bash;
|
use tree_sitter_bash as hl_bash;
|
||||||
use tree_sitter_highlight::{self as hl, HighlightEvent};
|
use tree_sitter_highlight::{self as hl, HighlightEvent};
|
||||||
use zips::zip_result;
|
use zips::zip_result;
|
||||||
|
|
||||||
|
#[derive(Clone)]
|
||||||
|
pub enum FloatingTextMode {
|
||||||
|
Preview,
|
||||||
|
Description,
|
||||||
|
ActionsGuide,
|
||||||
|
}
|
||||||
|
|
||||||
pub struct FloatingText {
|
pub struct FloatingText {
|
||||||
pub src: Vec<String>,
|
pub src: String,
|
||||||
|
wrapped_lines: Vec<String>,
|
||||||
max_line_width: usize,
|
max_line_width: usize,
|
||||||
v_scroll: usize,
|
v_scroll: usize,
|
||||||
h_scroll: usize,
|
h_scroll: usize,
|
||||||
mode_title: String,
|
mode_title: String,
|
||||||
|
mode: FloatingTextMode,
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! style {
|
macro_rules! style {
|
||||||
|
@ -107,12 +117,6 @@ fn get_highlighted_string(s: &str) -> Option<String> {
|
||||||
Some(output)
|
Some(output)
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! max_width {
|
|
||||||
($($lines:tt)+) => {{
|
|
||||||
$($lines)+.iter().fold(0, |accum, val| accum.max(val.len()))
|
|
||||||
}}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn get_lines(s: &str) -> Vec<&str> {
|
fn get_lines(s: &str) -> Vec<&str> {
|
||||||
s.lines().collect::<Vec<_>>()
|
s.lines().collect::<Vec<_>>()
|
||||||
|
@ -124,54 +128,62 @@ fn get_lines_owned(s: &str) -> Vec<String> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FloatingText {
|
impl FloatingText {
|
||||||
pub fn new(text: String, title: &str) -> Self {
|
pub fn new(text: String, mode: FloatingTextMode) -> Self {
|
||||||
let src = get_lines(&text)
|
let max_line_width = 80;
|
||||||
|
let wrapped_lines = wrap(&text, max_line_width)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|s| s.to_string())
|
.map(|cow| cow.into_owned())
|
||||||
.collect::<Vec<_>>();
|
.collect();
|
||||||
|
|
||||||
let max_line_width = max_width!(src);
|
|
||||||
Self {
|
Self {
|
||||||
src,
|
src: text,
|
||||||
mode_title: title.to_string(),
|
wrapped_lines,
|
||||||
|
mode_title: Self::get_mode_title(&mode).to_string(),
|
||||||
max_line_width,
|
max_line_width,
|
||||||
v_scroll: 0,
|
v_scroll: 0,
|
||||||
h_scroll: 0,
|
h_scroll: 0,
|
||||||
|
mode,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn from_command(command: &Command, title: String) -> Option<Self> {
|
pub fn from_command(command: &Command, mode: FloatingTextMode) -> Option<Self> {
|
||||||
let (max_line_width, src) = match command {
|
let src = match command {
|
||||||
Command::Raw(cmd) => {
|
Command::Raw(cmd) => Some(cmd.clone()),
|
||||||
// just apply highlights directly
|
Command::LocalFile { file, .. } => std::fs::read_to_string(file)
|
||||||
(max_width!(get_lines(cmd)), Some(cmd.clone()))
|
.map_err(|_| format!("File not found: {:?}", file))
|
||||||
}
|
.ok(),
|
||||||
Command::LocalFile { file, .. } => {
|
Command::None => None,
|
||||||
// have to read from tmp dir to get cmd src
|
}?;
|
||||||
let raw = std::fs::read_to_string(file)
|
|
||||||
.map_err(|_| format!("File not found: {:?}", file))
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
(max_width!(get_lines(&raw)), Some(raw))
|
let max_line_width = 80;
|
||||||
}
|
let wrapped_lines = match mode {
|
||||||
|
FloatingTextMode::Description => wrap(&src, max_line_width)
|
||||||
// If command is a folder, we don't display a preview
|
.into_iter()
|
||||||
Command::None => (0usize, None),
|
.map(|cow| cow.into_owned())
|
||||||
|
.collect(),
|
||||||
|
_ => get_lines_owned(&get_highlighted_string(&src)?),
|
||||||
};
|
};
|
||||||
|
|
||||||
let src = get_lines_owned(&get_highlighted_string(&src?)?);
|
|
||||||
|
|
||||||
Some(Self {
|
Some(Self {
|
||||||
src,
|
src,
|
||||||
mode_title: title,
|
wrapped_lines,
|
||||||
|
mode_title: Self::get_mode_title(&mode).to_string(),
|
||||||
max_line_width,
|
max_line_width,
|
||||||
h_scroll: 0,
|
h_scroll: 0,
|
||||||
v_scroll: 0,
|
v_scroll: 0,
|
||||||
|
mode,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn get_mode_title(mode: &FloatingTextMode) -> &'static str {
|
||||||
|
match mode {
|
||||||
|
FloatingTextMode::Preview => "Command Preview",
|
||||||
|
FloatingTextMode::Description => "Command Description",
|
||||||
|
FloatingTextMode::ActionsGuide => "Important Actions Guide",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn scroll_down(&mut self) {
|
fn scroll_down(&mut self) {
|
||||||
if self.v_scroll + 1 < self.src.len() {
|
if self.v_scroll + 1 < self.wrapped_lines.len() {
|
||||||
self.v_scroll += 1;
|
self.v_scroll += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -193,6 +205,21 @@ impl FloatingText {
|
||||||
self.h_scroll += 1;
|
self.h_scroll += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn update_wrapping(&mut self, width: usize) {
|
||||||
|
if self.max_line_width != width {
|
||||||
|
self.max_line_width = width;
|
||||||
|
self.wrapped_lines = match self.mode {
|
||||||
|
FloatingTextMode::Description => wrap(&self.src, width)
|
||||||
|
.into_iter()
|
||||||
|
.map(|cow| cow.into_owned())
|
||||||
|
.collect(),
|
||||||
|
_ => {
|
||||||
|
get_lines_owned(&get_highlighted_string(&self.src).unwrap_or(self.src.clone()))
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FloatContent for FloatingText {
|
impl FloatContent for FloatingText {
|
||||||
|
@ -210,13 +237,22 @@ impl FloatContent for FloatingText {
|
||||||
|
|
||||||
// Calculate the inner area to ensure text is not drawn over the border
|
// Calculate the inner area to ensure text is not drawn over the border
|
||||||
let inner_area = block.inner(area);
|
let inner_area = block.inner(area);
|
||||||
let Rect { height, .. } = inner_area;
|
let Rect { width, height, .. } = inner_area;
|
||||||
|
|
||||||
|
self.update_wrapping(width as usize);
|
||||||
|
|
||||||
let lines = self
|
let lines = self
|
||||||
.src
|
.wrapped_lines
|
||||||
.iter()
|
.iter()
|
||||||
.skip(self.v_scroll)
|
.skip(self.v_scroll)
|
||||||
.take(height as usize)
|
.take(height as usize)
|
||||||
.flat_map(|l| l.into_text().unwrap())
|
.flat_map(|l| {
|
||||||
|
if let FloatingTextMode::Description = self.mode {
|
||||||
|
vec![Line::raw(l.clone())]
|
||||||
|
} else {
|
||||||
|
l.into_text().unwrap().lines
|
||||||
|
}
|
||||||
|
})
|
||||||
.map(|line| {
|
.map(|line| {
|
||||||
let mut skipped = 0;
|
let mut skipped = 0;
|
||||||
let mut spans = line
|
let mut spans = line
|
||||||
|
|
|
@ -2,7 +2,7 @@ use crate::{
|
||||||
confirmation::{ConfirmPrompt, ConfirmStatus},
|
confirmation::{ConfirmPrompt, ConfirmStatus},
|
||||||
filter::{Filter, SearchAction},
|
filter::{Filter, SearchAction},
|
||||||
float::{Float, FloatContent},
|
float::{Float, FloatContent},
|
||||||
floating_text::FloatingText,
|
floating_text::{FloatingText, FloatingTextMode},
|
||||||
hint::{create_shortcut_list, Shortcut},
|
hint::{create_shortcut_list, Shortcut},
|
||||||
running_command::RunningCommand,
|
running_command::RunningCommand,
|
||||||
theme::Theme,
|
theme::Theme,
|
||||||
|
@ -660,7 +660,9 @@ impl AppState {
|
||||||
if let Some(list_node) = self.get_selected_node() {
|
if let Some(list_node) = self.get_selected_node() {
|
||||||
let mut preview_title = "[Preview] - ".to_string();
|
let mut preview_title = "[Preview] - ".to_string();
|
||||||
preview_title.push_str(list_node.name.as_str());
|
preview_title.push_str(list_node.name.as_str());
|
||||||
if let Some(preview) = FloatingText::from_command(&list_node.command, preview_title) {
|
if let Some(preview) =
|
||||||
|
FloatingText::from_command(&list_node.command, FloatingTextMode::Preview)
|
||||||
|
{
|
||||||
self.spawn_float(preview, 80, 80);
|
self.spawn_float(preview, 80, 80);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -668,7 +670,7 @@ impl AppState {
|
||||||
|
|
||||||
fn enable_description(&mut self) {
|
fn enable_description(&mut self) {
|
||||||
if let Some(command_description) = self.get_selected_description() {
|
if let Some(command_description) = self.get_selected_description() {
|
||||||
let description = FloatingText::new(command_description, "Command Description");
|
let description = FloatingText::new(command_description, FloatingTextMode::Description);
|
||||||
self.spawn_float(description, 80, 80);
|
self.spawn_float(description, 80, 80);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -734,7 +736,7 @@ impl AppState {
|
||||||
|
|
||||||
fn toggle_task_list_guide(&mut self) {
|
fn toggle_task_list_guide(&mut self) {
|
||||||
self.spawn_float(
|
self.spawn_float(
|
||||||
FloatingText::new(ACTIONS_GUIDE.to_string(), "Important Actions Guide"),
|
FloatingText::new(ACTIONS_GUIDE.to_string(), FloatingTextMode::ActionsGuide),
|
||||||
80,
|
80,
|
||||||
80,
|
80,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user