feat(profile): update profile with dbus-send.

This commit is contained in:
Alexandre Pujol 2024-09-11 19:50:50 +01:00
parent 64c2ee5fe9
commit 0fdf514418
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
5 changed files with 96 additions and 219 deletions

View file

@ -11,9 +11,8 @@ profile acpi-powerbtn flags=(attach_disconnected) {
/etc/acpi/powerbtn-acpi-support.sh r,
@{bin}/{ba,da,}sh rix,
@{sh_path} rix,
@{bin}/{e,}grep rix,
@{bin}/dbus-send rix,
@{bin}/killall5 rix,
@{bin}/pgrep rix,
@{bin}/pinky rix,
@ -21,10 +20,10 @@ profile acpi-powerbtn flags=(attach_disconnected) {
@{bin}/shutdown rix,
/etc/acpi/powerbtn.sh rix,
@{bin}/systemctl rCx -> systemctl,
@{bin}/ps rPx,
@{bin}/fgconsole rCx -> fgconsole,
@{bin}/dbus-send Cx -> bus,
@{bin}/fgconsole Cx -> fgconsole,
@{bin}/ps Px,
@{bin}/systemctl Cx -> systemctl,
/usr/share/acpi-support/** r,
@ -46,6 +45,13 @@ profile acpi-powerbtn flags=(attach_disconnected) {
owner /dev/tty@{int} rw,
}
profile bus flags=(complain) {
include <abstractions/base>
include <abstractions/app/bus>
include if exists <local/acpi-powerbtn_bus>
}
profile systemctl {
include <abstractions/base>
include <abstractions/app/systemctl>

View file

@ -13,12 +13,13 @@ profile dunstctl @{exec_path} {
@{exec_path} mr,
@{bin}/dbus-send rCx -> dbus,
@{bin}/dbus-send Cx -> bus,
profile dbus {
profile bus {
include <abstractions/base>
include <abstractions/app/bus>
@{bin}/dbus-send mr,
include if exists <local/dunstctl_bus>
}
include if exists <local/dunstctl>