Add screen time limits and break reminders in GNOME Wellbeing.
This commit is contained in:
@@ -173,6 +173,7 @@
|
|||||||
# End block for Dash To Dock.
|
# End block for Dash To Dock.
|
||||||
|
|
||||||
# Apply dconf settings through RC files due to distros without working psutil.
|
# Apply dconf settings through RC files due to distros without working psutil.
|
||||||
|
# Use the command 'dconf watch /' then change settings to see find these values.
|
||||||
- name: Workstation | Account Management | GNOME | Settings
|
- name: Workstation | Account Management | GNOME | Settings
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: "{{ user_user.home }}/{{ item }}"
|
path: "{{ user_user.home }}/{{ item }}"
|
||||||
@@ -282,6 +283,20 @@
|
|||||||
#/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/preserve-working-directory
|
#/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/preserve-working-directory
|
||||||
#'never'
|
#'never'
|
||||||
|
|
||||||
|
## Wellbeing ##
|
||||||
|
|
||||||
|
dconf write /org/gnome/desktop/screen-time-limits/daily-limit-enabled \
|
||||||
|
true && inc_dconf &&
|
||||||
|
dconf write /org/gnome/desktop/screen-time-limits/daily-limit-seconds \
|
||||||
|
"uint32 21600" && inc_dconf &&
|
||||||
|
|
||||||
|
dconf write /org/gnome/desktop/break-reminders/selected-breaks \
|
||||||
|
"['eyesight', 'movement']" && inc_dconf &&
|
||||||
|
dconf write /org/gnome/desktop/break-reminders/movement/duration-seconds \
|
||||||
|
"uint32 300" && inc_dconf &&
|
||||||
|
dconf write /org/gnome/desktop/break-reminders/movement/interval-seconds \
|
||||||
|
"uint32 1800" && inc_dconf &&
|
||||||
|
|
||||||
## Success ##
|
## Success ##
|
||||||
|
|
||||||
sleep 0 ||
|
sleep 0 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user