aboutsummaryrefslogtreecommitdiff
path: root/laptop/home/mosder/.config/hypr/conf/binds.lua
blob: bd26621084c64ea782f9ad237a7a5c78dafbe546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local vars = require 'conf.vars'

-- Brightness controls
hl.bind(
  'XF86MonBrightnessUp',
  hl.dsp.exec_cmd('brightnessctl set 5%+; ' .. vars.scripts_dir .. '/current-brightness.sh | xargs ' .. vars.osd .. '-client --brightness'),
  { locked = true, repeating = true }
)
hl.bind(
  'XF86MonBrightnessDown',
  hl.dsp.exec_cmd('brightnessctl set 5%-; ' .. vars.scripts_dir .. '/current-brightness.sh | xargs ' .. vars.osd .. '-client --brightness'),
  { locked = true, repeating = true }
)