WakeOnLan, erste Versuche soundfix
This commit is contained in:
parent
cd7863c142
commit
ae71f87b98
12 changed files with 153 additions and 12 deletions
2
roles/lmn_qgm/files/81-wol.rules
Normal file
2
roles/lmn_qgm/files/81-wol.rules
Normal file
|
@ -0,0 +1,2 @@
|
|||
# enable wol
|
||||
ACTION=="add", SUBSYSTEM=="net", NAME=="*", RUN+="/usr/sbin/ethtool -s $name wol g"
|
15
roles/lmn_qgm/files/qgm-soundfix.desktop
Normal file
15
roles/lmn_qgm/files/qgm-soundfix.desktop
Normal 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
|
||||
|
6
roles/lmn_qgm/files/qgm-soundfix.sh
Executable file
6
roles/lmn_qgm/files/qgm-soundfix.sh
Executable 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
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue