This commit is contained in:
2026-02-24 21:42:25 +01:00
parent 875c80027d
commit 54d01ddad3
34 changed files with 481 additions and 298 deletions

View File

@@ -0,0 +1,37 @@
import time
import subprocess
from pynput.keyboard import Controller as KeyboardController, Key
from pynput.mouse import Controller as MouseController, Button
keyboard = KeyboardController()
mouse = MouseController()
# Intervall für Rechtsklick in Sekunden
rechtsklick_intervall = 4.50
def shift_spam_mit_rechtsklick():
letzter_klick = time.time()
try:
while True:
# Shift drücken und loslassen
# keyboard.press(Key.shift)
# time.sleep(0.05)
# keyboard.release(Key.shift)
# Kurze Pause zwischen den Shift-Spams
# time.sleep(0.1)
# Zeit für Rechtsklick?
jetzt = time.time()
if jetzt - letzter_klick >= rechtsklick_intervall:
mouse.click(Button.left)
letzter_klick = jetzt
except KeyboardInterrupt:
print("Skript beendet.")
if __name__ == "__main__":
shift_spam_mit_rechtsklick()

40
assets/scripts/autostart.sh Executable file
View File

@@ -0,0 +1,40 @@
#!/bin/bash
# ___ _____ ___ _ _____ ____ _ _
# / _ \_ _|_ _| | | ____| / ___|| |_ __ _ _ __| |_
# | | | || | | || | | _| \___ \| __/ _` | '__| __|
# | |_| || | | || |___| |___ ___) | || (_| | | | |_
# \__\_\|_| |___|_____|_____| |____/ \__\__,_|_| \__|
#
# by cerberus
# -----------------------------------------------------
# -----------------------------------------------------
# Essentials
# -----------------------------------------------------
# Load polkit agent
gnome-keyring-daemon --start --components=pkcs11,secrets,ssh &
/usr/lib/mate-polkit/polkit-mate-authentication-agent-1 &
mpd &
# -----------------------------------------------------
# Configure Screens
# -----------------------------------------------------
"$HOME"/.screenlayout/screens.sh &
# -----------------------------------------------------
# Autostart Applications
# -----------------------------------------------------
picom & # Compositor
nitrogen --restore & # Wallpaper Manager
copyq & # Clipboard Manager
flameshot & # Screenshot Tool
discord & # Discord
steam -silent & # Steam
firefox & # Firefox
youtube-music & # YT-Music
bitwarden-desktop & # Bitwarden Passwordmanager
joplin & # Note Taking
affine & # Hand-Written Notes
"$HOME"/Documents/scripts/wacom_screen_config.sh & # Grpahic tablet
# kitty --app-id "RMPC" --execute rmpc --theme=.config/rmpc/gruvbox.ron &
sleep 1 &
qtile cmd-obj -o cmd -f reload_config

67
assets/scripts/keybinds.py Executable file
View File

@@ -0,0 +1,67 @@
#!/usr/bin/env python3
import re
from pathlib import Path
# Define the file path using Path and expand user directory
file_path = Path("~/.config/qtile/modules/keys.py").expanduser()
# Initialize a flag for header printing
header_printed = False
def capitalize_first_letter(s):
"""Capitalize the first letter of each key."""
return s.capitalize() if s else ""
def replace_keys(key):
"""Replace Mod and Control with Super and Ctrl."""
if key == "mod":
return "Super"
if key == "xf86calculator":
return "Calculator"
elif key == "control":
return "Ctrl"
return key
with open(file_path, "r") as file:
for line in file:
# Skip lines that contain "# Key("
if "# Key(" in line:
continue
# Check for KB_GROUP headers
if "# KB_GROUP-" in line:
if header_printed:
print("") # Add a blank line before the next header
# Print the header in bold yellow, removing "KB_GROUP-"
print(
f"\n\033[1;33m{line.strip().replace('KB_GROUP-', '').strip()}\033[0m\n"
)
header_printed = True
# Check for Key bindings
match = re.search(r'Key\(\[(.*?)\], "(.*?)", lazy\..*, desc="(.*)"\)', line)
if match:
# Get the modifier keys
keys = match.group(1).replace("'", "").replace('"', "").split(", ")
# Get the main key
key = match.group(2)
# Get the description
description = match.group(3)
# Prepare the key strings for each key position
mod1 = (
capitalize_first_letter(replace_keys(keys[0])) if len(keys) > 0 else ""
)
mod2 = (
capitalize_first_letter(replace_keys(keys[1])) if len(keys) > 1 else ""
)
key_str = capitalize_first_letter(key) # The main key
# Print the keys in their respective columns
print(f" {mod1:<6} {mod2:<8} {key_str:<30}{description}")
# Wait for user input before exiting
input("Press [Enter] to exit...")