Closed bendem closed 7 years ago
Very weird, esp. the i3 restart magically fixes things.
I cannot reproduce here..
can you pastebin: xrandr --listmonitors when it goes wrong.
Will do next time it happens (it'll be the full xrandr
output, --listmonitors
is not a thing on the version I'm on [1.4.3]).
This happened again today after switching my monitor's position.
Here is the output of xrandr
:
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 293mm x 165mm
1920x1080 60.05*+
1400x1050 59.98
1600x900 60.00
1280x1024 60.02
1280x960 60.00
1368x768 60.00
1280x720 60.00
1024x768 60.00
1024x576 60.00
960x540 60.00
800x600 60.32 56.25
864x486 60.00
640x480 59.94
720x405 60.00
640x360 60.00
HDMI1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 597mm x 336mm
1920x1080 60.00*+ 50.00 59.94 24.00 23.98
1920x1080i 60.00 50.00 59.94
1600x1200 60.00
1680x1050 59.88
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.90
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.08 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x576i 50.00
720x480 60.00 59.94
720x480i 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
hmm it happens when changing the monitor layout.. Ill test that at home/work where I have dual mon.
hmmm switching screens on and off, clone, swap and more did not reproduce this.
I have something similar with my herbstluftwm setup (3 monitors, setup with xrandr). Every time I open rofi (run and window mode) it is stretched over all 3 monitors (location 0). I assume it uses the total size of all screens (5280 x 1080) to calculate its position.
xrandr:
Screen 0: minimum 320 x 200, current 5280 x 1080, maximum 16384 x 16384
DisplayPort-0 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 473mm x 296mm
1680x1050 59.95*+
1600x1200 60.00
1280x1024 75.02 60.02
1440x900 74.98 59.90
1152x864 75.00
1024x768 75.08 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 60.00
720x400 70.08
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+3360+0 (normal left inverted right x axis y axis) 800mm x 450mm
1280x768 59.99 +
1920x1080 60.00* 50.00 59.94 30.00 25.00 24.00 29.97 23.98
1920x1080i 60.00 50.00 59.94
1280x1024 75.02 60.02
1360x768 60.02
1280x720 60.00 50.00 59.94
1024x768 75.08 60.00
800x600 75.00 60.32
720x576 50.00
720x576i 50.00
720x480 60.00 59.94
720x480i 60.00 59.94
640x480 75.00 60.00 59.94
DVI-0 connected 1680x1050+1680+0 (normal left inverted right x axis y axis) 473mm x 296mm
1680x1050 59.95*+
1600x1200 60.00
1280x1024 75.02 60.02
1440x900 74.98 59.90
1152x864 75.00
1024x768 75.08 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 60.00
720x400 70.08
Interesting. What version of rofi? does it always happen? or sporadically (as in bug report). What distro and version of herbstlufwm? (wonder if switching from xinerama to querying xrandr might improve things).
Rofi version: 1.0.0 (happened in the RC1 as well, I believe it didn't happen in the latest 0.x version) Herbstluftwm version: 0.7.0 Distro: Exherbo
And for me it happens every time I call rofi, not sporadically.
Can you paste the output of https://github.com/DaveDavenport/xininfo?
$ xininfo -print
Total size: 3840 1080
Num. monitors: 2
0: 0 0 -> 1920 1080
1: 1920 0 -> 1920 1080
Active mon: 1
1932-12
[flocke@toybox xininfo]# ./xininfo -print
Total size: 5280 1080
Num. monitors: 3
0: 0 0 -> 1680 1050
1: 3360 0 -> 1920 1080
2: 1680 0 -> 1680 1050
Active mon: 0
5-21
Edit: Here is what it looks like: http://shadowice.org/~flocke/images/misc/2016-04-18-192319_5280x1080_scrot.png
Edit2: Ok, I just noticed it is not always stretched over all monitors. Only when I run it from herbstluftwm tag 1 ("Main" in my screenshot), regardless on which monitor the tag is.
So the right size is exposed via xinerama. I guess I have to install autumnairwm.
It's really strange, I found 3 cases by now: When I run rofi from ...
I will play around a little bit more and report back.
Having similar problem. I'm using openbox and have dual monitor setup. Primary monitor is set where mouse pointer is. And rofi after upgrade appears only on "real" primary monitor (the first one). Previous version (0.15.12-1 :P) worked fine. It appeared where my mouse pointer was at the time, like it should.
@purdobol please read manpage, the -m
option..
-m num -monitor num
Select (Xinerama) monitor to display rofi on. Negative numbers are handled differently:
· -1: the currently focused monitor.
· -2: the currently focused window (i.e. rofi will be displayed on top of the focused window).
· -3: Position at mouse (still follows the location setting, use -location 1 to get normal context menu behaviour.)
Default: -1
Behavior in 0.15.12 actually did not match up documentation.
(using mouse pointer to see active monitor is fallback mode, I guess we could add this as option. Please make a separate issue for this.)
Thanks. It's working with -2 option. And sorry. Thought those issues are related.
n.p.
Does this issue still exists? any more information on this?
I can't say, I've not been using linux much lately.
Please re-open if still an issue. (I notice on i3 sometimes does weird things on hot-plugging monitors, i3-restart fixes this.. seems to be i3 passing wrong info.)
Found similar problems with i3 and xrandr; restarting i3 fixes every time. Perhaps this could be added to the FAQ, as I suspect a lot of i3 users using Rofi? (and apologies to reopen an old thread)
@2e0byo did you try with latest git? maybe above fix, fixes this.
I have been using rofi again for a few months and I have not encountered that problem again.
➜ rofi -version
Version: 1.4.2-80-git-74106921-dirty (next)
➜ i3 -version
i3 version 4.14.1 (2017-09-24) © 2009 Michael Stapelberg and contributors
➜ xrandr --version
xrandr program version 1.5.0
Server reports RandR version 1.5
Sorry for the delay...
Confirm this is still happening for me with latest rofi (Version: 1.4.2-130-git-43127f83 (next)). As a workaround I just have
xrandr --output DVI-0 --auto --output VGA-0 --auto --right-of DVI-0 i3-msg reload
in my .xinitrc, which is perfectly useable. After reload rofi behaves properly.
John
On Sun 05 Nov 2017 at 15:19, Dave Davenport wrote:
@2e0byo did you try with latest git? maybe above fix, fixes this.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Still happening on Kwin, with monitor set to "-1"
can I get the output of rofi -h? when it shows over 2 monitors.
I have the issue of rofi sometimes running on the wrong screen (but never on multiple screen, always in the middle of one screen) with i3 version 4.16.1 and rofi 1.5.1 on Ubuntu 19.04. with rofi.monitor: -1
.
Happens when using two or three screens, I never tried more.
So far it seems like it can be "resolved" by this:
i3-msg restart
)
rofi -h
:
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.
-dump-xresources Dump the current configuration in Xresources format and exit.
-e [string] Show a dialog displaying the passed message and exit.
-markup Enable pango markup where possible.
-normal-window In dmenu mode, behave as a normal window. (experimental)
-show [mode] Show the mode 'mode' and exit. The mode has to be enabled.
-no-lazy-grab Disable lazy grab that, when fail to grab keyboard, does not block but retry later.
-no-plugins Disable loading of external plugins.
-plugin-path Directory used to search for rofi plugins.
-dump-config Dump the current configuration in rasi format and exit.
-dump-theme Dump the current theme in rasi format and exit.
DMENU command line options:
-mesg [string] Print a small user message under the prompt (uses pango markup)
-p [string] Prompt to display left of entry field
-selected-row [integer] Select row
-format [string] Output format string
s
-u [list] List of row indexes to mark urgent
-a [list] List of row indexes to mark active
-l [integer] Number of rows to display
-i Set filter to be case insensitive
-only-match Force selection or custom entry
-no-custom Don't accept custom entry
-select [string] Select the first row that matches
-password Do not show what the user inputs. Show '*' instead.
-markup-rows Allow and render pango markup as input data.
-sep [char] Element separator.
'\n'
-input [filename] Read input from file instead from standard input.
-sync Force dmenu to first read all input data, then show dialog.
-async-pre-read [number] Read several entries blocking before switching to async mode
25
-w windowid Position over window with X11 windowid.
Global options:
-modi [string] Enabled modi
window,run,ssh (Default)
-width [number] Window width
50 (Default)
-lines [number] Number of lines
10 (File)
-columns [number] Number of columns
1 (Default)
-font [string] Font to use
mono 12 (Default)
-bw [number] Border width
1 (Default)
-location [number] Location on screen
0 (Default)
-padding [number] Padding
5 (Default)
-yoffset [number] Y-offset relative to location
0 (Default)
-xoffset [number] X-offset relative to location
0 (Default)
-[no-]fixed-num-lines Always show number of lines
False (File)
-[no-]show-icons Whether to load and show icons
True (File)
-terminal [string] Terminal to use
rofi-sensible-terminal (Default)
-ssh-client [string] Ssh client to use
ssh (Default)
-ssh-command [string] Ssh command to execute
{terminal} -e {ssh-client} {host} (Default)
-run-command [string] Run command to execute
{cmd} (Default)
-run-list-command [string] Command to get extra run targets
(Default)
-run-shell-command [string] Run command to execute that runs in shell
{terminal} -e {cmd} (Default)
-window-command [string] Command executed on accep-entry-custom for window modus
xkill -id {window} (Default)
-window-match-fields [string] Window fields to match in window mode
all (Default)
-drun-icon-theme [string] Theme to use to look for icons
(unset) (Default)
-drun-match-fields [string] Desktop entry fields to match in drun
name,generic,exec,categories (Default)
-[no-]disable-history Disable history in run/ssh
False (Default)
-[no-]sort Use sorting
False (Default)
-[no-]levenshtein-sort Use levenshtein sorting also for fuzzy matching
False (Default)
-[no-]case-sensitive Set case-sensitivity
False (Default)
-[no-]cycle Cycle through the results list
True (Default)
-[no-]sidebar-mode Enable sidebar-mode
False (Default)
-eh [number] Row height (in chars)
1 (Default)
-[no-]auto-select Enable auto select mode
False (Default)
-[no-]parse-hosts Parse hosts file for ssh mode
False (Default)
-[no-]parse-known-hosts Parse known_hosts file for ssh mode
True (Default)
-combi-modi [string] Set the modi to combine in combi mode
window,run (Default)
-matching [string] Set the matching algorithm. (normal, regex, glob, fuzzy)
normal (Default)
-[no-]tokenize Tokenize input string
True (Default)
-m [string] Monitor id to show on
-1 (Default)
-line-margin [number] Margin between rows *DEPRECATED*
2 (Default)
-line-padding [number] Padding within rows *DEPRECATED*
1 (Default)
-filter [string] Pre-set filter
(unset) (Default)
-separator-style [string] Separator style (none, dash, solid) *DEPRECATED*
dash (Default)
-[no-]hide-scrollbar Hide scroll-bar *DEPRECATED*
False (Default)
-[no-]fullscreen Fullscreen
False (Default)
-[no-]fake-transparency Fake transparency *DEPRECATED*
False (Default)
-dpi [number] DPI
-1 (Default)
-threads [number] Threads to use for string matching
0 (Default)
-scrollbar-width [number] Scrollbar width *DEPRECATED*
8 (Default)
-scroll-method [number] Scrolling method. (0: Page, 1: Centered)
0 (Default)
-fake-background [string] Background to use for fake transparency. (background or screenshot)
screenshot (Default)
-window-format [string] Window Format. w (desktop name), t (title), n (name), r (role), c (class) *DEPRECATED*
{w} {i}{c} {t} (Default)
-[no-]click-to-exit Click outside the window to exit
True (Default)
-[no-]show-match Indicate how it match by underlining it.
True (Default)
-theme [string] New style theme file
~/.config/rofi/themes/Arc-Dark.rasi (File)
-color-normal [string] Color scheme for normal row
(unset) (Default)
-color-urgent [string] Color scheme for urgent row
(unset) (Default)
-color-active [string] Color scheme for active row
(unset) (Default)
-color-window [string] Color scheme window
(unset) (Default)
-max-history-size [number] Max history size (WARNING: can cause slowdowns when set to high).
25 (Default)
-[no-]combi-hide-mode-prefix Hide the prefix mode prefix on the combi view.
False (Default)
-pid [string] Pidfile location
/run/user/1000/rofi.pid (Default)
-display-window [string] The display name of this browser
(unset) (Default)
-display-windowcd [string] The display name of this browser
(unset) (Default)
-display-run [string] The display name of this browser
(unset) (Default)
-display-ssh [string] The display name of this browser
(unset) (Default)
-display-drun [string] The display name of this browser
(unset) (Default)
-display-combi [string] The display name of this browser
(unset) (Default)
-display-keys [string] The display name of this browser
(unset) (Default)
-kb-primary-paste [string] Paste primary selection
Control+V,Shift+Insert (Default)
-kb-secondary-paste [string] Paste clipboard
Control+v,Insert (Default)
-kb-clear-line [string] Clear input line
Control+w (Default)
-kb-move-front [string] Beginning of line
Control+a (Default)
-kb-move-end [string] End of line
Control+e (Default)
-kb-move-word-back [string] Move back one word
Alt+b (Default)
-kb-move-word-forward [string] Move forward one word
Alt+f (Default)
-kb-move-char-back [string] Move back one char
Left,Control+b (Default)
-kb-move-char-forward [string] Move forward one char
Right,Control+f (Default)
-kb-remove-word-back [string] Delete previous word
Control+Alt+h,Control+BackSpace (Default)
-kb-remove-word-forward [string] Delete next word
Control+Alt+d (Default)
-kb-remove-char-forward [string] Delete next char
Delete,Control+d (Default)
-kb-remove-char-back [string] Delete previous char
BackSpace,Control+h (Default)
-kb-remove-to-eol [string] Delete till the end of line
Control+k (Default)
-kb-remove-to-sol [string] Delete till the start of line
Control+u (Default)
-kb-accept-entry [string] Accept entry
Control+j,Control+m,Return,KP_Enter (Default)
-kb-accept-custom [string] Use entered text as command (in ssh/run modi)
Control+Return (Default)
-kb-accept-alt [string] Use alternate accept command.
Shift+Return (Default)
-kb-delete-entry [string] Delete entry from history
Shift+Delete (Default)
-kb-mode-next [string] Switch to the next mode.
Shift+Right,Control+Tab (Default)
-kb-mode-previous [string] Switch to the previous mode.
Shift+Left,Control+ISO_Left_Tab (Default)
-kb-row-left [string] Go to the previous column
Control+Page_Up (Default)
-kb-row-right [string] Go to the next column
Control+Page_Down (Default)
-kb-row-up [string] Select previous entry
Up,Control+p,ISO_Left_Tab (Default)
-kb-row-down [string] Select next entry
Down,Control+n (Default)
-kb-row-tab [string] Go to next row, if one left, accept it, if no left next mode.
Tab (Default)
-kb-page-prev [string] Go to the previous page
Page_Up (Default)
-kb-page-next [string] Go to the next page
Page_Down (Default)
-kb-row-first [string] Go to the first entry
Home,KP_Home (Default)
-kb-row-last [string] Go to the last entry
End,KP_End (Default)
-kb-row-select [string] Set selected item as input text
Control+space (Default)
-kb-screenshot [string] Take a screenshot of the rofi window
Alt+S (Default)
-kb-toggle-case-sensitivity [string] Toggle case sensitivity
grave,dead_grave (Default)
-kb-toggle-sort [string] Toggle sort
Alt+grave (Default)
-kb-cancel [string] Quit rofi
Escape,Control+g,Control+bracketleft (Default)
-kb-custom-1 [string] Custom keybinding 1
Alt+1 (Default)
-kb-custom-2 [string] Custom keybinding 2
Alt+2 (Default)
-kb-custom-3 [string] Custom keybinding 3
Alt+3 (Default)
-kb-custom-4 [string] Custom keybinding 4
Alt+4 (Default)
-kb-custom-5 [string] Custom Keybinding 5
Alt+5 (Default)
-kb-custom-6 [string] Custom keybinding 6
Alt+6 (Default)
-kb-custom-7 [string] Custom Keybinding 7
Alt+7 (Default)
-kb-custom-8 [string] Custom keybinding 8
Alt+8 (Default)
-kb-custom-9 [string] Custom keybinding 9
Alt+9 (Default)
-kb-custom-10 [string] Custom keybinding 10
Alt+0 (Default)
-kb-custom-11 [string] Custom keybinding 11
Alt+exclam (Default)
-kb-custom-12 [string] Custom keybinding 12
Alt+at (Default)
-kb-custom-13 [string] Csutom keybinding 13
Alt+numbersign (Default)
-kb-custom-14 [string] Custom keybinding 14
Alt+dollar (Default)
-kb-custom-15 [string] Custom keybinding 15
Alt+percent (Default)
-kb-custom-16 [string] Custom keybinding 16
Alt+dead_circumflex (Default)
-kb-custom-17 [string] Custom keybinding 17
Alt+ampersand (Default)
-kb-custom-18 [string] Custom keybinding 18
Alt+asterisk (Default)
-kb-custom-19 [string] Custom Keybinding 19
Alt+parenleft (Default)
-kb-select-1 [string] Select row 1
Super+1 (Default)
-kb-select-2 [string] Select row 2
Super+2 (Default)
-kb-select-3 [string] Select row 3
Super+3 (Default)
-kb-select-4 [string] Select row 4
Super+4 (Default)
-kb-select-5 [string] Select row 5
Super+5 (Default)
-kb-select-6 [string] Select row 6
Super+6 (Default)
-kb-select-7 [string] Select row 7
Super+7 (Default)
-kb-select-8 [string] Select row 8
Super+8 (Default)
-kb-select-9 [string] Select row 9
Super+9 (Default)
-kb-select-10 [string] Select row 10
Super+0 (Default)
-ml-row-left [string] Go to the previous column
ScrollLeft (Default)
-ml-row-right [string] Go to the next column
ScrollRight (Default)
-ml-row-up [string] Select previous entry
ScrollUp (Default)
-ml-row-down [string] Select next entry
ScrollDown (Default)
-me-select-entry [string] Select hovered row
MousePrimary (Default)
-me-accept-entry [string] Accept hovered row
MouseDPrimary (Default)
-me-accept-custom [string] Accept hovered row with custom action
Control+MouseDPrimary (Default)
Monitor layout:
ID: 0 (primary)
name: eDP1
position: 1920,0
size: 1366,768
size: 340mm,190mm dpi: 102,103
ID: 1
name: DP1
position: 0,0
size: 1920,1080
size: 480mm,270mm dpi: 102,102
ID: 2
name: HDMI2
position: 3286,0
size: 1920,1080
size: 600mm,340mm dpi: 81,81
Detected modi:
* +window
* windowcd
* +run
* +ssh
* drun
* combi
* keys
Compile time options:
* window enabled
* drun enabled
* timings disabled
* gcov disabled
* asan disabled
For more information see: man rofi
Version: 1.5.1
Bugreports: https://github.com/DaveDavenport/rofi/
Support: https://reddit.com/r/qtools/
#rofi @ freenode.net
Configuration file: /home/niklas/.config/rofi/config
Please do not hijack an existing issue, specifically a closed one. Update rofi (preferably to git master, at least to latest release) and open a new issue if your problem persists.
Version
Configuration
https://gist.github.com/bendem/a8766dac1bcc25534c2c
Steps to reproduce
I'm launching rofi with
rofi -show drun -modi drun
from my i3 config (bindsym $mod+d exec --no-startup-id rofi -show drun -modi drun
).My mutli monitor is setup using
xrandr --output eDP1 --auto --primary --output HDMI1 --auto --right-of eDP1
When an application on my laptop's monitor (primary) is focused, rofi starts at the middle of it to the middle of the other monitor. When an application is focused on the other monitor, rofi is launched normally (wrong monitor, correct aspect) on my laptop's (primary) monitor.
What behaviour you see
rofi shows up on the wrong screen or half on each screen (as if both monitor were actually one and it tried to appear in the middle -
rofi.location: 2
).What behaviour you expect to see
rofi should open correctly sized on the screen focused.
More info
This behavior is not consistent. Generally, reloading i3 fixes it (
bindsym $mod+Shift+r restart
).