updates
This commit is contained in:
1 parent
74133b54bc
commit
54aa46982b
1 file changed
-67
@@ -1,67 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Keyhints. Idea got from Garuda Hyprland
|
||||
|
||||
# Detect monitor resolution and scale
|
||||
x_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .width')
|
||||
y_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .height')
|
||||
hypr_scale=$(hyprctl -j monitors | jq '.[] | select (.focused == true) | .scale' | sed 's/\.//')
|
||||
|
||||
# Calculate width and height based on percentages and monitor resolution
|
||||
width=$((x_mon * hypr_scale / 100))
|
||||
height=$((y_mon * hypr_scale / 100))
|
||||
|
||||
# Set maximum width and height
|
||||
max_width=1200
|
||||
max_height=1000
|
||||
|
||||
# Set percentage of screen size for dynamic adjustment
|
||||
percentage_width=70
|
||||
percentage_height=70
|
||||
|
||||
# Calculate dynamic width and height
|
||||
dynamic_width=$((width * percentage_width / 100))
|
||||
dynamic_height=$((height * percentage_height / 100))
|
||||
|
||||
# Limit width and height to maximum values
|
||||
dynamic_width=$(($dynamic_width > $max_width ? $max_width : $dynamic_width))
|
||||
dynamic_height=$(($dynamic_height > $max_height ? $max_height : $dynamic_height))
|
||||
|
||||
# Launch yad with calculated width and height
|
||||
yad --width=$dynamic_width --height=$dynamic_height \
|
||||
--center \
|
||||
--title="Keybindings" \
|
||||
--no-buttons \
|
||||
--list \
|
||||
--column=Key: \
|
||||
--column=Description: \
|
||||
--column=Command: \
|
||||
--timeout-indicator=bottom \
|
||||
"ESC" "close this app" "" "=" "SUPER KEY (Windows Key)" "(SUPER KEY)" \
|
||||
" enter" "Terminal" "(kitty)" \
|
||||
"SHIFT ALT enter" "DropDown Terminal" "(kitty-pyprland)" \
|
||||
" D" "App Launcher" "(rofi-wayland)" \
|
||||
" E" "Open File Manager" "(Thunar)" \
|
||||
" C" "close active window" "(not kill)" \
|
||||
" Shift C " "closes a specified window" "(window)" \
|
||||
" ," "Desktop Zoom" "(pyprland)" \
|
||||
"SHIFT Alt C" "Clipboard Manager" "(cliphist)" \
|
||||
" W" "Choose wallpaper" "(Wallpaper Menu)" \
|
||||
" Shift W" "Choose wallpaper effects" "(imagemagick + swww)" \
|
||||
"SHIFT ALT W" "Random wallpaper" "(via swww)" \
|
||||
" H" "Hide/UnHide Waybar" "waybar" \
|
||||
" ALT R" "Reload Waybar swaync Rofi" "CHECK NOTIFICATION FIRST!!!" \
|
||||
" Print" "screenshot" "(grim)" \
|
||||
" Z" "screenshot region" "(grim + slurp)" \
|
||||
"CTRL ALT P" "power-menu" "(wlogout)" \
|
||||
"CTRL ALT L" "screen lock" "(hyprlock)" \
|
||||
"CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \
|
||||
" SHIFT Space" "Fullscreen" "Toggles to full screen" \
|
||||
" Space" "Toggle Dwindle | Master Layout" "Hyprland Layout" \
|
||||
" Shift F" "Toggle float" "single window" \
|
||||
" ALT F" "Toggle all windows to float" "all windows" \
|
||||
" Shift B" "Toggle Blur" "normal or less blur" \
|
||||
" SHIFT G" "Gamemode! All animations OFF or ON" "toggle" \
|
||||
" ALT E" "Rofi Emoticons" "Emoticon" \
|
||||
" F1" "Launch this app" "" \
|
||||
"SHIFT ALT E" "View or EDIT Keybinds, Settings, Monitor" "" \
|
||||
"" "" "" \
|
||||
Reference in new issue
Block a user