2024-05-10 23:18:36 -04:00
|
|
|
## Copyright (C) 2019 - 2024 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
2020-01-15 02:42:10 -05:00
|
|
|
## See the file COPYING for copying conditions.
|
|
|
|
|
|
|
|
## https://forums.whonix.org/t/xfce4-power-manager-xfpm-power-backlight-helper-pkexec-lxsudo-popup/8764
|
|
|
|
## /usr/share/polkit-1/actions/org.xfce.power.policy
|
|
|
|
|
2023-06-22 12:16:15 -04:00
|
|
|
## Feel free to out comment this if you are not using xfce4-power-manager or Xfce.
|
2020-01-15 02:42:10 -05:00
|
|
|
|
2020-04-12 16:54:10 -04:00
|
|
|
#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness [[\:digit\:]]
|
|
|
|
#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness [[\:digit\:]][[\:digit\:]]
|
|
|
|
#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness [[\:digit\:]][[\:digit\:]][[\:digit\:]]
|
2020-01-15 02:42:10 -05:00
|
|
|
|
2020-04-12 16:54:10 -04:00
|
|
|
#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness-switch [[\:digit\:]]
|
|
|
|
#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness-switch [[\:digit\:]][[\:digit\:]]
|
|
|
|
#%sudo ALL=NOPASSWD: /usr/sbin/xfpm-power-backlight-helper --set-brightness-switch [[\:digit\:]][[\:digit\:]][[\:digit\:]]
|
2020-01-15 02:42:10 -05:00
|
|
|
|
|
|
|
## XXX: Should we allow this?
|
|
|
|
#%sudo ALL=NOPASSWD: /usr/sbin/xfce4-pm-helper --suspend
|
|
|
|
#%sudo ALL=NOPASSWD: /usr/sbin/xfce4-pm-helper --hibernate
|