icewm/icewm-preferences.patch
Tomáš Chvátal 7f965f2fae Accepting request 781710 from home:yfjiang:branches:X11:windowmanagers
- icewm-preferences.patch: Add the adwaita legacy path to the
  IconPath. adwaita-icon-theme has its main icon updated to
  symbolic style, while icewm's style is more suitable for
  legacy-style icons (eg. web-browser). Without the update, current
  icewm can not find default web-browser toolbar icon
  (bsc#1157930).

OBS-URL: https://build.opensuse.org/request/show/781710
OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/icewm?expand=0&rev=103
2020-03-05 08:16:33 +00:00

71 lines
2.2 KiB
Diff

Tweak default icewm preferences
Attention: this patch is applied in the %build phase, because it patches
a file generated by ./src/genpref. To edit the patch:
quilt setup icewm.spec
cd icewm-<version>
quilt push -a
./configure <options from the spec>
make -C src genpref
./src/genpref >src/preferences
quilt import -p0 patches/icewm-preferences.patch
quilt push
vi lib/preferences
quilt refresh
---
diff --git a/src/preferences b/src/preferences
index dbf965e..94d8053 100644
--- a/src/preferences
+++ b/src/preferences
@@ -555,6 +555,7 @@
# Icon search path (colon separated)
# IconPath="/usr/share/icons/oxygen/base:/usr/share/icons/Adwaita:/usr/share/icons/hicolor:/usr/share/icons:/usr/share/pixmaps:/usr/local/share/icons/hicolor:"
+IconPath="/usr/share/icons/Adwaita/16x16/legacy:/usr/share/icons/Adwaita/16x16/apps:/usr/share/icons/hicolor:/usr/share/icons:/usr/share/pixmaps"
# Mailbox path (use $MAIL instead)
# MailBoxPath=""
@@ -569,7 +570,7 @@
# NewMailCommand=""
# Command to lock display/screensaver
-# LockCommand=""
+LockCommand="xlock -mousemotion"
# Command to run on clock
# ClockCommand="xclock -name icewm -title Clock"
@@ -592,10 +593,10 @@
# LogoutCancelCommand=""
# Command to shutdown the system
-# ShutdownCommand="test -e /run/systemd/system && systemctl poweroff"
+ShutdownCommand="/bin/sh -c 'systemctl poweroff ||:'"
# Command to reboot the system
-# RebootCommand="test -e /run/systemd/system && systemctl reboot"
+RebootCommand="/bin/sh -c 'systemctl reboot ||:'"
# Command to send the system to standby mode
# SuspendCommand="test -e /run/systemd/system && systemctl suspend"
@@ -1323,16 +1324,16 @@ WorkspaceNames=" 1 ", " 2 ", " 3 ", " 4 "
# DesktopBackgroundMultihead=0 # 0/1
# Display desktop background centered and not tiled
-# DesktopBackgroundCenter=0 # 0/1
+DesktopBackgroundCenter=0 # 0/1
# Support for semitransparent terminals like Eterm or gnome-terminal
# SupportSemitransparency=1 # 0/1
# Resize desktop background to full screen
-# DesktopBackgroundScaled=0 # 0/1
+DesktopBackgroundScaled=1 # 0/1
# Desktop background image(s)
-# DesktopBackgroundImage=""
+DesktopBackgroundImage="BRANDING_PICTURE"
# Desktop background color(s)
# DesktopBackgroundColor=""