diff options
| author | ryukamish <[email protected]> | 2026-06-02 12:41:18 +0530 |
|---|---|---|
| committer | ryukamish <[email protected]> | 2026-06-02 12:41:18 +0530 |
| commit | 7ace5532ea2fb1ad35890843d5e7de1edac22e70 (patch) | |
| tree | 0a1a44bb22653775fa4267ab4a0c79a3f534f753 /scripts | |
| parent | b3e31df862b4f37084957c4f29abb737547067ec (diff) | |
fix: rofi popup dynamically adjusts relative to screen size
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/rofi-menu | 8 | ||||
| -rwxr-xr-x | scripts/rofi-powermenu | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/rofi-menu b/scripts/rofi-menu index 92de47a..28586a7 100755 --- a/scripts/rofi-menu +++ b/scripts/rofi-menu @@ -1,13 +1,13 @@ #!/usr/bin/env bash -menu_args=$(printf '%b' ' Files\n Install\n Change Wallpaper\n Record Screen\n Remove\n Update' | rofi -dmenu -p " Options: " -i -theme-str "window {width: 20em;}") +menu_args=$(printf '%b' ' Files\n Install\n Change Wallpaper\n Record Screen\n Remove\n Update' | rofi -dmenu -p " Options: " -i -theme-str "window {width: 24%;}") case "$menu_args" in *Files) - rofi -show recursivebrowser -theme-str 'window {width: 42em;} listview {lines: 8;}' + rofi -show recursivebrowser -theme-str 'window {width: 50%;} listview {lines: 8;}' ;; *Install) - install_args=$(printf '%b' ' Pacman\n AUR\n TUI' | rofi -dmenu -p " Install: " -i -theme-str "window {width: 20em;}") + install_args=$(printf '%b' ' Pacman\n AUR\n TUI' | rofi -dmenu -p " Install: " -i -theme-str "window {width: 24%;}") case "$install_args" in *Pacman) ~/.local/bin/terminal-floating ~/.local/bin/pkg-install @@ -36,7 +36,7 @@ case "$menu_args" in ~/.local/bin/niriwall ;; *Record\ Screen) - record_args=$(printf '%b' ' Display\n Display + Audio\n Webcam + Audio\n Region\n Region + Audio' | rofi -dmenu -p " Record: " -i -theme-str "window {width: 20em;}") + record_args=$(printf '%b' ' Display\n Display + Audio\n Webcam + Audio\n Region\n Region + Audio' | rofi -dmenu -p " Record: " -i -theme-str "window {width: 24%;}") case "$record_args" in *Display) ~/.local/bin/screenrecord output diff --git a/scripts/rofi-powermenu b/scripts/rofi-powermenu index d7c2927..47b929c 100755 --- a/scripts/rofi-powermenu +++ b/scripts/rofi-powermenu @@ -1,7 +1,7 @@ #!/usr/bin/env bash power_args=$(printf '%b' ' Lock\nLogout\n Restart\n Suspend\n Hibernate\n Shutdown' | - rofi -dmenu -p "" -i -theme-str 'window {width: 12em; padding: 2px; height: 16em;}') + rofi -dmenu -p "" -i -theme-str 'window {width: 16%; padding: 2px; height: 40%;}') _have_cmd() { command -v "$1" &>/dev/null |
