diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-18 12:02:26 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-18 12:02:26 +0200 |
| commit | 8dd9f20eb37479a2c6d9dc3230eb653577910dce (patch) | |
| tree | f71ab38959180842593718e0b1a38753de574b3e | |
| parent | 21fa486da1b07131518eb9fa742dd29f3ab1320c (diff) | |
| download | rofi-scripts-8dd9f20eb37479a2c6d9dc3230eb653577910dce.tar.gz rofi-scripts-8dd9f20eb37479a2c6d9dc3230eb653577910dce.zip | |
feat(powermenu): always open on DP-1
Both the menu and its confirm step pass -m DP-1, as the launcher does,
so they land on the wide monitor whichever one has focus.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rwxr-xr-x | bin/udt-powermenu.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/udt-powermenu.sh b/bin/udt-powermenu.sh index 6d8fb84..1892ef2 100755 --- a/bin/udt-powermenu.sh +++ b/bin/udt-powermenu.sh @@ -27,9 +27,9 @@ sleep='' yes='' no='' -# Rofi CMD +# Rofi CMD. Both prompts always open on DP-1, whichever monitor has focus. rofi_cmd() { - rofi -dmenu \ + rofi -dmenu -m DP-1 \ -p "'ndi vidimu ${USER}" \ -mesg "Uptime: $uptime" \ -theme ${dir}/${theme}.rasi @@ -37,7 +37,7 @@ rofi_cmd() { # Confirmation CMD confirm_cmd() { - rofi -dmenu \ + rofi -dmenu -m DP-1 \ -p 'Confirmation' \ -selected-row 1 \ -mesg 'Simu Sicuri?' \ |
