From ce7d4b8cc69ebbbb72dcbe60283e512915408ff9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 26 Dec 2023 19:37:19 +0100 Subject: wayfire: add bindings for volume and brightness --- wayfire/wayfire.ini | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/wayfire/wayfire.ini b/wayfire/wayfire.ini index add5b78..d37d810 100644 --- a/wayfire/wayfire.ini +++ b/wayfire/wayfire.ini @@ -53,10 +53,20 @@ binding_0 = KEY_ENTER binding_1 = KEY_P binding_2 = KEY_F2 binding_3 = KEY_X +binding_4 = KEY_BRIGHTNESSUP +binding_5 = KEY_BRIGHTNESSDOWN +binding_6 = KEY_MUTE +binding_7 = KEY_VOLUMEDOWN +binding_8 = KEY_VOLUMEUP command_0 = alacritty command_1 = xfce4-appfinder command_2 = xfrun4 command_3 = swaylock -c 000000 +command_4 = brightnessctl set +10% +command_5 = brightnessctl set 10%- +command_6 = pactl set-sink-mute @DEFAULT_SINK@ toggle +command_7 = sh -c "pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ -5%" +command_8 = sh -c "pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ +5%" [core] background_color = \#1A1A1AFF @@ -65,7 +75,7 @@ focus_button_with_modifiers = false focus_buttons = BTN_LEFT | BTN_MIDDLE | BTN_RIGHT focus_buttons_passthrough = true max_render_time = -1 -plugins = alpha animate autostart command decoration expo fast-switcher fisheye grid move oswitch place resize vswitch window-rules wrot wayfire-shell ipc gtk-shell foreign-toplevel xdg-activation +plugins = alpha animate autostart command expo fast-switcher fisheye grid move oswitch place resize vswitch window-rules wrot wayfire-shell ipc gtk-shell foreign-toplevel xdg-activation decoration preferred_decoration_mode = client transaction_timeout = 100 vheight = 3 @@ -90,12 +100,12 @@ speed_zoom = 0.070000 zoom = 0.100000 [decoration] -active_color = \#222222FF +active_color = \#555555FF border_size = 4 button_order = minimize maximize close font = sans-serif ignore_views = none -inactive_color = \#555555FF +inactive_color = \#222222FF title_height = 30 [dock] @@ -330,10 +340,6 @@ binding_last = binding_left = KEY_LEFT binding_right = KEY_RIGHT binding_up = KEY_UP -with_win_down = KEY_DOWN -with_win_left = KEY_LEFT -with_win_right = KEY_RIGHT -with_win_up = KEY_UP duration = 300 gap = 20 send_win_down = @@ -341,6 +347,11 @@ send_win_last = send_win_left = send_win_right = send_win_up = +with_win_down = KEY_DOWN +with_win_last = +with_win_left = KEY_LEFT +with_win_right = KEY_RIGHT +with_win_up = KEY_UP wraparound = false [wayfire-shell] -- cgit v1.2.3