-
Notifications
You must be signed in to change notification settings - Fork 23
/
Gulpfile.js
43 lines (37 loc) · 1.43 KB
/
Gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
var gulp = require('gulp');
var sass = require('gulp-sass');
var exec = require('gulp-exec');
gulp.task('styles', function(done) {
gulp.src('gtk-3.0/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./gtk-3.0/'))
.pipe(exec(' gsettings set org.gnome.desktop.interface gtk-theme "Nordic"'))
.pipe(exec(' gsettings set org.gnome.desktop.interface gtk-theme "Juno"'))
done();
});
gulp.task('shell-style', function(done) {
gulp.src('gnome-shell/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./gnome-shell/'))
.pipe(exec('gsettings set org.gnome.shell.extensions.user-theme name "Juno"'))
done();
});
gulp.task('cinnamon-style', function(done) {
gulp.src('cinnamon/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./cinnamon/'))
.pipe(exec(' gsettings set org.cinnamon.desktop.interface gtk-theme "Juno"'))
.pipe(exec(' gsettings set org.cinnamon.desktop.wm.preferences theme "Juno"'))
.pipe(exec(' gsettings set org.cinnamon.theme name "Juno"'))
done();
});
//Watch task
gulp.task('default',function() {
gulp.watch('gtk-3.0/**/*.scss', gulp.series('styles'));
});
gulp.task('shell',function() {
gulp.watch('gnome-shell/**/*.scss', gulp.series('shell-style'));
});
gulp.task('cinnamon',function() {
gulp.watch('cinnamon/**/*.scss', gulp.series('cinnamon-style'));
});