diff options
Diffstat (limited to 'bin/udt-powermenu.sh')
| -rwxr-xr-x | bin/udt-powermenu.sh | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/bin/udt-powermenu.sh b/bin/udt-powermenu.sh index a8524b4..6d8fb84 100755 --- a/bin/udt-powermenu.sh +++ b/bin/udt-powermenu.sh @@ -35,25 +35,13 @@ rofi_cmd() { -theme ${dir}/${theme}.rasi } -# Confirmation glyph size follows the focused monitor, as in -# qar-scrotmenu.sh: a quarter of the smaller of half-width and height, with -# 90/270 degree rotations (odd transforms) swapping width and height. -confirm_size() { - hyprctl monitors -j | jq -r '.[] | select(.focused) | .scale as $s - | (if .transform % 2 == 1 then [.height, .width] else [.width, .height] end) - | [.[0] / 2, .[1]] | min / $s / 4 | floor' 2>/dev/null -} - # Confirmation CMD confirm_cmd() { - local size - size=$(confirm_size) rofi -dmenu \ -p 'Confirmation' \ -selected-row 1 \ -mesg 'Simu Sicuri?' \ - -theme "$HOME/.config/rofi/udt/confirm.rasi" \ - -theme-str "element-text { font: \"Inconsolata Nerd Font Mono ${size:-135}\"; }" + -theme "$HOME/.config/rofi/udt/confirm.rasi" } # Ask for confirmation |
