changed dotfiles to dotfiles/desktop/
This commit is contained in:
@@ -0,0 +1,47 @@
|
|||||||
|
name: autofix
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["**"]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
autofix:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# skip if the last push was already made by this workflow to avoid loops
|
||||||
|
if: github.actor != 'github-actions[bot]'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
fetch-depth: 1
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v5
|
||||||
|
|
||||||
|
- name: Install tools
|
||||||
|
run: uv tool install ruff && uv tool install codespell
|
||||||
|
|
||||||
|
- name: ruff import sort
|
||||||
|
run: ruff check --select I --fix .
|
||||||
|
|
||||||
|
- name: ruff format
|
||||||
|
run: ruff format .
|
||||||
|
|
||||||
|
- name: codespell
|
||||||
|
run: codespell --write-changes
|
||||||
|
|
||||||
|
- name: Amend commit with fixes
|
||||||
|
run: |
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git add -A
|
||||||
|
if git diff --cached --quiet; then
|
||||||
|
echo "Nothing to fix, skipping."
|
||||||
|
else
|
||||||
|
git commit --amend --no-edit
|
||||||
|
git push --force-with-lease
|
||||||
|
fi
|
||||||
@@ -4,3 +4,6 @@ dist
|
|||||||
rice-cook.spec
|
rice-cook.spec
|
||||||
__pycache__
|
__pycache__
|
||||||
test.py
|
test.py
|
||||||
|
dotfiles/
|
||||||
|
testdir/
|
||||||
|
logg.log
|
||||||
|
|||||||
+4
-20
@@ -29,7 +29,7 @@ f_handler.setFormatter(formatter)
|
|||||||
logger.addHandler(f_handler)
|
logger.addHandler(f_handler)
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
format="%(asctime)s | %(levelno)s | %(funcName)s| %(message)s ", filename='logg.log', level=logging.WARNING
|
format="%(asctime)s | %(levelno)s | %(funcName)s| %(message)s ", filename='logg.log', level=logging.INFO
|
||||||
)
|
)
|
||||||
|
|
||||||
ap_theme = Theme({'ok': 'green', 'error': 'red', 'checked': 'bold cyan', 'rule': 'orange1'})
|
ap_theme = Theme({'ok': 'green', 'error': 'red', 'checked': 'bold cyan', 'rule': 'orange1'})
|
||||||
@@ -268,22 +268,7 @@ def copy_dotfiles(setup):
|
|||||||
console.rule("Copying Dotfiles", style='checked')
|
console.rule("Copying Dotfiles", style='checked')
|
||||||
|
|
||||||
# list of relevant configs
|
# list of relevant configs
|
||||||
lis = os.listdir('dotfiles')
|
lis = os.listdir('dotfiles/desktop')
|
||||||
exceptions = [
|
|
||||||
'retired',
|
|
||||||
'data.conf',
|
|
||||||
'wrappedhl',
|
|
||||||
'Hyprland',
|
|
||||||
'install.sh',
|
|
||||||
'logg.log',
|
|
||||||
'README.md',
|
|
||||||
'rice-cook.py',
|
|
||||||
'Laptop-configs',
|
|
||||||
]
|
|
||||||
|
|
||||||
for z in exceptions:
|
|
||||||
if z in lis:
|
|
||||||
lis.remove(z)
|
|
||||||
|
|
||||||
# filter out .
|
# filter out .
|
||||||
lis = [item for item in lis if not item.startswith('.')]
|
lis = [item for item in lis if not item.startswith('.')]
|
||||||
@@ -367,12 +352,11 @@ def msic_configs():
|
|||||||
logger.info('candy-icons downloaded')
|
logger.info('candy-icons downloaded')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
url = 'https://github.com/catppuccin/gtk/releases/download/v1.0.3/catppuccin-mocha-blue-standard+default.zip'
|
url = 'https://github.com/catppuccin/gtk/releases/download/v1.0.3/catppuccin-mocha-blue-standard+default.zip'
|
||||||
urllib.request.urlretrieve(url,'catppuccin-mocha-blue.zip')
|
urllib.request.urlretrieve(url, 'catppuccin-mocha-blue.zip')
|
||||||
|
|
||||||
with zipfile.ZipFile('catppuccin-mocha-blue.zip') as zip:
|
with zipfile.ZipFile('catppuccin-mocha-blue.zip') as zip:
|
||||||
zip.extractall(os.path.join(home,'.themes'))
|
zip.extractall(os.path.join(home, '.themes'))
|
||||||
|
|
||||||
# to system
|
# to system
|
||||||
shutil.copytree(home + "/.themes", '/usr/share/themes/', dirs_exist_ok=True)
|
shutil.copytree(home + "/.themes", '/usr/share/themes/', dirs_exist_ok=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user