Add ability to leave off Night Light through Workstation provisioning file.
This commit is contained in:
@ -200,6 +200,9 @@
|
|||||||
; mobile : Set to true if not using an amd64 processor.
|
; mobile : Set to true if not using an amd64 processor.
|
||||||
; Also used to disable tasks not helpful for Pinephone.
|
; Also used to disable tasks not helpful for Pinephone.
|
||||||
;
|
;
|
||||||
|
; redmode : Set to true/false for automatially using Night Light in GNOME.
|
||||||
|
; Default: true
|
||||||
|
;
|
||||||
[global]
|
[global]
|
||||||
marker: '; {mark} MANAGED BY ANSIBLE | Workstation Config'
|
marker: '; {mark} MANAGED BY ANSIBLE | Workstation Config'
|
||||||
state: present
|
state: present
|
||||||
@ -216,6 +219,7 @@
|
|||||||
vnc: "{{ lookup('ini', 'vnc file={{wrk_file}} default=false') }}"
|
vnc: "{{ lookup('ini', 'vnc file={{wrk_file}} default=false') }}"
|
||||||
bsd_gpu: "{{ lookup('ini', 'bsd_gpu file={{wrk_file}} default=false') }}"
|
bsd_gpu: "{{ lookup('ini', 'bsd_gpu file={{wrk_file}} default=false') }}"
|
||||||
mobile: "{{ lookup('ini', 'mobile file={{wrk_file}} default=false') }}"
|
mobile: "{{ lookup('ini', 'mobile file={{wrk_file}} default=false') }}"
|
||||||
|
redmode: "{{ lookup('ini', 'redmode file={{wrk_file}} default=true' ) }}"
|
||||||
|
|
||||||
- name: General | Account Management | Provisioning Configuration | Workstation | List
|
- name: General | Account Management | Provisioning Configuration | Workstation | List
|
||||||
set_fact:
|
set_fact:
|
||||||
@ -229,6 +233,7 @@
|
|||||||
- { 'vnc': "{{ vnc }}" }
|
- { 'vnc': "{{ vnc }}" }
|
||||||
- { 'bsd_gpu': "{{ bsd_gpu }}" }
|
- { 'bsd_gpu': "{{ bsd_gpu }}" }
|
||||||
- { 'mobile': "{{ mobile }}" }
|
- { 'mobile': "{{ mobile }}" }
|
||||||
|
- { 'redmode': "{{ redmode }}" }
|
||||||
|
|
||||||
# No longer mining, this is now considered deprecated.
|
# No longer mining, this is now considered deprecated.
|
||||||
### Miner ##
|
### Miner ##
|
||||||
|
@ -217,7 +217,12 @@
|
|||||||
dconf write /org/gnome/desktop/notifications/application/org-gnome-evolution/enable-sound-alerts false && inc_dconf &&
|
dconf write /org/gnome/desktop/notifications/application/org-gnome-evolution/enable-sound-alerts false && inc_dconf &&
|
||||||
dconf write /org/gnome/desktop/notifications/application/org-gnome-evolution/enable false && inc_dconf &&
|
dconf write /org/gnome/desktop/notifications/application/org-gnome-evolution/enable false && inc_dconf &&
|
||||||
|
|
||||||
|
# Red Mode (Night Light)
|
||||||
|
typeset -l redmode
|
||||||
|
redmode="{{ redmode }}"
|
||||||
|
if [[ $redmode == "true" ]]; then
|
||||||
dconf write /org/gnome/settings-daemon/plugins/color/night-light-enabled true
|
dconf write /org/gnome/settings-daemon/plugins/color/night-light-enabled true
|
||||||
|
fi
|
||||||
dconf write /org/gnome/settings-daemon/plugins/color/night-light-schedule-automatic false
|
dconf write /org/gnome/settings-daemon/plugins/color/night-light-schedule-automatic false
|
||||||
dconf write /org/gnome/settings-daemon/plugins/color/night-light-temperature "uint32 3170"
|
dconf write /org/gnome/settings-daemon/plugins/color/night-light-temperature "uint32 3170"
|
||||||
dconf write /org/gnome/settings-daemon/plugins/color/night-light-schedule-from 2.0
|
dconf write /org/gnome/settings-daemon/plugins/color/night-light-schedule-from 2.0
|
||||||
|
Reference in New Issue
Block a user