gnome-shell 3.16 window titles - gnome-shell

Before 3.16, it was easy to remove the window titles from maximized windows - just editing the metacity-theme.xml file. However, 3.16 is using client side decorations, and metacity has no control over the window decorations. Is there another way of hiding the window titles, or at least making them much smaller?

You can minimize (not remove) the title bar by removing the padding from it. Just add the following code to the file $HOME/.config/gtk-3.0/gtk.css (create if not exists):
.maximized .header-bar.default-decoration {
padding: 0;
font-size: 0.7em;
}
.maximized .header-bar.default-decoration .button.titlebutton {
padding: 0;
border-width: 0;
}
Apart from that you can use the GNOME extension Maximus Two to get completely rid of title bars on maximized windows. A version supporting 3.16 is available from here: http://michaeltunnell.com/blog/16-linux/56-my-updated-316-packages-for-gnome-extensions
Here is a very short script that does more or less the same as Maximus Two (using the _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED atom): https://gist.github.com/tuxor1337/74e76d3d153c67593454 You need to run it on GNOME startup and leave it running in the background (might be helpful: Start Script when Gnome Starts Up).
By the way, here you can get an idea of how to remove the title bar from all windows: https://unix.stackexchange.com/questions/156300/xprop-set-motif-wm-hints-hides-maximized-window

I tried the extension Maximus NG, which did not install successfully. But via its comments I found Pixel Saver which works better. However it displays a cross to close the windows among the status buttons in the top right, which I find annoying. But after disabling Pixel Saver again, the top bar of maximized windows has not reappeared, and the cross has disappeared. So everything is perfect for me now. EDIT: This effect only lasts the current session.
I use Gnome 3.18, on Ubuntu-Gnome 16.04 LTS Beta 1.

Pixel saver helped on Ubuntu 20.04.1 LTS
sudo apt-get install gnome-tweak-tool
Then press "super" button and type "tweaks" - select "tweaks", go to "Extensions" - enable "Pixel saver" radio button.
That's it

Related

Wrong action button placement in XFCE dialogbox

