summaryrefslogtreecommitdiff
path: root/gtk3-stackrpms/gtk3-nooverlayscrollbar
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-05-27 10:18:57 -0400
committerB. Stack <bgstack15@gmail.com>2021-05-27 10:18:57 -0400
commite65f85bafd2307052abb77258c1722834758c16c (patch)
tree0e25ff44f8fc16b839b0b540d39a5fbcef618832 /gtk3-stackrpms/gtk3-nooverlayscrollbar
parentgtk3-s add readme (diff)
downloadstackrpms-e65f85bafd2307052abb77258c1722834758c16c.tar.gz
stackrpms-e65f85bafd2307052abb77258c1722834758c16c.tar.bz2
stackrpms-e65f85bafd2307052abb77258c1722834758c16c.zip
add all gtk3-s rpms
Diffstat (limited to 'gtk3-stackrpms/gtk3-nooverlayscrollbar')
-rw-r--r--gtk3-stackrpms/gtk3-nooverlayscrollbar/52gtk3-nooverlayscrollbar36
-rw-r--r--gtk3-stackrpms/gtk3-nooverlayscrollbar/gtk3-nooverlayscrollbar.spec28
2 files changed, 64 insertions, 0 deletions
diff --git a/gtk3-stackrpms/gtk3-nooverlayscrollbar/52gtk3-nooverlayscrollbar b/gtk3-stackrpms/gtk3-nooverlayscrollbar/52gtk3-nooverlayscrollbar
new file mode 100644
index 0000000..5b6872e
--- /dev/null
+++ b/gtk3-stackrpms/gtk3-nooverlayscrollbar/52gtk3-nooverlayscrollbar
@@ -0,0 +1,36 @@
+# This file is sourced by Xsession(5), not executed.
+
+# This file configures the global behavior of GTK3 "hidden" overlay
+# scrollbars and client side decorations. These settings may be overridden
+# by individual users by setting the same variables to different values in
+# in their ~/.xsessionrc.
+
+BASESTARTUP=${STARTUP%% *}
+BASESTARTUP=${BASESTARTUP##*/}
+if [ "$BASESTARTUP" = x-session-manager ]; then
+ BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager))
+fi
+case "$BASESTARTUP" in
+ gnome-session*)
+ # This is GNOME, make sure settings are left at their defaults.
+# unset GTK_CSD
+ unset GTK_OVERLAY_SCROLLING
+ unset LIBOVERLAY_SCROLLBAR
+ ;;
+ *)
+ # Not GNOME, and the user didn't specify settings themselves,
+ # so set them to 0.
+ if [ -z "$GTK_OVERLAY_SCROLLING" ] ; then
+ GTK_OVERLAY_SCROLLING=0
+ fi
+ export GTK_OVERLAY_SCROLLING
+ if [ -z "$LIBOVERLAY_SCROLLBAR" ] ; then
+ LIBOVERLAY_SCROLLBAR=0
+ fi
+ export LIBOVERLAY_SCROLLBAR
+# if [ -z "$GTK_CSD" ] ; then
+# GTK_CSD=0
+# fi
+# export GTK_CSD
+ ;;
+esac
diff --git a/gtk3-stackrpms/gtk3-nooverlayscrollbar/gtk3-nooverlayscrollbar.spec b/gtk3-stackrpms/gtk3-nooverlayscrollbar/gtk3-nooverlayscrollbar.spec
new file mode 100644
index 0000000..1d12604
--- /dev/null
+++ b/gtk3-stackrpms/gtk3-nooverlayscrollbar/gtk3-nooverlayscrollbar.spec
@@ -0,0 +1,28 @@
+Name: gtk3-nooverlayscrollbar
+Version: 7.0.1
+Release: 1
+Summary: disable overlay scrollbar in gtk3
+License: GPL-2.0
+
+URL: https://git.devuan.org/devuan/clearlooks-phenix-cinnabar-theme/src/branch/suites/unstable/52gtk3-nooverlayscrollbar
+Source0: https://git.devuan.org/devuan/clearlooks-phenix-cinnabar-theme/src/branch/suites/unstable/52gtk3-nooverlayscrollbar
+
+BuildArch: noarch
+
+%description
+Disables overlay scrollbar for all of gtk3 by adjusting global environment variables
+
+%prep
+
+%build
+
+%install
+# Devuan uses /etc/X11/Xsession.d but Fedora uses /etc/X11/xinit/xinitrc.d/
+install -D -m0644 %{SOURCE0} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/"$( basename %{SOURCE0} )"
+
+%files
+%{_sysconfdir}/X11/xinit/xinitrc.d/*
+
+%changelog
+* Thu May 27 2021 B. Stack <bgstack15@gmail.com> - 7.0.1-1
+- initial rpm release
bgstack15