Shortend desktop to desk

This commit is contained in:
2025-07-09 03:18:07 +02:00
parent e4ff99e336
commit dd1aab70fb
109 changed files with 85 additions and 85 deletions

View File

@@ -0,0 +1,23 @@
# GNOME Caffeine
## Description
This role installs [caffeine-ng](https://codeberg.org/WhyNotHugo/caffeine-ng), a utility that prevents your GNOME desktop from entering sleep mode or activating the screensaver automatically. It also ensures that caffeine-ng is set to autostart at user login.
## Purpose
The purpose of this role is to ensure uninterrupted workflow by keeping the desktop active during long-running tasks or presentations. By automatically starting caffeine-ng, it prevents unwanted screen locking or sleep modes on GNOME systems.
## Features
- Installs caffeine-ng from the AUR using an AUR helper.
- Creates the autostart directory if it does not exist.
- Deploys a customized desktop entry to ensure caffeine-ng starts automatically.
- Enhances user experience by maintaining an active desktop environment.
## Credits
Developed and maintained by **Kevin Veen-Birkenbach**.
Learn more at [www.veen.world](https://www.veen.world)
License: [CyMaIS NonCommercial License (CNCL)](https://s.veen.world/cncl)

View File

@@ -0,0 +1,17 @@
---
galaxy_info:
author: "Kevin Veen-Birkenbach"
description: "Installs caffeine-ng and configures it to autostart for preventing screen sleep on GNOME."
license: "CyMaIS NonCommercial License (CNCL)"
license_url: "https://s.veen.world/cncl"
min_ansible_version: "2.4"
platforms:
- name: Archlinux
versions:
- all
galaxy_tags:
- caffeine
- autostart
- archlinux
dependencies:
- generic-aur-helper

View File

@@ -0,0 +1,17 @@
---
- name: Install caffeine
kewlfft.aur.aur:
use: yay
name:
- caffeine-ng
become: false
- name: Create autostart directory if it doesn't exist
file:
path: "{{auto_start_directory}}"
state: directory
- name: Copy caffeine.desktop file to autostart directory
template:
src: caffeine.desktop.j2
dest: "{{auto_start_directory}}caffeine.desktop"

View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Exec=/usr/bin/caffeine
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=caffeine
Name=caffeine
Comment[en_US]=
Comment=

View File

@@ -0,0 +1 @@
auto_start_directory: "/home/{{users.client.username}}/.config/autostart/"