hyprland lua fixes
This commit is contained in:
parent
12ec4d920a
commit
6b5e170196
3 changed files with 14 additions and 6 deletions
|
|
@ -44,13 +44,13 @@ hl.bind('SUPER + SHIFT + P', hl.dsp.exec_cmd('rofi-rbw'))
|
||||||
hl.bind('ALT + P', hl.dsp.exec_cmd('hyprpicker --format=hex -a'))
|
hl.bind('ALT + P', hl.dsp.exec_cmd('hyprpicker --format=hex -a'))
|
||||||
|
|
||||||
-- Audio Controls
|
-- Audio Controls
|
||||||
hl.bind('code:123', hl.dsp.exec_cmd('wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+'), { repeating = true, locked = true })
|
hl.bind('XF86AudioRaiseVolume', hl.dsp.exec_cmd('wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+'), { repeating = true, locked = true })
|
||||||
hl.bind('code:122', hl.dsp.exec_cmd('wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-'), { repeating = true, locked = true })
|
hl.bind('XF86AudioLowerVolume', hl.dsp.exec_cmd('wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-'), { repeating = true, locked = true })
|
||||||
hl.bind('code:121', hl.dsp.exec_cmd('wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle'), { repeating = true, locked = true })
|
hl.bind('XF86AudioMute', hl.dsp.exec_cmd('wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle'), { repeating = true, locked = true })
|
||||||
|
|
||||||
-- Brightness Controls
|
-- Brightness Controls
|
||||||
hl.bind('code:233', hl.dsp.exec_cmd('brightnessctl s 1%+ && echo true > /home/rafayahmad/dotfiles/.config/eww/brightnessShow'), { repeating = true, locked = true })
|
hl.bind('XF86MonBrightnessUp', hl.dsp.exec_cmd('brightnessctl s 1%+ && echo true > /home/rafayahmad/dotfiles/.config/eww/brightnessShow'), { repeating = true, locked = true })
|
||||||
hl.bind('code:232', hl.dsp.exec_cmd('brightnessctl s 1%- && echo true > /home/rafayahmad/dotfiles/.config/eww/brightnessShow'), { repeating = true, locked = true })
|
hl.bind('XF86MonBrightnessDown', hl.dsp.exec_cmd('brightnessctl s 1%- && echo true > /home/rafayahmad/dotfiles/.config/eww/brightnessShow'), { repeating = true, locked = true })
|
||||||
|
|
||||||
|
|
||||||
-- Window movement
|
-- Window movement
|
||||||
|
|
@ -130,6 +130,6 @@ hl.bind('SUPER + mouse:272', hl.dsp.window.drag(), { mouse = true })
|
||||||
hl.bind('ALT + mouse:272', hl.dsp.window.resize(), { mouse = true })
|
hl.bind('ALT + mouse:272', hl.dsp.window.resize(), { mouse = true })
|
||||||
|
|
||||||
-- Shutdown/Reboot
|
-- Shutdown/Reboot
|
||||||
hl.bind('SUPER + M', hl.dsp.exit)
|
hl.bind('SUPER + M', hl.dsp.exit())
|
||||||
hl.bind('CTRL + ALT + Z', hl.dsp.exec_cmd('reboot'))
|
hl.bind('CTRL + ALT + Z', hl.dsp.exec_cmd('reboot'))
|
||||||
hl.bind('CTRL + ALT + X', hl.dsp.exec_cmd('shutdown now'))
|
hl.bind('CTRL + ALT + X', hl.dsp.exec_cmd('shutdown now'))
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,12 @@ xkb_keymap {
|
||||||
modifier_map Mod3 { <PAUS> };
|
modifier_map Mod3 { <PAUS> };
|
||||||
|
|
||||||
key <CAPS> { [ Escape ] };
|
key <CAPS> { [ Escape ] };
|
||||||
|
|
||||||
|
key <I121> { [ XF86AudioMute ] };
|
||||||
|
key <I122> { [ XF86AudioLowerVolume ] };
|
||||||
|
key <I123> { [ XF86AudioRaiseVolume ] };
|
||||||
|
key <I232> { [ XF86MonBrightnessDown ] };
|
||||||
|
key <I233> { [ XF86MonBrightnessUp ] };
|
||||||
|
|
||||||
};
|
};
|
||||||
xkb_geometry { include "pc(pc105)" };
|
xkb_geometry { include "pc(pc105)" };
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,5 @@
|
||||||
format = ssh
|
format = ssh
|
||||||
[commit]
|
[commit]
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
|
[gpg "ssh"]
|
||||||
|
allowedSignersFile = /home/rafayahmad/.ssh/allowed_signers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue