Hyprland config formatting
This commit is contained in:
parent
f7cae059be
commit
c22af8b1cd
1 changed files with 30 additions and 17 deletions
|
|
@ -64,9 +64,9 @@ end)
|
|||
|
||||
-- Environment variables stored in ~/.config/uwsm/env and ~/.config/uwsm/env-hyprland
|
||||
|
||||
---------------------
|
||||
--- LOOK AND FEEL ---
|
||||
---------------------
|
||||
----------------
|
||||
--- SETTINGS ---
|
||||
----------------
|
||||
|
||||
-- Refer to https://wiki.hypr.land/Configuring/Basics/Variables
|
||||
|
||||
|
|
@ -180,6 +180,10 @@ hl.config({
|
|||
}
|
||||
})
|
||||
|
||||
---------------
|
||||
--- DEVICES ---
|
||||
---------------
|
||||
|
||||
-- https://wiki.hypr.land/Configuring/Basics/Variables/#per-device-input-config
|
||||
|
||||
hl.device({
|
||||
|
|
@ -283,13 +287,16 @@ hl.bind("SUPER + SHIFT + F", hl.dsp.window.fullscreen({ mode = "fullscreen" }))
|
|||
-- Hyprlock
|
||||
hl.bind("SUPER + CTRL + ALT + L", hl.dsp.exec_cmd(hyprlock))
|
||||
-- Cliphist
|
||||
hl.bind("SUPER + V", hl.dsp.exec_cmd("pkill fuzzel || cliphist list | uwsm-app -- fuzzel -d -w 75 --select-index 1 | cliphist decode | wl-copy"))
|
||||
hl.bind("SUPER + V",
|
||||
hl.dsp.exec_cmd(
|
||||
"pkill fuzzel || cliphist list | uwsm-app -- fuzzel -d -w 75 --select-index 1 | cliphist decode | wl-copy"))
|
||||
-- Hyprshot
|
||||
hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd(hyprshot .. "-m region --clipboard-only"))
|
||||
hl.bind("SUPER + SHIFT + CTRL + S", hl.dsp.exec_cmd(hyprshot .. "-m window --clipboard-only"))
|
||||
hl.bind("SUPER + SHIFT + ALT + S", hl.dsp.exec_cmd(hyprshot .. "-m output --clipboard-only"))
|
||||
hl.bind("SUPER + SHIFT + B",
|
||||
hl.dsp.exec_cmd("pkill fuzzel || bluetoothctl -- connect \"$(bluetoothctl -- devices Paired | cut -f2- -d ' ' | uwsm-app -- fuzzel -d -l 8 | cut -f1 -d ' ')\""))
|
||||
hl.dsp.exec_cmd(
|
||||
"pkill fuzzel || bluetoothctl -- connect \"$(bluetoothctl -- devices Paired | cut -f2- -d ' ' | uwsm-app -- fuzzel -d -l 8 | cut -f1 -d ' ')\""))
|
||||
hl.bind("SUPER + SHIFT + A", hl.dsp.exec_cmd("sh ~/scripts/select-audio-sink.sh"))
|
||||
|
||||
-- Move focus
|
||||
|
|
@ -331,10 +338,16 @@ end
|
|||
hl.bind("SUPER + SHIFT + CTRL + TAB", hl.dsp.workspace.move({ monitor = "+1" }))
|
||||
|
||||
-- Laptop multimedia keys for volume and LCD brightness
|
||||
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ && ~/scripts/volume-control.sh"), { locked = true, repeating = true })
|
||||
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- && ~/scripts/volume-control.sh"), { locked = true, repeating = true })
|
||||
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && ~/scripts/volume-control.sh"), { locked = true, repeating = true })
|
||||
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true, repeating = true })
|
||||
hl.bind("XF86AudioRaiseVolume",
|
||||
hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ && ~/scripts/volume-control.sh"),
|
||||
{ locked = true, repeating = true })
|
||||
hl.bind("XF86AudioLowerVolume",
|
||||
hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- && ~/scripts/volume-control.sh"),
|
||||
{ locked = true, repeating = true })
|
||||
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && ~/scripts/volume-control.sh"),
|
||||
{ locked = true, repeating = true })
|
||||
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"),
|
||||
{ locked = true, repeating = true })
|
||||
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl s 5%+"), { locked = true, repeating = true })
|
||||
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl s 5%-"), { locked = true, repeating = true })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue