From 595fecd6cddda71215ca6d0a0ce3386295e090c4 Mon Sep 17 00:00:00 2001 From: Sense T Date: Tue, 27 Jun 2023 20:58:27 +0800 Subject: [PATCH] update some --- home/user/config/waybar.nix | 2 +- home/user/files/hyprland.conf | 7 +++++++ home/user/home.nix | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/home/user/config/waybar.nix b/home/user/config/waybar.nix index f3de3f0..19efd7b 100644 --- a/home/user/config/waybar.nix +++ b/home/user/config/waybar.nix @@ -24,7 +24,7 @@ scroll-step = 5; format = "{icon} {volume}%"; format-muted = "{icon} {volume}%"; - on-click ="pactl set-sink-mute @DEFAULT_SINK@ toggle"; # wpctl? + on-click ="wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; # wpctl? format-icons = { default = ["" "" ""]; }; diff --git a/home/user/files/hyprland.conf b/home/user/files/hyprland.conf index 5ba5872..eb1c8c7 100644 --- a/home/user/files/hyprland.conf +++ b/home/user/files/hyprland.conf @@ -156,6 +156,13 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10 bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 +# XF86Keys +bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle +bind = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%- +bind = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SOURCE@ 5%+ +bind = , XF86MonBrightnessUP, exec, light -A 5 +bind = , XF86MonBrightnessDown, exec, light -U 5 + # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow \ No newline at end of file diff --git a/home/user/home.nix b/home/user/home.nix index 0ef67c6..3531b0e 100644 --- a/home/user/home.nix +++ b/home/user/home.nix @@ -28,7 +28,7 @@ top = "btop"; ls = "ls --color=auto"; cat = "bat -p --paging=never -u"; - diff="icdiff"; + diff = "icdiff"; }; file = {