Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into multi-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevithakannan2 committed Sep 17, 2024
2 parents 4a1502f + d81e3af commit 8902db1
Show file tree
Hide file tree
Showing 28 changed files with 864 additions and 109 deletions.
File renamed without changes.
4 changes: 3 additions & 1 deletion .github/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ docs_dir: '../docs'
nav:
- Introduction: 'index.md'
- User Guide: 'userguide.md'
- Contributing Guide: 'contribute.md'
- Contributing:
- Contributing Guide: 'contribute.md'
- Roadmap: 'roadmap.md'
- Documentation:
- Known Issues: 'KnownIssues.md'
- FAQ: 'faq.md'
Expand Down
10 changes: 3 additions & 7 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
tag-prefix: ""
categories:
- title: '🚀 Features'
Expand All @@ -21,10 +19,6 @@ template: |
$CHANGES
## Contributors
$CONTRIBUTORS
change-title-escapes: '\<*_&"'''
autolabeler:
- label: 'documentation'
Expand Down Expand Up @@ -57,4 +51,6 @@ replacers:
- search: /`/g
replace: ''
exclude-labels:
- 'skip-changelog'
- 'skip-changelog'

filter-by-commitish: true
25 changes: 0 additions & 25 deletions .github/workflows/cargo-lock.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: GitHub Pages Deploy
on:
push:
paths:
- 'mkdocs.yml'
- '.github/mkdocs.yml'
- '.github/requirements.txt'
- 'docs/**'
- 'overrides/**'
- 'CONTRIBUTING.md'
- '.github/CONTRIBUTING.md'
workflow_dispatch:

jobs:
Expand All @@ -29,4 +30,6 @@ jobs:
run: pip install -r .github/requirements.txt

- name: Build & Deploy using mkdocs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mkdocs gh-deploy --force -f .github/mkdocs.yml
37 changes: 37 additions & 0 deletions .github/workflows/linutil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: LinUtil Release
on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: write
Expand Down Expand Up @@ -59,3 +60,39 @@ jobs:
file_pattern: "build/linutil"
add_options: '--force'
if: success()

- name: Extract Version
id: extract_version
run: |
version=$(date +"%Y.%m.%d")
echo "version=$version" >> $GITHUB_ENV
shell: bash

- name: Generate Release Notes
id: generate_notes
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
config-name: release-drafter.yml
version: ${{ env.version }}

- name: Create and Upload Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.version }}
name: Pre-Release ${{ env.version }}
body: |
${{ steps.generate_notes.outputs.body }}
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil)
append_body: false
files: |
./build/linutil
./start.sh
./startdev.sh
prerelease: true
env:
version: ${{ env.version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50 changes: 50 additions & 0 deletions .github/workflows/pr-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Manage labels based on PR body

on:
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
manage-labels:
runs-on: ubuntu-latest
steps:
- name: Analyze PR Body and manage labels
run: |
body="${{ github.event.pull_request.body }}"
labels_to_add=()
labels_to_remove=()
declare -A label_checks=(
["New feature"]="enhancement"
["Bug fix|Hotfix|Security patch"]="bug"
["Documentation update"]="documentation"
["Refactoring"]="refactor"
["UI/UX improvement"]="UI/UX"
)
for key in "${!label_checks[@]}"; do
if echo "$body" | grep -q "\- \[x\] $key"; then
labels_to_add+=("${label_checks[$key]}")
else
labels_to_remove+=("${label_checks[$key]}")
fi
done
echo "LABELS_TO_ADD=${labels_to_add[*]}" >> $GITHUB_ENV
echo "LABELS_TO_REMOVE=${labels_to_remove[*]}" >> $GITHUB_ENV
- name: Add labels if necessary
if: env.LABELS_TO_ADD != ''
run: |
for label in ${{ env.LABELS_TO_ADD }}; do
curl -s -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
-d "{\"labels\": [\"$label\"]}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels
done
- name: Remove labels if necessary
if: env.LABELS_TO_REMOVE != ''
run: |
for label in ${{ env.LABELS_TO_REMOVE }}; do
curl -s -X DELETE \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels/$label
done
55 changes: 0 additions & 55 deletions .github/workflows/pre-release.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/build
rust/target
rust/build
/build/linutil
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ For comprehensive information on how to use Linutil, visit the [Linutil Official

## 🛠 Contributing

We welcome contributions from the community! Before you start, please review our [Contributing Guidelines](CONTRIBUTING.md) to understand how to make the most effective and efficient contributions.
We welcome contributions from the community! Before you start, please review our [Contributing Guidelines](.github/CONTRIBUTING.md) to understand how to make the most effective and efficient contributions.

[Official LinUtil Roadmap](https://christitustech.github.io/linutil/roadmap)

## 🏅 Thanks to All Contributors

Expand Down
Binary file removed build/linutil
Binary file not shown.
File renamed without changes.
6 changes: 5 additions & 1 deletion tabs/applications-setup/alacritty-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ setupAlacritty() {
else
echo "alacritty is already installed."
fi
}

setupAlacrittyConfig() {
echo "Copy alacritty config files"
if [ -d "${HOME}/.config/alacritty" ] && [ ! -d "${HOME}/.config/alacritty-bak" ]; then
cp -r "${HOME}/.config/alacritty" "${HOME}/.config/alacritty-bak"
Expand All @@ -27,4 +30,5 @@ setupAlacritty() {

checkEnv
checkEscalationTool
setupAlacritty
setupAlacritty
setupAlacrittyConfig
10 changes: 5 additions & 5 deletions tabs/applications-setup/dwmtitus-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ setupDWM() {
pacman)
$ESCALATION_TOOL "$PACKAGER" -S --needed --noconfirm base-devel libx11 libxinerama libxft imlib2 libxcb
;;
apt)
$ESCALATION_TOOL "$PACKAGER" install -y build-essential libx11-dev libxinerama-dev libxft-dev libimlib2-dev libxcb1-dev libx11-xcb1
apt-get|nala)
$ESCALATION_TOOL "$PACKAGER" install -y build-essential libx11-dev libxinerama-dev libxft-dev libimlib2-dev libx11-xcb-dev libfontconfig1 libx11-6 libxft2 libxinerama1 libxcb-res0-dev
;;
dnf)
$ESCALATION_TOOL "$PACKAGER" groupinstall -y "Development Tools"
Expand Down Expand Up @@ -178,7 +178,7 @@ setupDisplayManager() {
pacman)
$ESCALATION_TOOL "$PACKAGER" -S --needed --noconfirm xorg-xinit xorg-server
;;
apt)
apt-get|nala)
$ESCALATION_TOOL "$PACKAGER" install -y xorg xinit
;;
dnf)
Expand Down Expand Up @@ -206,7 +206,7 @@ setupDisplayManager() {
pacman)
$ESCALATION_TOOL "$PACKAGER" -S --needed --noconfirm "$DM"
;;
apt)
apt-get|nala)
$ESCALATION_TOOL "$PACKAGER" install -y "$DM"
;;
dnf)
Expand Down Expand Up @@ -292,4 +292,4 @@ makeDWM
install_slstatus
install_nerd_font
clone_config_folders
configure_backgrounds
configure_backgrounds
33 changes: 33 additions & 0 deletions tabs/applications-setup/fastfetch-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/sh -e

. ../common-script.sh

setupFastfetch() {
echo "Installing Fastfetch if not already installed..."
if ! command_exists fastfetch; then
case ${PACKAGER} in
pacman)
$ESCALATION_TOOL "${PACKAGER}" -S --needed --noconfirm fastfetch
;;
*)
$ESCALATION_TOOL "${PACKAGER}" install -y fastfetch
;;
esac
else
echo "Fastfetch is already installed."
fi
}

setupFastfetchConfig() {
echo "Copying Fastfetch config files..."
if [ -d "${HOME}/.config/fastfetch" ] && [ ! -d "${HOME}/.config/fastfetch-bak" ]; then
cp -r "${HOME}/.config/fastfetch" "${HOME}/.config/fastfetch-bak"
fi
mkdir -p "${HOME}/.config/fastfetch/"
curl -sSLo "${HOME}/.config/fastfetch/config.jsonc" https://raw.githubusercontent.com/ChrisTitusTech/mybash/main/config.jsonc
}

checkEnv
checkEscalationTool
setupFastfetch
setupFastfetchConfig
4 changes: 4 additions & 0 deletions tabs/applications-setup/kitty-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ setupKitty() {
else
echo "Kitty is already installed."
fi
}

setupKittyConfig() {
echo "Copy Kitty config files"
if [ -d "${HOME}/.config/kitty" ] && [ ! -d "${HOME}/.config/kitty-bak" ]; then
cp -r "${HOME}/.config/kitty" "${HOME}/.config/kitty-bak"
Expand All @@ -28,3 +31,4 @@ setupKitty() {
checkEnv
checkEscalationTool
setupKitty
setupKittyConfig
Loading

0 comments on commit 8902db1

Please sign in to comment.