diff options
Diffstat (limited to 'laptop/.config')
| -rw-r--r-- | laptop/.config/hypr/hyprland.conf | 4 | ||||
| -rwxr-xr-x | laptop/.config/hypr/scripts/zoom.sh | 9 | ||||
| -rw-r--r-- | laptop/.config/ranger/rc.conf | 52 |
3 files changed, 63 insertions, 2 deletions
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 diff --git a/laptop/.config/ranger/rc.conf b/laptop/.config/ranger/rc.conf index 9d97920..826d170 100644 --- a/laptop/.config/ranger/rc.conf +++ b/laptop/.config/ranger/rc.conf @@ -23,6 +23,57 @@ # Show hidden files? You can toggle this by typing 'zh' set show_hidden true +# Use one of the supported image preview protocols +set preview_images true + +# Set the preview image method. Supported methods: +# +# * w3m (default): +# Preview images in full color with the external command "w3mimgpreview"? +# This requires the console web browser "w3m" and a supported terminal. +# It has been successfully tested with "xterm" and "urxvt" without tmux. +# +# * iterm2: +# Preview images in full color using iTerm2 image previews +# (http://iterm2.com/images.html). This requires using iTerm2 compiled +# with image preview support. +# +# This feature relies on the dimensions of the terminal's font. By default, a +# width of 8 and height of 11 are used. To use other values, set the options +# iterm2_font_width and iterm2_font_height to the desired values. +# +# * terminology: +# Previews images in full color in the terminology terminal emulator. +# Supports a wide variety of formats, even vector graphics like svg. +# +# * sixel: +# Previews images using the SIXEL protocol. This requires "imagemagick". +# +# * urxvt: +# Preview images in full color using urxvt image backgrounds. This +# requires using urxvt compiled with pixbuf support. +# +# * urxvt-full: +# The same as urxvt but utilizing not only the preview pane but the +# whole terminal window. +# +# * kitty: +# Preview images in full color using kitty image protocol. +# Requires python PIL or pillow library. +# If ranger does not share the local filesystem with kitty +# the transfer method is changed to encode the whole image; +# while slower, this allows remote previews, +# for example during an ssh session. +# Any terminal supporting the Kitty graphics protocol should work automatically. +# Note that the Kitty graphics protocol does not work from inside a tmux +# session, so tmux is unsupported. +# +# * ueberzug: +# Preview images in full color with the external command "ueberzug". +# Images are shown by using a child window. +# Only for users who run X11 in GNU/Linux. +set preview_images_method iterm2 + # Ask for a confirmation when running the "delete" command? # Valid values are "always", "never", "multiple" (default) # With "multiple", ranger will ask only if you delete multiple files at once. @@ -33,4 +84,3 @@ set confirm_on_delete never # Outline draws a box around all the columns. # Both combines the two. set draw_borders separators - |
