Add some fixes that may have been what got light to work.
This commit is contained in:
@@ -141,16 +141,16 @@ bindsym $mod+c exec codium-flatpak
|
|||||||
## Brightness ##
|
## Brightness ##
|
||||||
# Use the bracket keys to change the brightness.
|
# Use the bracket keys to change the brightness.
|
||||||
# light requires sudo privileges unless video group and udev are configured.
|
# light requires sudo privileges unless video group and udev are configured.
|
||||||
bindsym $mod+bracketleft exec --no-startup-id "light -U 2; notify-send 'Brightness -' $(light -G)"
|
bindsym $mod+bracketleft exec --no-startup-id "light -U 5; notify-send 'Brightness -' $(light -G)"
|
||||||
bindsym $mod+bracketright exec --no-startup-id "light -A 2; notify-send 'Brightness +' $(light -G)"
|
bindsym $mod+bracketright exec --no-startup-id "light -A 5; notify-send 'Brightness +' $(light -G)"
|
||||||
bindsym shift+$mod+bracketleft exec --no-startup-id "light -U 10; notify-send 'Brightness ---' $(light -G)"
|
bindsym shift+$mod+bracketleft exec --no-startup-id "light -U 20; notify-send 'Brightness ---' $(light -G)"
|
||||||
bindsym shift+$mod+bracketright exec --no-startup-id "light -A 10; notify-send 'Brightness +++' $(light -G)"
|
bindsym shift+$mod+bracketright exec --no-startup-id "light -A 20; notify-send 'Brightness +++' $(light -G)"
|
||||||
|
|
||||||
# Also get the actual brightness keys to work!!
|
# Also get the actual brightness keys to work!!
|
||||||
bindsym XF86MonBrightnessUp exec --no-startup-id "light -A 2; notify-send 'Brightness +' $(light -G)"
|
bindsym XF86MonBrightnessUp exec --no-startup-id "light -A 5; notify-send 'Brightness +' $(light -G)"
|
||||||
bindsym XF86MonBrightnessDown exec --no-startup-id "light -U 2; notify-send 'Brightness -' $(light -G)"
|
bindsym XF86MonBrightnessDown exec --no-startup-id "light -U 5; notify-send 'Brightness -' $(light -G)"
|
||||||
bindsym shift+XF86MonBrightnessUp exec --no-startup-id "light -A 10; notify-send 'Brightness +++' $(light -G)"
|
bindsym shift+XF86MonBrightnessUp exec --no-startup-id "light -A 20; notify-send 'Brightness +++' $(light -G)"
|
||||||
bindsym shift+XF86MonBrightnessDown exec --no-startup-id "light -U 10; notify-send 'Brightness ---' $(light -G)"
|
bindsym shift+XF86MonBrightnessDown exec --no-startup-id "light -U 20; notify-send 'Brightness ---' $(light -G)"
|
||||||
|
|
||||||
|
|
||||||
## Volume ##
|
## Volume ##
|
||||||
@@ -277,3 +277,6 @@ bar {
|
|||||||
|
|
||||||
exec i3-sensible-terminal
|
exec i3-sensible-terminal
|
||||||
#exec firefox-flatpak
|
#exec firefox-flatpak
|
||||||
|
|
||||||
|
exec light -O
|
||||||
|
exec light -N 0
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
#
|
#
|
||||||
# It then required a reboot. Doing the commands below was not enough.
|
# It then required a reboot. Doing the commands below was not enough.
|
||||||
#
|
#
|
||||||
# # sudo udevadm control --reload-rules ^C
|
# # sudo udevadm control --reload-rules
|
||||||
# # sudo udevadm trigger
|
# # sudo udevadm trigger
|
||||||
#
|
#
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
# ansible.builtin.debug:
|
# ansible.builtin.debug:
|
||||||
# msg: "{{ i3_light_device_name }}"
|
# msg: "{{ i3_light_device_name }}"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | i3 | Light | Create udev Rules
|
- name: Workstation | Linux | Software | i3 | Light | udev Rules | Create
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/udev/rules.d/backlight.rules
|
dest: /etc/udev/rules.d/backlight.rules
|
||||||
content: |
|
content: |
|
||||||
@@ -112,5 +112,11 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | i3 | Light | udev Rules | Reload
|
||||||
|
command: "{{ item }}"
|
||||||
|
loop:
|
||||||
|
- udevadm control --reload-rules
|
||||||
|
- udevadm trigger
|
||||||
|
|
||||||
#- name: FAIL - DELETEME
|
#- name: FAIL - DELETEME
|
||||||
# meta: end_play
|
# meta: end_play
|
||||||
|
|||||||
Reference in New Issue
Block a user