From 6abd35ff0705406aabc827ce423d28ade6040c1b Mon Sep 17 00:00:00 2001 From: Mosder Date: Thu, 6 Nov 2025 03:35:21 +0100 Subject: laptop - wezterm --- laptop/.config/hypr/hyprland.conf | 4 +++- laptop/.config/hypr/scripts/zoom.sh | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 laptop/.config/hypr/scripts/zoom.sh (limited to 'laptop/.config/hypr') diff --git a/laptop/.config/hypr/hyprland.conf b/laptop/.config/hypr/hyprland.conf index f530b80..25a6869 100644 --- a/laptop/.config/hypr/hyprland.conf +++ b/laptop/.config/hypr/hyprland.conf @@ -7,7 +7,7 @@ $scriptsDir = $HOME/.config/hypr/scripts $logFile = $HOME/.hypr.log $browser = brave -$terminal = konsole +$terminal = wezterm $fileManager = thunar $menu = wofi @@ -58,6 +58,7 @@ env = __GLX_VENDOR_LIBRARY_NAME,nvidia env = XCURSOR_SIZE,24 env = HYPRCURSOR_SIZE,24 +env = MAX_ZOOM,3 ################### @@ -250,6 +251,7 @@ bind = ALT, Print, exec, $scriptsDir/capture-window.sh bind = $mainMod SHIFT, P, exec, hyprpicker -a bind = $mainMod, L, exec, hyprlock bind = $mainMod, N, exec, dunstctl close-all +bind = $mainMod SHIFT, M, exec, $scriptsDir/zoom.sh # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l diff --git a/laptop/.config/hypr/scripts/zoom.sh b/laptop/.config/hypr/scripts/zoom.sh new file mode 100755 index 0000000..433f899 --- /dev/null +++ b/laptop/.config/hypr/scripts/zoom.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +ZOOM=$(hyprctl getoption cursor:zoom_factor | grep float | awk -F" " '{print $2}') +ZOOM=$(echo "scale=0; ($ZOOM+1)/1" | bc) +if [[ $ZOOM -gt $MAX_ZOOM ]]; then + ZOOM=1 +fi + +hyprctl -q keyword cursor:zoom_factor $ZOOM -- cgit v1.2.3