summaryrefslogtreecommitdiffstats
path: root/tools/drakx-update-background
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2012-09-25 21:58:25 +0000
committerOlivier Blin <blino@mageia.org>2012-09-25 21:58:25 +0000
commitab412f0d3d7223fa8399276fd5560a7bb40f25fc (patch)
treed0c87e66e9cf9b33599210eb45eb4d3d7603fa48 /tools/drakx-update-background
parentd28186eecd101abec9e22772f734e01e174ce46e (diff)
downloaddrakx-kbd-mouse-x11-ab412f0d3d7223fa8399276fd5560a7bb40f25fc.tar
drakx-kbd-mouse-x11-ab412f0d3d7223fa8399276fd5560a7bb40f25fc.tar.gz
drakx-kbd-mouse-x11-ab412f0d3d7223fa8399276fd5560a7bb40f25fc.tar.bz2
drakx-kbd-mouse-x11-ab412f0d3d7223fa8399276fd5560a7bb40f25fc.tar.xz
drakx-kbd-mouse-x11-ab412f0d3d7223fa8399276fd5560a7bb40f25fc.zip
add drakx-update-background tool to replace perl one-liner using Xconfig::xfree in bootsplash/scripts/switch-themes
Diffstat (limited to 'tools/drakx-update-background')
-rwxr-xr-xtools/drakx-update-background10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/drakx-update-background b/tools/drakx-update-background
new file mode 100755
index 0000000..2ba3293
--- /dev/null
+++ b/tools/drakx-update-background
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+
+use lib qw(/usr/lib/libDrakX);
+use common;
+use Xconfig::xfree;
+use Xconfig::resolution_and_depth;
+
+require_root_capability();
+
+Xconfig::resolution_and_depth::set_default_background(Xconfig::xfree->read->get_resolution);