From 37621cd7022def07144a6febf3daef01fb9e1f10 Mon Sep 17 00:00:00 2001 From: elkowar Date: Tue, 26 Nov 2024 10:01:06 +0100 Subject: [PATCH] waybar as default, brightness keys --- niri/.config/niri/config.kdl | 6 +++++- waybar/.config/waybar/config.jsonc | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/niri/.config/niri/config.kdl b/niri/.config/niri/config.kdl index ce08fb1..5ccd578 100644 --- a/niri/.config/niri/config.kdl +++ b/niri/.config/niri/config.kdl @@ -23,6 +23,7 @@ input { } trackpoint { accel-speed -0.1 + //accel-speed -0.1 } //warp-mouse-to-focus focus-follows-mouse max-scroll-amount="20%" @@ -93,7 +94,7 @@ spawn-at-startup "wl-clip-persist" "--clipboard" "regular" spawn-at-startup "kdeconnect-indicator" // spawn-at-startup "bash" "-c" "swaybg -m fill -i ~/wallpapers/green_leaves.jpg" -spawn-at-startup "cosmic-panel" +spawn-at-startup "waybar" spawn-at-startup "~/.config/niri/clipsync watch with-notifications" spawn-at-startup // @@ -190,6 +191,9 @@ binds { XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } + XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "5%+"; } + XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "5%-"; } + Mod+Shift+Q { close-window; } Mod+H { focus-column-or-monitor-left; } diff --git a/waybar/.config/waybar/config.jsonc b/waybar/.config/waybar/config.jsonc index 02bc54c..e07637a 100644 --- a/waybar/.config/waybar/config.jsonc +++ b/waybar/.config/waybar/config.jsonc @@ -193,8 +193,8 @@ "", "" ], - "on-scroll-up": "brightnessctl s 5%+", - "on-scroll-down": "brightnessctl s 1%-", + "on-scroll-up": "brightnessctl s 2%+", + "on-scroll-down": "brightnessctl s 2%-", "on-click-right": "brightnessctl s 1%", "on-click": "brightnessctl s 50%" },