WakeOnLan, erste Versuche soundfix

This commit is contained in:
Frank Schiebel 2023-10-18 09:48:56 +02:00
parent cd7863c142
commit ae71f87b98
12 changed files with 153 additions and 12 deletions

View file

@ -0,0 +1,2 @@
# enable wol
ACTION=="add", SUBSYSTEM=="net", NAME=="*", RUN+="/usr/sbin/ethtool -s $name wol g"

View file

@ -0,0 +1,15 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=qgm-soundfix.sh
Name[de_DE]=QG - Ton zum Beamer
Name=QG - Ton zum Beamer
Icon=/usr/share/icons/breeze-dark/emblems/symbolic/emblem-music-symbolic.svg
Hidden=false
Comment=
Path=
StartupNotify=false

View file

@ -0,0 +1,6 @@
#!/bin/bash
CARD=$(pactl list cards short | head -n 1 | awk '{print $2}')
pactl set-card-profile $CARD output:hdmi-stereo+input:analog-stereo
HDMISINK=$(pactl list sinks short | grep hdmi | awk '{print $2}')
pactl set-default-sink $HDMISINK

View file

@ -53,6 +53,7 @@
- libnotify-bin ## needed for pwroff script
- neovim
- net-tools
- ethtool
- netcat-openbsd
- nmap
- tmux
@ -249,4 +250,39 @@
ansible.builtin.file:
path: /etc/firefox-esr/policies/firefox_policies.json
state: absent
##########
# Enable WOL
#
- name: Enable WOL
ansible.builtin.command: ethtool -s {{ ansible_default_ipv4.interface }} wol g
- name: Copy 81-wol.rules to target
copy:
src: 81-wol.rules
dest: /etc/udev/rules.d/81-wol.rules
mode: '0644'
owner: root
group: root
##########
# Laptop Skripte
#
- name: Copy qgm-soudfix.sh
copy:
src: qgm-soundfix.sh
dest: /usr/local/bin/qgm-soundfix.sh
mode: '0755'
owner: root
group: root
- name: Copy qgm-soudfix.desktop
copy:
src: qgm-soundfix.desktop
dest: /usr/share/applications/qgm-soundfix.desktop
mode: '0644'
owner: root
group: root