gnome-screenshot 命令 --display 选项不起作用

gnome-screenshot 命令 --display 选项不起作用

我有多个显示器,只想在其中一个上拍摄快照,但是不起作用gnome-screenshot --display=Monitor_ID

以下是输出xrandr --query

Screen 0: minimum 8 x 8, current 3840 x 1024, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected primary 1280x1024+0+0 (normal left inverted right x axis y axis) 340mm x 270mm
   1280x1024     60.02*+
   1280x960      60.00  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 340mm x 270mm
   1280x1024     60.02*+
   1280x960      60.00  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
DP-6 disconnected (normal left inverted right x axis y axis)
DP-7 connected 1280x1024+2560+0 (normal left inverted right x axis y axis) 370mm x 300mm
   1280x1024     60.02 +  75.02* 
   1024x768      75.03    60.00  
   800x600       75.00    72.19    60.32  
   640x480       75.00    72.81    59.94 

以下是输出gnome-screenshot --display=DP-3

Unable to init server: Broadway display type not supported: DP-3

(gnome-screenshot:17493): Gtk-WARNING **: cannot open display: DP-3

我还需要做其他事情才能让它工作吗?提前谢谢。

相关内容