Since the last big update including Xfce 4.16 (I'm running Arch Linux), the action buttons like Ok or Cancel are wrongly placed at the top of the window in most application's dialog boxes.
Here's an example with the Open File window in LibreOffice, I see the same behavior in other application like Firefox or Mousepad :
(source: lps-it.fr)
This is very annoying as it breaks the ergonomic of the dialog box and make the user experience painful.
I believe this is coming from GTK3 but I'm not sure.
Do you know which component is to blame for this, and how to fix it ?
xfconf-query -c xsettings -p /Gtk/DialogsUseHeader -s false
Will move them back to the bottom. See: Arch Wiki Xfce Page

How to scroll in htop with iTerm2

I have just installed iTerm2 for my Mac. When i open htop or tmux, i can scroll like normal with the arrow keys, but not with my mouse. This doesn't happen in the normal Mac Terminal. But strangely, when I hover over the rows in htop, it does actually highlight the right row.
Thanks in advance,
Max
Are you running htop locally on the Mac or ssh'ing to a Linux box? If you're running natively on the Mac, be aware that the code on the htop-osx package on Homebrew is an outdated fork; the new code is at http://github.com/hishamhm/htop/ and a new release in in the works.
But strangely, when I hover over the rows in htop, it does actually highlight the right row.
Simply hovering shouldn't change the highlighting. This probably means that your terminal is sending click events to htop. What happens if you hover over "F1 Help" at the bottom line? It looks like your iTerm2 application is mismanaging ncurses mouse events.
The latest codebase on the official htop Git repository linked above includes support for NCurses 6, which supports not only mouse clicking but also the scroll wheel correctly.
Now possible to install correctly with brew:
brew install ncurses
brew install --with-ncurses htop
And that will use the right version of Ncurses and you will be able to scroll etc.

Inkscape export window not displaying??

I am trying to export a png with transparent background to use as a favicon. However when I am in Inkscape and use the "save as" option the background is not transparent. After looking around, people said I needed to export instead to get the transparent background.
The problem comes when I go into Inkscape and go to File>Export and then no window shows up. When I go to the launch view (view on mac where you can see all your open windows in one view) I can clearly see there IS an export window but it will not show up on my normal screen no matter what. It seems like it is showing up way to the left of my normal Inkscape window in the preview as well.
I am using a MacBook Air OS X 10.9.5 with Inkscape and XQuartz. I've had problems with installing XQuartz before and wonder if it's something I did wrong when installing? I am also using an attached external monitor to my MacBook Air but when I unplugged and only used my MacBook Air I still had the same problem.
Does anyone know how I can get the export window to show so I can export my files? Thanks for your help.
When I upgraded from 0.49 to the current 0.91 I have had the exact same problem. But just right now I realized that the "Export PNG Image" is a dock now, not a free window.
Seems to be a problem with my external monitor set up. Rebooted and tried again without the monitor plugged in and the main Inkscape window (with the graphics in it) showed up way to the right side (I could only see the very left edge of the window). This was enough to click on File>Export and it finally showed the Export window in the middle of my screen. Not sure what to do about a permanent fix though or why it's doing this.

Disable " Stay on top" features on photoshop CS2

Photoshop CS2 always stay on top, even when I click another app from the windows taskbar (right of the start button).
It's completly annoying me. Always need minimized, click the other app, reclick again on photoshop, re-reminimized.
I only have 1 screen at work so I can't let photoshop on one screen and work with the other app on the other screen.
I look in all photoshop menu, find nothing
I googled the problem, and find a adobe page explain this problem is a "feature".
I only want photoshop cs2 work all other app on windows and loose focus, let new app appear on top.
Thank you.
I had this problem and somehow solved it. But my solution may be just as fickle as why the problem occurs in the first place. But here's what I did:
On the layers palette (F7) I clicked on the small arrow just below the close "X" button, on the right. Then I selected "Pallete Options"
Didn't change any options but just clicked OK.
Now the entire window remained on top, not just the palettes. So I restarted Photoshop and it seemed to fix the issue.
I found that if you open up "edit > preferences > Memory & Image Cache" and set your memory usage up then it will fix it. I am on a Windows 10.
See this post:
https://www.reddit.com/r/photoshop/comments/35lmtu/photoshop_keeps_putting_itself_in_front_of_my/
Go to Edit > Preferences > File Handling > Uncheck Enable Version Cue Workgroup File Management
I literally JUST found this on accident and fixed it after having issues with all my toolbars being hidden behind stuff, and not being able to minimize without clicking on the PS window first etc. Seems to have worked!
Topmost Toggle will help you: http://www.softpedia.com/get/Desktop-Enhancements/Other-Desktop-Enhancements/TopmostToggle.shtml
Works for CS2 even in Win8
Try Topmost Toggle. Works on Window 7, Window 8 and even Windows 8.1. I use it for disabling Photoshop CS2 and when Firefox bug out. Works like a charm and it's pretty easy to use:
Download and extract Topmost Toggle
Run the program - you will see that it minimize on tray
Ctr + Right click on your program and click
Enjoy!
Big thanks to user2761076
I am having same issue with CS2 on Windows 7 64 bit. To work around, I hit tab on keyboard when photoshop window is active, that makes all pallets invisible, then I can switch to any window I need to work on.
As per this article there seem to be issue with Microsoft update https://forums.adobe.com/thread/2142314

Scrolling inside Vim in Mac's Terminal

I've been googling around trying to figure out if it's possible to use my mouse wheel to scroll while inside Vim in Mac's Terminal, with no luck. It seems as if only X11 or iTerm support this.
Before I give up, I thought I'd try the geniuses here to see if anyone knows a way to do this. So, does anyone know if I can set that up?
Or should I seriously consider using a different terminal application?
And if you're using iTerm, add this to your vimrc
:set mouse=a
http://bitheap.org/mouseterm/
Use MouseTerm (and do make sure to install SIMBL first!) and scrolling will work like a charm, even remote, using Mac Terminal.
You need to fully quit the Terminal application (Command+Q) and then launch it again after installing MouseTerm.
This is an old question, but a top hit on google, so I feel compelled to provide an updated answer.
Running OSX El Capitan 10.11, vim mouse and trackpad scrolling just worked(TM) for me in Terminal.app by default. However occasionally the mouse/trackpad input stopped manipulating the vim buffer, and started scrolling the terminal buffer. The answer was Command+R or Menu View --> Allow Mouse Reporting. Turning that on allowed the mouse/trackpad scroll operations to move the cursor in vim.
Termanal Menu > View > Allow Mouse Reporting
Terminal Menu > Preferences >
Keyboard > Scroll alternate screen
If the mouse functionalities still do not work properly take a look at my answer in this post How to let vim behave on Mac OS X as on Ubuntu?, just add to your .vimrc
set ttymouse=xterm2
You can read this article, but I'm pretty sure since the default terminal in Mac OS X has a built-in scrollbar, the mousewheel commands automatically go to it. You could definitely use gVim as suggested in the previous answer. I find that I don't generally want to use the mouse in Vim though as it takes my hands off the keyboard.
I just use 50j to go down and 50k to go up. Not exactly scrolling, but it works pretty well.
Make sure the terminal is xterm & not ansi in Terminal Menu > Preferences > Profiles > Advanced. I accidentally broke scrolling by changing the term type in a naive effort to get coloring to work over ssh.
Use gVim, which gives you a text editing environment in a window you can scroll. Terminal is not involved when using gVim.
I'm using xterm in X11 (XQuartz 2.3.4) and vim works very fine with mouse and also suport 256 colors.
Here is the ~/.Xresources I use to make my xterm nicer in X11:
XTerm*faceName: Lucida Sans Typewriter Regular
XTerm*faceSize: 9
XTerm*utf8: 1
xterm*saveLines: 1000
xterm*jumpScroll: true
!xterm*awaitInput: true
!xterm*multiScroll: true
XTerm*scrollBar: false
xterm*scrollbar*thickness: 16
xterm*rightScrollBar: true
XTerm*foreground: white
XTerm*background: grey10
!XTerm*background: black
XTerm*cursorColor: yellow
xterm*visualBell: false
xterm*loginShell: true
Little tips, to remove the bell sound in X11's xterm type this command:
xset b 0
I would recommend using iTerm - it has so many advantages over Terminal eg Mouse support, 256 colors, sensible copy and paste (auto-copy, word/url selection with double click, middle click paste)...
When using iTerm create a .vimrc file (if not already there) in your home folder and add the line:
:set mouse=a
Scrolling down in vim to view a file works after this.

Resources