LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-24-2018, 10:36 AM   #1
WaltKo
LQ Newbie
 
Registered: Nov 2018
Posts: 4

Rep: Reputation: Disabled
Is there any way to get scroll bar arrows back - Ubuntu 18.04.1


Okay, first let me say that I'm coming back to Linux after a few years away. As I'm sure you can tell from the question, it has been a while.

I also know that the scroll bar arrows were taken out intentionally. From what I've read this was to better facilitate touchscreens.

I get all of that. However, I'm disabled. Had a neck operation that went sideways. I won't bore you with all of the details, but please understand that to me, those scroll bar arrows are dang close to being a necessity.

I can't find any way to get them back. I don't want to go to an earlier version either. I actually thought they may be included in the Universal Access settings, but no such luck.

Please, don't give me some of the "holier-than-thou," snobbish replies about this is a move forward, go buy a new mouse with a scroll bar (I'm on a laptop that fits my particular situation), that I have read on other forums. If that makes anyone upset, tough. I read way too many replies that showed an attitude I didn't expect from the Linux community.

Anyway, all of that aside, having scroll bar arrows would be very helpful to me as a disabled person stuck on the laptop setup that I have.

Does anyone out there know of any way to bring back the scroll arrows? Please.

Thank you.

Walt
 
Old 11-24-2018, 11:16 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Hi Walt.

Please see this recent thread: https://www.linuxquestions.org/quest...rs-4175642135/

I've copied my theme-specific solution from that thread (although it mentions Mint, it can also be used e.g. for Ubuntu).

As a general rule for gtk3, you can re-add scrollbars by editing your theme's CSS file and adding:

Code:
scrollbar {
   -GtkScrollbar-has-backward-stepper: 1 !important;
   -GtkScrollbar-has-forward-stepper: 1 !important;
}
If you don't want to edit the theme file in /usr/share/themes, you can create an overriding theme file in your home directory. For example, for the Mint-X theme in Mint 19:

Code:
mkdir -p ~/.themes/Mint-X/gtk-3.0

xed ~/.themes/Mint-X/gtk-3.0/gtk.css
and then populate that file with:

Code:
@import url("/usr/share/themes/Mint-X/gtk-3.0/gtk.css");
scrollbar {
   -GtkScrollbar-has-backward-stepper: 1 !important;
   -GtkScrollbar-has-forward-stepper: 1 !important;
}
 
Old 11-25-2018, 10:49 PM   #3
WaltKo
LQ Newbie
 
Registered: Nov 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
hydrurga,

Thank you for the response.

I tried both of those suggestions, but could not get them to work.

I don't see any references to "GtkScrollbar" in my .css files. Here is what is shown under the scrollbar section:

/* Scrollbars */
StScrollView.vfade {
-st-vfade-offset: 68px; }

StScrollView.hfade {
-st-hfade-offset: 68px; }

StScrollBar {
padding: 0; }
StScrollView StScrollBar {
min-width: 14px;
min-height: 14px; }
StScrollBar StBin#trough {
border-radius: 0;
background-color: transparent; }
StScrollBar StButton#vhandle, StScrollBar StButton#hhandle {
border-radius: 8px;
background-color: #a6a8a7;
margin: 3px; }
StScrollBar StButton#vhandle:hover, StScrollBar StButton#hhandle:hover {
background-color: #cacbc9; }
StScrollBar StButton#vhandle:active, StScrollBar StButton#hhandle:active {
background-color: #dd4814; }


Did this change somewhere along the way to the current release? If it helps, I'm running:

Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic



I also tried changing themes, but to no avail. I didn't think the theme change would work, as from what I am seeing it is a base level change the eliminated the scrollbar arrows. Figured it was worth a try though.

Anyway, if you or anyone has any other suggestions, I'm open to giving them a try.

Thanks again.

walt
 
Old 11-25-2018, 11:28 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Which theme are you using, and which CSS file did you try to edit (what is its filepath)?
 
Old 11-26-2018, 12:43 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,804
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
WaltKo, if you like having the auxiliary stepper at the bottom, and want the "arrows" back regardless of theme, try:
Code:
$ head ~/.config/gtk-3.0/gtk.css
*{
-GtkScrollbar-has-backward-stepper: 1;
-GtkScrollbar-has-forward-stepper: 1;
-GtkScrollbar-has-secondary-backward-stepper: 1;
}
On a related note, you may not like the behavior of the scrollbars, and may find adding
Code:
gtk-primary-button-warps-slider = false
to settings.ini in the same directory to your liking. Firefox ignores it, but has its own hidden setting that does the same thing.

Last edited by mrmazda; 11-26-2018 at 12:49 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any way to get all dependencies of a software in one package or any alterna RAJD Linux - Newbie 7 02-19-2012 06:46 PM
How to get scroll bar information in Linux programming using c/c++? frank2009 Programming 5 06-23-2009 10:20 AM
[SOLVED] lost task bar and status bar how to get them back devmohan786 Linux - Software 2 07-13-2008 04:00 AM
mysql: is there a way to get any information back from an insert? BrianK Programming 6 05-09-2008 07:04 PM
It's all gone - is there any way to get it back? gwroy20 Linux - General 4 08-29-2003 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration