aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRichard Ayotte <[email protected]>2024-09-08 17:04:07 -0400
committerGitHub <[email protected]>2024-09-08 22:04:07 +0100
commit7c4c402bd7f24241c096d809cc80408a469f15cb (patch)
tree4bccaa3ddf4145648adba52c5cb2d515a430f626
parent6179b17903647d7659749f9f7c79bb9aff97a806 (diff)
downloadHyprland-7c4c402bd7f24241c096d809cc80408a469f15cb.tar.gz
Hyprland-7c4c402bd7f24241c096d809cc80408a469f15cb.zip
config: include XF86Audio* key bindings to default cfg (#7695)
-rw-r--r--example/hyprland.conf13
-rw-r--r--src/config/defaultConfig.hpp14
2 files changed, 19 insertions, 8 deletions
diff --git a/example/hyprland.conf b/example/hyprland.conf
index 1179a274..4adc2d40 100644
--- a/example/hyprland.conf
+++ b/example/hyprland.conf
@@ -59,7 +59,7 @@ env = HYPRCURSOR_SIZE,24
# Refer to https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Variables/#general
-general {
+general {
gaps_in = 5
gaps_out = 20
@@ -70,7 +70,7 @@ general {
col.inactive_border = rgba(595959aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
- resize_on_border = false
+ resize_on_border = false
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
@@ -96,7 +96,7 @@ decoration {
enabled = true
size = 3
passes = 1
-
+
vibrancy = 0.1696
}
}
@@ -129,7 +129,7 @@ master {
}
# https://wiki.hyprland.org/Configuring/Variables/#misc
-misc {
+misc {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
}
@@ -236,6 +236,11 @@ bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
+# Requires playerctl
+bindl = , XF86AudioNext, exec, playerctl next
+bindl = , XF86AudioPause, exec, playerctl play-pause
+bindl = , XF86AudioPlay, exec, playerctl play-pause
+bindl = , XF86AudioPrev, exec, playerctl previous
##############################
### WINDOWS AND WORKSPACES ###
diff --git a/src/config/defaultConfig.hpp b/src/config/defaultConfig.hpp
index b8d215d1..5843caa3 100644
--- a/src/config/defaultConfig.hpp
+++ b/src/config/defaultConfig.hpp
@@ -72,7 +72,7 @@ env = HYPRCURSOR_SIZE,24
# Refer to https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Variables/#general
-general {
+general {
gaps_in = 5
gaps_out = 20
@@ -83,7 +83,7 @@ general {
col.inactive_border = rgba(595959aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
- resize_on_border = false
+ resize_on_border = false
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
@@ -109,7 +109,7 @@ decoration {
enabled = true
size = 3
passes = 1
-
+
vibrancy = 0.1696
}
}
@@ -142,7 +142,7 @@ master {
}
# https://wiki.hyprland.org/Configuring/Variables/#misc
-misc {
+misc {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
}
@@ -249,6 +249,12 @@ bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
+# Requires playerctl
+bindl = , XF86AudioNext, exec, playerctl next
+bindl = , XF86AudioPause, exec, playerctl play-pause
+bindl = , XF86AudioPlay, exec, playerctl play-pause
+bindl = , XF86AudioPrev, exec, playerctl previous
+
##############################
### WINDOWS AND WORKSPACES ###
##############################